List Settlement Details

🔒

Requires finance access scope.

List Settlement Details

The List Settlement Details API returns a list of settled details sorted in descending order of creation date, with the most recently created objects appearing first.

This API is especially useful for:

  1. Retrieving a list of detailed settlement transactions.
  2. Filtering settlement details by transaction type, currency, and settlement time.
  3. Paginating settlement data using cursors for efficient querying.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

Query Parameters

FieldTypeRequiredExampleDescription
cursorstringNo"abc123"Cursor for pagination; use the cursor value returned in the previous response.
limitint32No10A limit on the number of objects to return. The default is 10, and the range is 1-100.
trans_typestringNo"payment"Type of transaction. Valid values:
payment, reserve_release, chargeback, chargeback_win, refund, refund_reversal, ship_ins_comm_transfer, ship_ins_comm_reversal, adjustment, debit_negative_balance, debit_negative_balance_reversal.
currencystringNo"USD"Currency of the settlement account.
settlement_time_minstringNo"1714281600"Filter option: settlement initiation start time (Unix timestamp).
settlement_time_maxstringNo"1714368000"Filter option: settlement initiation end time (Unix timestamp).

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeExampleDescription
codestring"Success"Status code for the response.
messagestring"Request successful"Additional message about the response.
dataobjectContains the settlement details.
data.listarrayArray of settlement detail objects.
data.list[].store_idstring"store123"Store ID associated with the settlement.
data.list[].currencystring"USD"Currency of the settlement account.
data.list[].trans_typestring"payment"Transaction type. Refer to valid trans_type values in the request parameters.
data.list[].trans_idstring"trans456"Unique transaction ID for the settlement.
data.list[].fee_amountstring"5.00"Fee amount associated with the transaction.
data.list[].settlement_amountstring"100.00"Total settlement amount.
data.list[].reserve_amountstring"10.00"Reserve amount for the transaction.
data.list[].settlement_timestring"1714281600"Settlement time in Unix timestamp format.
data.list[].merchant_idstring"merchant789"Merchant ID associated with the settlement.
data.has_morebooleantrueIndicates if there are more pages of results.
data.cursorstring"abc123"Cursor to fetch the next page of results.

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
500InvalidParameterCurrency is not provided.Currency is required

API Structure Overview

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