How to use the Orders endpoints in the Bloquo API?

How to use the Orders endpoints in the Bloquo API?

πŸ’Έ Bloquo API: Orders Endpoints


Overview

The Orders section of the Bloquo API allows you to create, list, and refund deposit and withdrawal orders. This functionality is essential for managing incoming and outgoing transactions on the platform.


πŸͺ™ Deposits

POST Init Deposit Order

Creates a new deposit order with value, currency, expiration time, payer details, and a webhook URL.

Endpoint:

POST /orders/deposit/account/:accountId

πŸ“Ž Link to full request example


GET List Deposit Orders

Lists existing deposit orders with filters by status, name, payment method, and more.

Endpoint:

GET /orders/deposit

πŸ“Ž Link to full request example


POST Refund Deposit Order

Performs a refund on a specific deposit order. Currently available for BRL orders only.

Endpoint:

POST /orders/deposit/account/:accountId/refund/:depositId

πŸ“Ž Link to full request example

⚠️ Refunds can only be processed if the order is in a compatible status and the currency is BRL.


πŸ’΅ Withdrawals

POST Init Withdrawal Order

Creates a withdrawal order with full recipient details, amount, currency, and webhook.

Endpoint:

POST /orders/withdrawal/account/:accountId

πŸ“Ž Link to full request example


GET List Withdrawal Orders

Lists all withdrawal orders with filters by status, name, method, bank, and more.

Endpoint:

GET /orders/withdrawal

πŸ“Ž Link to full request example


❓ FAQ – Common Questions

1. Do I need to authenticate before using the Orders endpoints?

Yes. All endpoints require a Bearer Token generated via authentication with clientId and clientSecret.

2. What happens if the deposit or withdrawal fails?

You can check the order history using the orderHistory field in the response. For deposits, you may initiate a refund using the Refund Deposit Order endpoint.

3. Can I track deposit/withdrawal status in real-time?

Yes. When creating an order, provide a webhookUrl. The API will send status updates to this URL.

4. Are all operations available in currencies other than BRL?

Refunds are currently supported only for BRL.

5. What’s the difference between requestedAmount and totalAmount?

totalAmount may include additional fees, while requestedAmount is the amount specified in the order.

6. What is the format of the token used?

JWT (Bearer Token), sent in the Authorization header.


You are now ready to use the Orders endpoints of the Bloquo API to manage transactions securely. If you have any questions, check the official documentation or contact our support team.

    • Related Articles

    • How to use the Trades endpoints in the Bloquo API?

      ? Bloquo API: Trades Endpoints Overview The Trades endpoints allow efficient currency exchange operations on the platform, including quote requests, trade confirmations, and trade history listing. ? Request Quote POST Request Quote Request a quote ...
    • How to use the Accounting endpoints in the Bloquo API?

      ? Bloquo API: Accounting Endpoints βœ… Overview The Accounting section endpoints of the Bloquo API allow you to retrieve financial data of the authenticated customer, such as: Customer registration details Accounts (FIAT and CRYPTO) Current balances ...
    • How to use the Notifications endpoints in the Bloquo API?

      ? Bloquo API: Notification Endpoints Overview The Notifications endpoints allow clients to retrieve a history of notifications generated by the platform (such as transaction status changes) and to manually trigger resending of notifications if ...
    • How to retrieve available currencies using the Reference endpoints?

      ? Bloquo API: Reference Endpoints (Currencies) Overview The Reference endpoints in Bloquo API provide foundational information such as the list of supported currencies. This is essential for validating transactions, configuring accounts, and ...
    • πŸ“š Bloquo Webhooks Integration: Receiving Real-Time Order Status Notifications

      ? Bloquo Webhooks Integration: Receiving Real-Time Order Status Notifications ? Feature Overview Bloquo Webhooks are a critical real-time notification mechanism that ensures clients are immediately informed about any status change in their Deposit ...