# 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 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pivot-payment.gitbook.io/pivot-docs/api-references/api-information/pagination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
