Skip to main content
POST
Ingest the collection agent's Arquivo de Baixa Extraordinária

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

Canonical idempotency request ID. Required: this request moves money, and without a key a retry cannot be told apart from a second instruction.

Corpo

application/json
content
string<byte>
obrigatório

The collection agent's Arquivo de Baixa Extraordinária, base64-encoded, exactly as received. Its sha-256 is the file's identity: the same file re-uploaded changes nothing and reduces no debt twice.

Minimum string length: 1

Resposta

Accepted

agentName
string
obrigatório

The collection agent the file came from. Checked before anything was stored: it has to be this tenant's active channel, or the agent an instruction still open was issued to.

currency
string
obrigatório

ISO 4217 currency code.

fileDigest
string
obrigatório

sha-256 of exactly the ingested bytes — the identity a re-upload is recognised by.

layoutVersion
string
obrigatório

The layout the bytes were parsed under, recorded on every line.

lineCount
integer<int64>
obrigatório

Settlements the file carries.

replayed
boolean
obrigatório

True when every line of this file was already known and nothing was written.

storedCount
integer<int64>
obrigatório

Settlements this upload durably added. Zero on a re-upload: every line was already known and nothing was applied a second time.

totalPaid
string
obrigatório

Total the file declares, cent scale, decimal string; never a float.