Skip to Content
Docs
Settlements

List settlements

GET/settlements

Retrieves 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

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Query parameters

created.greater_than_or_equalsstring

Return 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_thanstring

Return 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_equalsstring

Return 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_thanstring

Return 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.

limitinteger

Maximum number of objects to return. Defaults to 10.

Default: 10

ending_beforestring

A 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_afterstring

A 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.

resourcestring

String representing the object's type.

dataarray of objects

Array of settlement objects.

Show 14 child attributesHide child attributes
idstring

Unique identifier for the Settlement.

resourcestring

String representing the object's type.

amountinteger

Settlement amount, in the smallest currency unit.

amount_human_readablestring

Settlement amount in human-readable format.

createdstring

Time at which the object was created, in ISO 8601 format.

currencystring

Three-letter ISO currency code, in lowercase.

methodstring or null

Settlement method, if applicable. One of wire, ach, rtp, sepa, or card_payout.

One of wire, ach, rtp, sepa or card_payout.

period_endstring or null

End of the settlement period, if applicable.

period_startstring or null

Start of the settlement period, if applicable.

test_modeboolean

Whether the settlement was created in the sandbox.

typestring

Type of settlement. Always bank_account.

One of bank_account.

payment_datestring or null

Time at which the settlement was paid out, in ISO 8601 format, if known.

settlement_accountstring

Unique identifier for the settlement account the settlement was paid to. Present only when the settlement has a settlement account.

settlement_account_detailsobject

Details 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
processorstring

The processor of the settlement account.

currencystring

Three-letter ISO currency code of the settlement account, in lowercase. Omitted for settlement accounts without a currency.

namestring

Name of the settlement account.

entitystring

Unique identifier for the legal entity, if applicable.

entity_detailsobject

Details of the legal entity, if applicable.

Show 2 child attributesHide child attributes
legal_namestring

Legal name of the entity.

countrystring

Two-letter ISO country code of the entity's billing address.

has_moreboolean

Whether there are more settlements available for pagination.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_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.
429
Another list query is already running for your account. Retry after the number of seconds in the Retry-After header.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?