Get Settlements

Allowed Scopes: settlement:read

Returns settlements. For more information about settlements, see this guide. Settlements data are cached for up to 24 hours. A successful PUT /v1/settlements/state clears the cached settlement reads, so the next call is fresh; state changes from accounting exports or made in Spendesk can take up to 24 hours to appear.

This endpoint uses page-based pagination. Use page and pageSize to retrieve additional results. The maximum pageSize is 30. Continue fetching while page * pageSize < meta.pagination.total.

To filter by settlement status, use state (for example, /v1/settlements?page=1&pageSize=30&state=created).

Settlements expose allocation links through allocations[].payableId. For accounting export use cases that require payable line amounts, retrieve the related payable and read lineItems[].financial.netAmount. Amounts are expressed in the smallest unit of the currency.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
≥ 1
Defaults to 1

Page number

integer
1 to 30
Defaults to 30

Page size

date-time

The date and time the settlement first got exported to accounting, with timezone offset (use Z for UTC).

date-time

The date and time before which the settlement was first exported to accounting, with timezone offset (use Z for UTC).

paidFrom
array of strings

Payment account used for the settlement. Card settlements are always spendeskAccount; externalAccount matches only wire transfers emitted from an external bank account.

paidFrom
Allowed:
ids
array of objects, unique
length ≥ 1

An array of settlement IDs, exploded (ids=1&ids=2).

ids
state
array of strings
state
Allowed:
types
array of objects

Filter settlements by type.

types
Allowed:

Start date of the requested period. String containing a date expressed in ISO 8601 format like 2023-05-12.

End date of the requested period. String containing a date expressed in ISO 8601 format like 2023-05-12.

string

The ID of the supplier to filter settlements by.

string

Filter settlements by transaction description.

Headers
string

ID of the company the request acts on. Required with an organisation-level token; not needed with a company-level token.

Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json