Cookie Consent by Free Privacy Policy Generator Update cookies preferences

Merchants can add a new parameter called includeNextLink to the existing List Payment API v1 and v2.

Query Parameters

ParameterTypeDescription
includeNextLinkbooleanWill return a modified pagination object which includes a url to return the next page. The default value is false

Response

The returned pagination object will include nextPageUrl

ParameterTypeDescription
limitintegerThe number of results that this page was limited to.
nextPageUrlstringA url to return the next page (empty if there are no more results)
totalResultsintegerThe total number of results matching the given criteria
resultsarrayA page of matching results. This may be a subset of the total.

Example Request

curl http://api.qa.paylater-beta.net/v2/payments?includeNextLink=true \
  -H 'Authorization: Basic <Base64EncodedCredentials>' \
  -H 'User-Agent: <MyUserAgent>' \
  -H 'Accept: application/json'

Example Response

{
  "totalResults": 210,
  "limit": 20,
  "nextPageUrl":     "http://api.qa.paylater-beta.net/v2/payments?cursor=MjAyMTExMDlUMDUzNTI1LjI1Nlo%3D%3AMDAxLjVuNDhzbm1qNTh0ZzFkZmcwMzR2cGV2ZG1zY2ZiaTllZmVqMzRkMjl1c25mbDVnbg%3D%3D&includeNextLink=true", 
  "results": [
    ...
  ]
}