API Reference
Deposits and withdrawals

Create deposit order

POST/api/v1/customer/{customerId}/orders/deposit/account/{accountId}
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Creates 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

customerIdinteger<int64>required
accountIdinteger<int64>required

Body

application/json
amountnumberrequired

Requested deposit amount. The fee is calculated automatically based on the account fee configuration and deducted from the total.

Example: 1000
namestring

Name of the payer (for FIAT deposits).

Example: "João Silva"
blockchainstring

Blockchain network for crypto deposits. Omit for FIAT deposits.

Example: "Ethereum"
expirationinteger

Deposit instruction validity in seconds. Defaults to 300 (5 minutes). After expiry the PIX QR code or crypto address should not be used.

Example: 300
payerTaxIdstring

CPF/CNPJ of the payer (for FIAT deposits).

Example: "123.456.789-00"
webhookUrlstring

URL to receive status update notifications for this order. Takes priority over the customer's notification preference URL.

Example: "https://your-system.example.com/webhooks/deposit"

Responses

201Deposit order created. For FIAT, inspect pixCopyPaste for the payment code. For crypto, inspect walletAddress.
orderCreatedboolean

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.

Example: true
idinteger<int64>
Example: 200
customerIdinteger<int64>
Example: 42
accountIdinteger<int64>
Example: 10
requestedAmountnumber
Example: 1000
totalAmountnumber

Amount credited to the account after fees.

Example: 995
currencystring
Example: "BRL"
createdBystring
Example: "user@acme.com"
statusstring

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_WITHDRAWAL
originstring

How the order was created.

APIMANUALCSV_IMPORT
pixKeystring | null

PIX key used as destination for FIAT deposits (when applicable).

pixCopyPastestring | null

PIX copy-paste code for FIAT deposits. Null for crypto deposits.

Example: "00020126580014br.gov.bcb.pix..."
e2eIdstring | null

End-to-end transaction identifier returned by the payment provider.

namestring | null

Name of the payer (for FIAT deposits).

Example: "João Silva"
payerTaxIdstring | null

CPF/CNPJ of the payer.

Example: "123.456.789-00"
bankCodestring | null

Bank code for FIAT deposits.

bankBranchstring | null
bankAccountstring | null
walletAddressstring | null

Blockchain deposit address for CRYPTO deposits.

Example: "0x1234567890abcdef1234567890abcdef12345678"
blockchainstring | null
Example: "Ethereum"
expireAtstring<date-time> | null

Expiration time for the deposit instruction (PIX or crypto address).

Example: "2024-01-15T11:30:00Z"
webhookUrlstring | null
Example: "https://your-system.example.com/webhooks/deposit"
orderHistoryobject[]

Status change history for this order, oldest first.

Show child attributes
statusNamestring
Example: "COMPLETED"
descriptionstring | null
Example: "Deposit confirmed by bank"
createdAtstring<date-time>
Example: "2024-01-15T10:32:00Z"
createdAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
lastUpdatedAtstring<date-time>
Example: "2024-01-15T10:32:00Z"
400Business validation failed. Common reasons: - Account not found or disabled - Currency not supported for this account - Amount precision mismatch
statusboolean
resultany | null
messagestring