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 create; an identical retry returns the original transaction

X-TTL
string

Idempotency slot TTL in seconds (default 300)

Corpo

application/json

Transaction request body. debits and credits are the two required, non-empty leg arrays of the transaction; one debit paired with many credits, or the reverse, is a valid request. Every leg names the organizationId and ledgerId its account belongs to; all of them must name the SAME pair, and that pair is the organization and ledger the transaction is created in. A request whose accounts name different pairs is rejected. asset, amount, description, code, routeId, operationRouteId and metadata sit alongside the two leg arrays, and amount is the transaction total that the legs' share expressions divide. Each leg array holds at most 500 legs.

amount
string
obrigatório
asset
string
obrigatório
credits
object[]
obrigatório
Required array length: 1 - 500 elements
debits
object[]
obrigatório
Required array length: 1 - 500 elements
code
string
description
string
metadata
object
operationRouteId
string<uuid>
Exemplo:

"00000000-0000-0000-0000-000000000000"

routeId
string<uuid>
Exemplo:

"00000000-0000-0000-0000-000000000000"

Resposta

Created

amount
string | null
obrigatório
Exemplo:

"1500"

assetCode
string
obrigatório
Required string length: 2 - 10
Exemplo:

"BRL"

createdAt
string<date-time>
obrigatório
Exemplo:

"2021-01-01T00:00:00Z"

credit
string[] | null
obrigatório
Exemplo:
debit
string[] | null
obrigatório
Exemplo:
deletedAt
string<date-time> | null
obrigatório
Exemplo:

"2021-01-01T00:00:00Z"

description
string
obrigatório
Maximum string length: 256
Exemplo:

"Transaction description"

feesSkipped
boolean
obrigatório
Exemplo:

false

id
string<uuid>
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

ledgerId
string<uuid>
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

operations
object[] | null
obrigatório
organizationId
string<uuid>
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

status
object
obrigatório
tracerSkipped
boolean
obrigatório
Exemplo:

false

updatedAt
string<date-time>
obrigatório
Exemplo:

"2021-01-01T00:00:00Z"

metadata
object
parentTransactionId
string<uuid>
Exemplo:

"00000000-0000-0000-0000-000000000000"

routeId
string<uuid>
Exemplo:

"00000000-0000-0000-0000-000000000000"