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

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

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

Cuerpo

application/json
content
string<byte>
requerido

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

Respuesta

Accepted

agentName
string
requerido

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
requerido

ISO 4217 currency code.

fileDigest
string
requerido

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

layoutVersion
string
requerido

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

lineCount
integer<int64>
requerido

Settlements the file carries.

replayed
boolean
requerido

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

storedCount
integer<int64>
requerido

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

totalPaid
string
requerido

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