Skip to main content
POST
Cancel an order

Authorizations

Authorization
string
header
required

Enter Auth0 JWT token

Headers

Zuba-Account-Id
string<uuid>

Optional. Names an owned sub-account (UUID) to act as: an order made for any other account, the master included, returns 404. Omit to act for any order of the master (tenant) and its sub-accounts. The master's own account id acts as no header. Naming an account this key does not own returns 403 not_account_owner.

Path Parameters

id
string<uuid>
required

Order id

Response

beneficiaryId
string<uuid>
required

Beneficiary id

createdAt
string
required

Creation time (ISO 8601)

fromAmount
string
required

Total source debit, in fromCurrency (decimal string)

Example:

"1006.5000"

fromCurrency
string
required

Funded (source) currency

Example:

"USDT"

fundingDeadlineAt
string
required

Deadline for funds to be attributed to the order before it expires (ISO 8601)

id
string<uuid>
required

Order id

quoteId
string<uuid>
required

Consumed quote id

rate
string
required

All-in rate: fromCurrency per 1 toCurrency

Example:

"0.00067100"

status
enum<string>
required

Order lifecycle status

Available options:
created,
awaiting_funds,
funds_received,
executing,
completed,
failed,
expired,
cancelled
toAmount
string
required

Amount delivered, in toCurrency (decimal string)

Example:

"1500000.0000"

toCurrency
string
required

Delivered (target) currency

Example:

"NGN"

updatedAt
string
required

Last update time (ISO 8601)

accountId
string<uuid>

Owning sub-account; present when the order was created in a sub-account context (Zuba-Account-Id header). Absent = the order belongs to your master account.

clientRef
string

Client-supplied reference

completedAt
string

When the order completed (ISO 8601)

executionDeadlineAt
string

Desk execution deadline, set when funds are received (ISO 8601)

failureReason
enum<string>

Fixed failure code; present only when status is failed

Available options:
execution_failed,
review_expired
fundedAt
string

When funds were received (ISO 8601)

purpose
string

Free-text purpose

settlement
object

Funding instructions; present when the order is (or was) settlement-funded rather than balance-funded

txHash
string

On-chain transaction hash of the delivery; present once an order delivering to a crypto wallet completes. An Ethereum transaction hash or a Solana transaction signature, on the beneficiary wallet's network.

Example:

"0x3a1f9c2b4d5e6f70819a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f70"

uetr
string

Outbound wire reference (UETR); present once the order completes over a wire rail