Guides
Deposits
Receive PIX and crypto into an account, follow the order and refund it when needed.
A deposit order generates the payment instruction (PIX copy-and-paste code or wallet address) and follows the money until the account is credited. The path depends on the account type:
| Account | Initial status | Then |
|---|---|---|
FIAT with autoExecuteDeposit: true | PENDING_DEPOSIT with pixKey, pixCopyPaste and expireAt | COMPLETED when the payer pays, or EXPIRED |
FIAT with autoExecuteDeposit: false | CREATED | COMPLETED when the payment is confirmed |
| CRYPTO | PENDING_TREASURY with walletAddress and blockchain | COMPLETED after on-chain confirmation |
Create a PIX deposit
Only amount is required. Also accepted: requestedAmount (instead of amount), name, payerTaxId, expiration in seconds (default 300) and webhookUrl.
curl -X POST https://bloquo.mimicr.dev/api/v1/customer/1001/orders/deposit/account/1004 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"amount": 1000.00, "name": "João Silva", "payerTaxId": "529.982.247-25"}'The response (201) is the order, with no envelope:
{
"orderCreated": true,
"id": 1043,
"customerId": 1001,
"accountId": 1004,
"requestedAmount": 1000,
"totalAmount": 1000,
"currency": "BRL",
"createdBy": "api-client",
"status": "PENDING_DEPOSIT",
"origin": "API",
"pixKey": "3e3c8e7e-0540-45bc-b23a-7e08be5beac0",
"pixCopyPaste": "00020101021226660014br.gov.bcb.pix2544pix.bloquo.io/qr/v2/791f8b64ad22af96f2cef882520400005303986540710...",
"e2eId": null,
"name": "João Silva",
"payerTaxId": "529.982.247-25",
"walletAddress": null,
"blockchain": null,
"expireAt": "2026-11-05T20:10:56.877Z",
"webhookUrl": null,
"orderHistory": [
{ "createdAt": "2026-11-05T20:05:56.878Z", "statusName": "PENDING_DEPOSIT", "description": "PIX instruction generated; waiting for payment." }
],
"createdAt": "2026-11-05T20:05:56.878Z",
"lastUpdatedAt": "2026-11-05T20:05:56.878Z"
}Show the pixCopyPaste (an EMV BR Code) to the payer. totalAmount is what will be credited, net of the account's deposit fee.
Create a crypto deposit
On crypto accounts, blockchain is required and must be a network of the currency (USDT on Ethereum, Tron, Polygon or Solana, for example):
curl -X POST https://bloquo.mimicr.dev/api/v1/customer/1001/orders/deposit/account/1010 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"amount": 500, "blockchain": "Ethereum"}'The order comes back PENDING_TREASURY with the account's walletAddress on that network. When the network confirms, e2eId holds the transaction hash.
What happens next
- In Mimicr, the payer pays (or the network confirms) about 4 seconds later. The order moves to
COMPLETED, aCredittransaction oftotalAmountlands in the account and theDepositwebhook goes out. - If
expireAtpasses with no payment, the order moves toEXPIREDand a webhook goes out too. - Every change is recorded in
orderHistory(statusName,description,createdAt).
The webhook goes to the order's webhookUrl, if any; otherwise to the customer's Deposit preference. See Webhooks.
Errors
| HTTP | message |
|---|---|
| 400 | Account not found. |
| 400 | Amount must have correct precision. Currency: BRL - Precision: 2 |
| 400 | Blockchain must be informed for crypto deposits. |
| 400 | Blockchain not supported for selected currency. |
| 400 | Customer is not active. (sub-account not Active) |
Refund a deposit
Only COMPLETED deposits can be refunded:
curl -X POST https://bloquo.mimicr.dev/api/v1/customer/1001/orders/deposit/account/1004/refund/1043 \ -H "Authorization: Bearer <token>"
{ "id": 1043, "status": "PROCESSING_REFUND", "createdAt": "2026-11-05T20:05:56.878Z", "updatedAt": "2026-11-05T20:12:05.708Z" }The amount is held and, about 3 seconds later, the order moves to RETURNED with a Debit. Both steps fire a webhook with orderType: "REFUND" to the Refund preference. Outside COMPLETED, the response is 400 Deposit cannot be refunded because it is not in status 'COMPLETED'..
Bloquo doesn't document the final refund status. In Mimicr it is RETURNED.
List
GET /api/v1/customer/{customerId}/orders/deposit accepts status, startDate, endDate, page and pageSize and answers {items, meta}. .../orders/deposit/children returns the deposits of the sub-customers.
Test the scenarios
Mimicr rule: a FIAT deposit ending in ,05 cents (e.g. 10.05) is never paid and ends EXPIRED. Use "expiration": 30 to avoid waiting 5 minutes, or advance the clock.
npx mimicr action bloquo deposit.pay depositId=1043 npx mimicr action bloquo deposit.expire depositId=1043 npx mimicr clock bloquo +10m npx mimicr wait bloquo delivery order_type=Deposit order_id=1043 event=COMPLETED
deposit.pay pays right away (including ,05 deposits and CREATED ones); deposit.expire expires right away. To control every payment, turn autoPayDeposits off (see Sandbox rules).
Reference: Create deposit order, Request deposit refund, List deposit orders, List child deposit orders.