API Reference
Create deposit order
/api/v1/customer/{customerId}/orders/deposit/account/{accountId}https://bloquo.mimicr.dev · provider: https://api.bloquo.ioCreates a deposit order for the specified account.
FIAT accounts with autoExecuteDeposit: true: A PIX code (pixCopyPaste) is returned in the response. The payer must transfer the exact amount before expireAt. Status starts as PENDING_DEPOSIT and transitions to COMPLETED when the bank confirms.
CRYPTO accounts: A blockchain wallet address is returned. The status starts as PENDING_TREASURY until the on-chain transaction is confirmed and reconciled.
The fee is calculated automatically: fee = max(min(amount × feePercentage, maxPercentageFee), flatFee)
When autoExecuteDeposit is set to false, the deposit order is created with status CREATED and no bank transfer instruction is generated automatically. The order waits for a manual trigger or an incoming payment confirmation from the connector before transitioning to PENDING_DEPOSIT and then COMPLETED. Use this mode when the funding transfer is handled externally or when you need to control the deposit execution timing explicitly.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Body
application/jsonRequested deposit amount. The fee is calculated automatically based on the account fee configuration and deducted from the total.
1000Name of the payer (for FIAT deposits).
"João Silva"Blockchain network for crypto deposits. Omit for FIAT deposits.
"Ethereum"Deposit instruction validity in seconds. Defaults to 300 (5 minutes). After expiry the PIX QR code or crypto address should not be used.
300CPF/CNPJ of the payer (for FIAT deposits).
"123.456.789-00"URL to receive status update notifications for this order. Takes priority over the customer's notification preference URL.
"https://your-system.example.com/webhooks/deposit"Responses
201Deposit order created. For FIAT, inspect pixCopyPaste for the payment code. For crypto, inspect walletAddress.
False when the deposit was auto-processed without creating a formal order (e.g. auto-crypto without on-chain confirmation). True in all other cases.
true20042101000Amount credited to the account after fees.
995"BRL""user@acme.com"Lifecycle status of an order. Key statuses: - PENDING_DEPOSIT, awaiting payment confirmation from the bank (FIAT deposits with auto-execute). - PENDING_TREASURY, manually reviewed or crypto orders waiting for treasury action. - WAITING_FUNDS, FX payment waiting for the funding deposit to be confirmed. - PENDING_APPROVAL, FX payment awaiting compliance review. - COMPLETED, order fully settled. - FAILED / REJECTED / EXPIRED: terminal failure states.
18 values
CREATEDACCEPTEDPENDING_DEPOSITPENDING_APPROVALPENDING_TREASURYSENT_TO_CONNECTORPENDING_IN_BANKPROCESSINGCOMPLETEDFAILEDCANCELLEDPROCESSING_REFUNDRETURNEDEXPIREDBLOCKEDREJECTEDWAITING_FUNDSWAITING_WITHDRAWALHow the order was created.
APIMANUALCSV_IMPORTPIX key used as destination for FIAT deposits (when applicable).
PIX copy-paste code for FIAT deposits. Null for crypto deposits.
"00020126580014br.gov.bcb.pix..."End-to-end transaction identifier returned by the payment provider.
Name of the payer (for FIAT deposits).
"João Silva"CPF/CNPJ of the payer.
"123.456.789-00"Bank code for FIAT deposits.
Blockchain deposit address for CRYPTO deposits.
"0x1234567890abcdef1234567890abcdef12345678""Ethereum"Expiration time for the deposit instruction (PIX or crypto address).
"2024-01-15T11:30:00Z""https://your-system.example.com/webhooks/deposit"Status change history for this order, oldest first.
Show child attributes
"COMPLETED""Deposit confirmed by bank""2024-01-15T10:32:00Z""2024-01-15T10:30:00Z""2024-01-15T10:32:00Z"