Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string

Idempotency key to safely retry the collection; a retry returns the first collection (an answer that settled nothing is not kept), another request under the same key answers 409 (0084). Without it every call is a new collection.

X-TTL
string

Idempotency slot TTL in seconds (default 300)

Path Parameters

organization_id
string
required

Organization ID (UUID)

ledger_id
string
required

Ledger ID (UUID)

Body

application/json
accountAlias
string
required

Alias of the debtor account.

Maximum string length: 100
Example:

"@customer"

balanceKey
string

Key of the debtor balance; absent means the default balance.

Maximum string length: 100
Example:

"default"

maxAmount
string

Most the collection may settle, greater than zero; absent means everything the balance owes.

Example:

"150.00"

Response

OK

collected
string
required

Amount settled, oldest debt first; 0 when the balance had no open debt, no available funds, or cannot pay a debt's fee account.

Example:

"150.00"

transactionId
string<uuid>

Transaction recording the settlement, absent when nothing was collected.