Skip to navigation

List Payments

This endpoint retrieves a collection of payments along with their order details.

Connection Timeouts

TimeoutTime (Seconds)
Open10
Read20

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Headers

User-AgentstringRequired
AcceptstringOptionalDefaults to application/json

Query parameters

toCreatedDatestringOptional

An inclusive end date and time to search, in ISO 8601 format.

fromCreatedDatestringOptional

An inclusive start date and time to search, in ISO 8601 format.

tokenslist of stringsOptional
One or more order tokens to search for.
idslist of stringsOptional
One or more Afterpay Order IDs to search for.
merchantReferenceslist of stringsOptional
One or more Merchant Reference IDs to search for.
statuseslist of enumsOptional
One or more Afterpay Order Statuses to search for. Possible values include "APPROVED" and "DECLINED".
Allowed values:
orderByenumOptionalDefaults to createdAt
A field to order results by. If provided, must be one of "createdAt", "id", "amount", "merchantReference" or "email".
Allowed values:
ascendingbooleanOptionalDefaults to false

true to order results in ascending order, or false for descending order.

limitintegerOptional1-250Defaults to 20
The maximum number of results to return. Must be between 1 and 250.
offsetintegerOptional>=0Defaults to 0
The number of results to skip before returning results.

Response

Returns the matching Payment objects, enclosed in a Pagination object.
totalResultsintegerOptional
Total number of results
offsetintegerOptional
The offset of the pagination
limitintegerOptional
The number of payments to include in the results
nextPageUrlstringOptional
The URL of the next page of results
resultslist of objectsOptional

Errors

422
Unprocessable Entity Error
500
Internal Server Error