List Payment Orders

🔒

Requires finance access scope.

The List Payment Orders API returns a list of payment orders. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

This API is especially useful for:

  1. Retrieving a paginated list of payment orders.
  2. Filtering payment orders based on their creation date.
  3. Identifying payment statuses for order processing.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

FieldTypeRequiredExampleDescription
cursorstringNoc3VwZXItY3Vyc29yCursor for pagination, use the cursor from the response to retrieve the next page.
limitint32No10A limit on the number of objects to be returned. Ranges from 1 to 100. Default is 10.
created_at_minstringNo1714309200Filters payment orders created after a specified timestamp (Unix format).
created_at_maxstringNo1714312800Filters payment orders created before a specified timestamp (Unix format).
statusstringNosucceededFilter payment orders by status. Valid values are:

- succeeded: The payment has been completed successfully, and the funds are confirmed.
- failed: The payment has failed, and the funds were not successfully processed.
- requires_action: Additional action is required to complete the payment, such as user verification (e.g., 3D authentication).
- init: The payment order has been created but not yet processed.
- canceled: The payment order has been canceled, and no funds were processed or have been returned.
- processing: The payment is currently in process, with the final result pending confirmation.

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeExampleDescription
codestringSuccessThe status of the API response.
messagestringSuccessA descriptive message for the response status.
dataobjectContains the main response data.
data.has_morebooleantrueIndicates whether there are more results to retrieve.
data.cursorstringc3VwZXItY3Vyc29yThe cursor for the next page of results.
data.listarrayA list of payment order objects.
data.list[].idstring123456789The unique ID of the payment order.
data.list[].fee_detailsobject{ ... }Contains details about transaction fees.
data.list[].fee_details.trans_fee_amountstring10.00The transaction fee amount.
data.list[].fee_details.fee_currencystringUSDThe currency of the transaction fee.
data.list[].fee_details.foreign_settlement_feestring5.00The foreign settlement fee.
data.list[].created_atstring2024-04-28T06:00:00ZThe creation timestamp of the payment order.
data.list[].finished_atstring2024-04-28T06:05:00ZThe completion timestamp of the payment order.
data.list[].payment_statusstringsucceededThe current payment status of the order.
data.list[].payment_methodstringcredit_cardThe payment method used (e.g., credit card, PayPal).
data.list[].card_brandstringVisaThe brand of the credit card used.
data.list[].pay_currencystringUSDThe currency in which the payment was made.
data.list[].pay_amountstring100.00The payment amount in the specified currency.
data.list[].converted_amountstring130.00The converted amount in the store's base currency.
data.list[].reserve_amountstring50.00The reserved amount, if applicable.
data.list[].order_idstring987654321The ID of the associated order.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeDescriptionExample
codestringThe error code indicating the type of issue.InvalidParameter
messagestringA detailed message describing the error.wrong cursor
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
500InvalidParameterwrong cursorwrong cursor

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!