POST variants of the list routes — you send the paging parameters in the request body, and the response comes back wrapped in a page envelope.
Each list resource has two forms: a simple
GET that returns results directly, and a POST that accepts pagination (and, for most, an optional date-range filter). An empty POST body is valid — it returns the first page using the defaults, so the POST form behaves like its GET counterpart when you don’t pass anything.Paginated endpoints
Most accept an optional date-range filter:POST /ramp/ordersPOST /ramp/customer/{customer_id}/ordersPOST /ramp/bank-accountsPOST /ramp/customer/{customer_id}/bank-accountsPOST /ramp/customersPOST /ramp/walletsPOST /ramp/customer/{customer_id}/wallets
POST /ramp/webhooks
Request
| Field | Type | Notes |
|---|---|---|
pageNumber | integer | Which page to return. Zero-based (first page is 0). Defaults to 0. |
pageSize | integer | Items per page. Defaults to 30, maximum 100. |
filters | object | null | Optional. Omit it (or send an empty body) to return everything from page 0. |
filters.fromDate | string (ISO 8601) | Required when filters is present. Returns items created after this time. |
filters.toDate | string (ISO 8601) | Optional upper bound on the creation time. |
Limits & defaults
pageSizedefaults to 30 and is capped at 100. Requesting more returns400(You can only request 100 items at a time); apageSizeof0returns400(Page size must be greater than 0).pageNumberdefaults to 0.filtersis optional.POST /ramp/webhooksignores filters entirely (pagination only).- A malformed JSON body returns
400with a JSON{ "error": … }describing the parse failure; an empty body uses the defaults.
Response
Results come back in a page envelope:| Field | Type | Description |
|---|---|---|
items | array | The items on this page. |
totalItems | integer | Total items across all pages. |
totalPages | integer | Total number of pages. |
pageNumber | integer | Zero-based index of this page. |
pageSize | integer | Items per page. |
next | string | null | URL for the next page, or null on the last page. |
Iterating through pages
Start atpageNumber: 0 and keep requesting until pageNumber + 1 >= totalPages (or until next is null):