<- Payments API

Payments API

All versions ->

List payments

GET

 /v2/payments

Retrieves a list of payments taken by the account making the request.

Max results per page: 100

Permissions:PAYMENTS_READ
Try in API Explorer
Link to section

Query parameters

Example code

Link to section

begin_time

string

Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

end_time

string

Timestamp for the end of the requested reporting period, in RFC 3339 format.

Default: The current time.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

sort_order

string

The order in which results are listed.

  • ASC - oldest to newest
  • DESC - newest to oldest (default).
Link to section

cursor

string

A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query.

See Pagination for more information.

Link to section

location_id

string

Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant.

Link to section

total

integer(64-bit)

The exact amount in the total_money for a Payment.

Link to section

last_4

string

The last 4 digits of Payment card.

Link to section

card_brand

string

The brand of Payment card. For example, VISA

Link to section

limit

integer(32-bit)

Maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page.

If the supplied value is greater than 100, at most 100 results will be returned.

Default: 100

Link to section

Response fields

Link to section

errors

Information on errors encountered during the request.

Link to section

payments

The requested list of Payments.

Link to section

cursor

string

The pagination cursor to be used in a subsequent request. If empty, this is the final response.

See Pagination for more information.