> For the complete documentation index, see [llms.txt](https://pivot-payment.gitbook.io/pivot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pivot-payment.gitbook.io/pivot-docs/api-references/api-information/pagination.md).

# Pagination

Some API methods (e.g.,[Retrieve Payment Session Details](/pivot-docs/api-references/api-lists/payments/payment-session/retrieve-payment-session-details.md) & [Retrieve a Payout](/pivot-docs/api-references/api-lists/payout-local/retrieve-a-payout.md)) use page-based pagination through <mark style="color:orange;">`page`</mark> and <mark style="color:orange;">`perPage`</mark> parameters. Both parameters can be set when hitting the endpoint. Below is the example:

* <mark style="color:green;">`GET`</mark> \[<mark style="color:orange;">BASE\_URL</mark>]/v2/payments/{id}?page=:page
* <mark style="color:green;">`GET`</mark> \[<mark style="color:orange;">BASE\_URL</mark>]/v1/payouts/:id?page=:page\&perPage=:perPage

| Key     | Value                                | Description                                         |
| ------- | ------------------------------------ | --------------------------------------------------- |
| page    | \[Page to be shown]                  |                                                     |
| perPage | \[Total record to be shown per page] | Maximum 100 records per page, default is 20 records |
