<- Refunds API

Refunds API

All versions ->

List payment refunds

GET

 /v2/refunds

Retrieves a list of refunds for 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 requested reporting period, in RFC 3339 format.

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 all locations associated with the merchant.

Link to section

status

string

If provided, only refunds with the given status are returned. For a list of refund status values, see PaymentRefund.

Default: If omitted refunds are returned regardless of status.

Link to section

source_type

string

If provided, only refunds with the given source type are returned.

  • CARD - List refunds only for payments where card was specified as payment source.

Default: If omitted refunds are returned regardless of source type.

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

refunds

The list of requested refunds.

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.