Skip to main content
POST
Error

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

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)

Cuerpo

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
requerido
asset
string
requerido
credits
object[]
requerido
Required array length: 1 - 500 elements
debits
object[]
requerido
Required array length: 1 - 500 elements
code
string
description
string
metadata
object
operationRouteId
string<uuid>
Ejemplo:

"00000000-0000-0000-0000-000000000000"

routeId
string<uuid>
Ejemplo:

"00000000-0000-0000-0000-000000000000"

Respuesta

Created

amount
string | null
requerido
Ejemplo:

"1500"

assetCode
string
requerido
Required string length: 2 - 10
Ejemplo:

"BRL"

createdAt
string<date-time>
requerido
Ejemplo:

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

credit
string[] | null
requerido
Ejemplo:
debit
string[] | null
requerido
Ejemplo:
deletedAt
string<date-time> | null
requerido
Ejemplo:

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

description
string
requerido
Maximum string length: 256
Ejemplo:

"Transaction description"

feesSkipped
boolean
requerido
Ejemplo:

false

id
string<uuid>
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

ledgerId
string<uuid>
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

operations
object[] | null
requerido
organizationId
string<uuid>
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

status
object
requerido
tracerSkipped
boolean
requerido
Ejemplo:

false

updatedAt
string<date-time>
requerido
Ejemplo:

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

metadata
object
parentTransactionId
string<uuid>
Ejemplo:

"00000000-0000-0000-0000-000000000000"

routeId
string<uuid>
Ejemplo:

"00000000-0000-0000-0000-000000000000"