API Reference
Create withdrawal order
/api/v1/customer/{customerId}/orders/withdrawal/account/{accountId}https://bloquo.mimicr.dev · provider: https://api.bloquo.ioCreates a withdrawal order from the specified account.
FIAT withdrawals: Provide a pixKey. Funds are sent via PIX. If autoExecuteWithdrawal: true on the account, the order is submitted to the payment provider automatically.
CRYPTO withdrawals: Provide walletAddress + blockchain. The destination wallet must be pre-registered in the customer's wallet whitelist (see POST /crypto/wallet/whitelist).
The fee formula: fee = max(min(amount × feePercentage, maxPercentageFee), flatFee) Total debited from balance: amount + fee.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Body
application/jsonAmount to withdraw (before fees).
500Name of the recipient/beneficiary.
"João Silva"CPF/CNPJ of the recipient (for FIAT withdrawals).
"987.654.321-00"PIX key of the recipient (for PIX withdrawals). One of receiverAccountKey or receiverWalletAddress is required.
"987.654.321-00"Blockchain destination address for CRYPTO withdrawals. Must be pre-registered in the wallet whitelist.
"0xabcdef1234567890abcdef1234567890abcdef12"Blockchain network for the destination wallet. Required with receiverWalletAddress.
"Ethereum"URL to receive status update notifications for this order. Takes priority over the customer's notification preference URL.
"https://your-system.example.com/webhooks/withdrawal"Responses
201Withdrawal order created.
3004210500Total deducted from balance (requestedAmount + fee).
502.5"BRL"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_WITHDRAWALHuman-readable status label for display.
"COMPLETED"How the order was created.
APIMANUALCSV_IMPORT"João Silva""987.654.321-00"PIX key of the recipient (for FIAT withdrawals).
"987.654.321-00"Blockchain destination address (for CRYPTO withdrawals).
End-to-end transaction identifier returned by the payment provider.
"E18236120202401151100XYZ""https://your-system.example.com/webhooks/withdrawal"Status change history for this order, oldest first.
Show child attributes
"COMPLETED""2024-01-15T11:00:00Z""2024-01-15T10:30:00Z""2024-01-15T11:00:00Z"