Skip to main content
POST
Create an order from a quote

Path Parameters

account-id
string<uuid>
required

Body

application/json
quote-id
string<uuid>
required

Unique identifier of the quote to accept

Example:

"550e8400-e29b-41d4-a716-446655440000"

source-wallet-address
string | null

Ethereum wallet address for source tokens (required only when source asset is a token like eth-mainnet/brlv, eth-base/brlv or eth-base/wbrly)

Example:

"0x742d35Cc6635C0532925a3b8D295FD6C6e7e2c2c"

target-wallet-address
string | null

Ethereum wallet address for receiving tokens. Resolved server-side to an internal wallet, a whitelisted external wallet, or a target wallet. For FX (BRL<->USDC) orders, target wallets must also be FX-whitelisted for the account.

Example:

"0x742d35Cc6635C0532925a3b8D295FD6C6e7e2c2c"

target-end-user-pix-key
string | null

PIX key of a third-party end-user bank account to receive BRL. Allowed for USDC->BRL and BRLV->BRL orders. The recipient bank account's tax-id must match the tax-id registered on the account the order is executed on. When set, BRL is delivered directly to this PIX key; the API user's own bank account is not touched.

Example:

"user@example.com"

source-payment-method
enum<string> | null

How the source BRL is collected. 'brcode' issues a one-time PIX QR for the exact amount that the account pays to fund a BRL->BRLV order; 'account-balance' funds from the account's existing BRL balance and is the default when this field is omitted.

Available options:
brcode,
account-balance
Example:

"brcode"

Response

Order created successfully

order
object
required