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.

External IDs

Pass include=externalIds to embed, on each entry of allocations[], the IDs that allocation has in external systems (ERPs), such as the ERP payment reference. It is opt-in because it costs an additional lookup; without it the field is absent. IDs are recorded per allocation, because settlements are exported per allocation. Only exported allocations carry an ID, and allocations exported before external IDs were recorded may have none. Some integrations record no settlement ID at all (Xero bank fees, QuickBooks settlements, native DATEV settlements and wallet loads), and Xero already-paid settlements carry the literal ID unknown. source reads public_api only for IDs written with provider PublicApi; an ID written through the API under another provider (e.g. pennylane) reads back as native_integration. allocations[] still holds at most one entry per payableId exactly as without include: the IDs of collapsed allocations are merged onto the entry that is kept, its amount is unchanged.

Pass externalIds (exploded, up to 50, exact match) to return only settlements with at least one allocation carrying one of those IDs, optionally restricted to one external system with provider. It is combined with every other filter using AND; an ID no settlement carries returns an empty page. External IDs are cached for up to 24 hours; a successful POST /v1/experimental/external-references clears them, IDs recorded by an accounting export can take that long to appear.

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.

externalIds
array of strings
length between 1 and 50

Return only settlements with at least one allocation carrying one of these IDs in an external system (ERP), exact match, exploded (externalIds=A&externalIds=B). Resolved against the external-reference registry, so settlements without an exported allocation ID are excluded. Combined with every other filter, including ids, using AND. From 1 to 50 per request. Rejected with a 400 when the IDs match more than 100 settlements before the other filters apply; narrow with provider, ids or more specific IDs (date and state filters do not reduce that count). The placeholder values unknown and invoiceAlreadyPaid are rejected with a 400.

externalIds
string
length ≥ 1

Restrict the externalIds filter to one external system (e.g. Netsuite, pennylane). Ignored without that filter, and it does not narrow the externalIds include, which returns the IDs from every system (read provider on each entry).

include
array of strings

Extra data to embed in the response. externalIds adds allocations[].externalIds and costs one additional lookup per request, so it is opt-in.

include
Allowed:
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