PayNowPro

Pagination

Use cursor pagination to move through list responses without loading an entire tenant's data at once.

List operations for customers, products, product groups, subscriptions, and traces use cursor pagination where the endpoint supports it. Each response contains a data array and may include a nextCursor value.

Query parameters

ParameterMeaning
limitThe maximum number of records to return. Customer list requests default to 10 and cap the value at 100.
cursorAn opaque cursor from the previous response. Pass it back unchanged; do not construct or parse it.
orderasc or desc sort order when the endpoint supports ordering.

Request the first page

curl "https://api.paynowpro.com/api/v1/customers?tenantAlias=YOUR_TENANT_ALIAS&limit=2" \
  -H "api-key: YOUR_API_KEY"

Read the response

{
  "data": [
    {
      "id": "cust_abc123",
      "associatedId": "user_123",
      "firstName": "Avery",
      "lastName": "Brown",
      "email": "avery@example.com"
    }
  ],
  "nextCursor": "eyJsYXN0S2V5Ijp7InBrIjoiVEVOQU5UIy4uLiJ9fQ=="
}

If nextCursor is present, URL-encode it and supply it as cursor in the next request:

curl "https://api.paynowpro.com/api/v1/customers?tenantAlias=YOUR_TENANT_ALIAS&limit=2&cursor=NEXT_CURSOR" \
  -H "api-key: YOUR_API_KEY"

Stop when the response does not include another nextCursor. Treat the cursor as a continuation token, not an ID or sortable value.

On this page