Create a Transaction using the v2 direct model
Authorizations
JWT bearer token issued by the identity provider.
Headers
Idempotency key to safely retry the create; an identical retry returns the original transaction
Idempotency slot TTL in seconds (default 300)
Body
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.
1 - 500 elements1 - 500 elements"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"
Response
Created
"1500"
2 - 10"BRL"
"2021-01-01T00:00:00Z"
"2021-01-01T00:00:00Z"
256"Transaction description"
false
"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"
false
"2021-01-01T00:00:00Z"
"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"

