API Reference
Counterparties and FX payments

Get FX payment order

GET/api/v1/customer/{customerId}/orders/fx-payment/{orderId}
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Returns details of a specific FX payment order.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

customerIdinteger<int64>required
orderIdinteger<int64>required

Responses

200FX payment order details.
idinteger<int64>
Example: 400
customerIdinteger<int64>
Example: 42
counterpartyIdinteger<int64>
Example: 5
fundingTypestring

How the FX payment is funded. - Balance, deducted from existing account balance (requires compliance approval). - DepositOrder, a new deposit order is created to fund the FX payment.

BalanceDepositOrder
fundingOwnerTypestring

Whether the funding source belongs to a Customer or a Counterparty.

CustomerCounterparty
fundingOwnerIdinteger<int64>
Example: 42
fundingCurrencystring
Example: "BRL"
fundingAmountnumber
Example: 10000
targetCurrencystring
Example: "USD"
targetAmountnumber | null
Example: 1950
quoteIdstring<uuid> | null
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
quoteRatenumber | null
Example: 5.1282
quoteExpiresAtstring<date-time> | null
quoteAcceptedAtstring<date-time> | null
tradeIdstring | null
depositOrderIdinteger<int64> | null

Deposit order created to fund this FX payment (only when fundingType = DepositOrder).

bankInformationIdinteger<int64> | null
withdrawalOrderIdinteger<int64> | null

Withdrawal order delivering funds to the counterparty.

Example: 301
trueSenderTypestring

Who owns the funding source or is the true sender/receiver.

CustomerCounterparty
trueSenderIdinteger<int64>
Example: 42
trueReceiverTypestring

Who owns the funding source or is the true sender/receiver.

CustomerCounterparty
trueReceiverIdinteger<int64>
Example: 5
noWithdrawalboolean

When true, the outgoing withdrawal step was skipped.

Example: false
attachmentsApprovedboolean
Example: false
attachmentsUrlsstring[]

URLs of compliance documents attached to this order.

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
customerStatusstring | null

Human-readable status label for display.

Example: "COMPLETED"
statusDescriptionstring | null
orderHistoryobject[]

Status change history for this order, oldest first.

Show child attributes
statusNamestring
Example: "COMPLETED"
descriptionstring | null
Example: "Approved by compliance"
createdAtstring<date-time>
Example: "2024-01-15T10:31:00Z"
createdBystring
Example: "user@acme.com"
lastUpdatedBystring
Example: "System"
createdAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
lastUpdatedAtstring<date-time>
Example: "2024-01-15T10:32:00Z"
404Order not found.
statusboolean
resultany | null
messagestring