Skip to main content
POST
Error

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

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)

Parâmetros de caminho

organization_id
string
obrigatório

Organization ID (UUID)

ledger_id
string
obrigatório

Ledger ID (UUID)

Corpo

application/json
accountAlias
string
obrigatório

Alias of the debtor account.

Maximum string length: 100
Exemplo:

"@customer"

balanceKey
string

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

Maximum string length: 100
Exemplo:

"default"

maxAmount
string

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

Exemplo:

"150.00"

Resposta

OK

collected
string
obrigatório

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

Exemplo:

"150.00"

transactionId
string<uuid>

Transaction recording the settlement, absent when nothing was collected.