List settlements
/settlementsRetrieves a list of the settlements Pay.com has paid, sorted by creation time, oldest first. An account with no paid settlements gets an empty list.
Only one list query per merchant can run at a time; a concurrent query returns 429.
Headers
AuthorizationstringRequiredQuery parameters
created.greater_than_or_equalsstringReturn objects created on or after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than.
created.greater_thanstringReturn objects created after this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.greater_than_or_equals.
created.less_than_or_equalsstringReturn objects created on or before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than.
created.less_thanstringReturn objects created before this date. Accepts an ISO 8601 date-time, a date (YYYY-MM-DD, read as midnight UTC) or a Unix timestamp in milliseconds. Mutually exclusive with created.less_than_or_equals.
limitintegerMaximum number of objects to return. Defaults to 10.
ending_beforestringA cursor for pagination. Returns objects created before the object with this ID. Must be the ID of an object of the type being listed (for example a chrg_ ID when listing charges); other IDs return 400. Lists are sorted by creation time, oldest first. Mutually exclusive with starting_after.
starting_afterstringA cursor for pagination. Returns objects created after the object with this ID. Must be the ID of an object of the type being listed (for example a chrg_ ID when listing charges); other IDs return 400. Lists are sorted by creation time, oldest first. Mutually exclusive with ending_before.
Returns
Returns a list of settlement objects.
resourcestringString representing the object's type.
dataarray of objectsArray of settlement objects.
Show 14 child attributesHide child attributes
idstringUnique identifier for the Settlement.
resourcestringString representing the object's type.
amountintegerSettlement amount, in the smallest currency unit.
amount_human_readablestringSettlement amount in human-readable format.
createdstringTime at which the object was created, in ISO 8601 format.
currencystringThree-letter ISO currency code, in lowercase.
methodstring or nullSettlement method, if applicable. One of wire, ach, rtp, sepa, or card_payout.
period_endstring or nullEnd of the settlement period, if applicable.
period_startstring or nullStart of the settlement period, if applicable.
test_modebooleanWhether the settlement was created in the sandbox.
typestringType of settlement. Always bank_account.
payment_datestring or nullTime at which the settlement was paid out, in ISO 8601 format, if known.
settlement_accountstringUnique identifier for the settlement account the settlement was paid to. Present only when the settlement has a settlement account.
settlement_account_detailsobjectDetails of the settlement account and legal entity the transaction is booked to. Present only when the object is linked to a settlement account or legal entity.
Show 5 child attributesHide child attributes
processorstringThe processor of the settlement account.
currencystringThree-letter ISO currency code of the settlement account, in lowercase. Omitted for settlement accounts without a currency.
namestringName of the settlement account.
entitystringUnique identifier for the legal entity, if applicable.
entity_detailsobjectDetails of the legal entity, if applicable.
Show 2 child attributesHide child attributes
legal_namestringLegal name of the entity.
countrystringTwo-letter ISO country code of the entity's billing address.
has_morebooleanWhether there are more settlements available for pagination.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.429Retry-After header.500503Retry-After, or after a few seconds when there's none.