Skip to main content
POST
Cancel order

Requirements to consume the endpoint.

Create and modify role

The user must have the role to create and modify.

User approved

The user must be approved in at least one country.

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Id of the order to be cancelled.

Response

OK

id
string

Id of the order.

Example:

"6660bdefd6c964829d63fcb8"

quoteId
string

Id of the quote the order is priced on. Changes when the order is re-quoted.

Example:

"6660bdefd6c964829d63fcb7"

userId
string

Id of the user the order belongs to.

Example:

"66290ac8bd3903485989f82e"

clientReferenceId
string

Your own reference for the order.

Example:

"my-reference-1234"

status
enum<string>

Current status. These are the statuses an order moves through on a normal flow. Which ones it sees depends on the flow. Other statuses can appear depending on the circumstances of the order.

Available options:
awaitingTimeInForceToStart,
awaitingLimitPriceCondition,
timeInForceEnded,
created,
addressCheckPassed,
awaitingPayment,
processing,
paid,
incorrectAmountPaid,
sourcingLiquidity,
liquiditySourced,
filled,
complete,
depositAddressCreated,
awaitingBankPayoutDetails,
bankPayoutDetailsAdded,
depositConfirmed,
awaitingPayout,
bankPaymentDetailsAdded,
awaitingAsyncPayment,
awaitingAsyncPayout,
cancelled,
expired
Example:

"awaitingPayment"

flow
enum<string>

Direction of the conversion, derived from the two assets. fiatToCrypto buys stablecoins, cryptoToFiat sells them, cryptoToCrypto swaps one stablecoin or network for another.

Available options:
fiatToCrypto,
cryptoToFiat,
cryptoToCrypto
Example:

"fiatToCrypto"

origin
object

What the customer pays. The amount is in the leg's own asset.

destination
object

What the customer receives. The amount is in the leg's own asset.

fixedLeg
enum<string>

Which leg's amount you specified. The other leg was derived from the price and fees.

Available options:
origin,
destination
Example:

"origin"

pricingDetails
object

How the destination amount was derived from the origin amount.

settlement
object

How and when the two legs settle.

marketPrice
number

Market price at the time the order was created, in units of the destination asset per unit of the origin asset.

Example:

0.056

netPrice
number

Final price including fees and taxes.

Example:

0.05476

type
enum<string>

market executes at the current price, limit waits for limitNetPrice.

Available options:
market,
limit
Example:

"market"

limitNetPrice
number

Limit price for limit orders, expressed like netPrice as units of the destination asset per unit of the origin asset. Only applicable when orderType is limit.

Example:

0.0555

timeInForceStartsAt
string<date-time>

Earliest execution time of a limit order.

Example:

"2026-10-12T18:00:00.000Z"

timeInForceEndsAt
string<date-time>

Latest execution time of a limit order.

Example:

"2026-10-12T18:00:00.000Z"

attributes
string[]

List of attributes associated with the order.

Example:
notes
string

Notes you attached to the order.

Example:

"Note"

payoutTransferLimit
number

Maximum amount per payout transfer. Larger payouts are split.

Example:

475000

paymentReceivedAt
string<date-time>

When your payment was received.

Example:

"2026-10-12T18:00:00.000Z"

expiredQuotes
string[]

Ids of quotes the order went through before the current one.

Example:
parentOrderId
string

Id of the parent order when this order was spawned from a partial fill.

invoice
object

Invoice details, Mexican orders only.

informationalFees
object

Informational fees (do not affect the quote).

createdAt
string<date-time>

Creation time.

Example:

"2026-10-12T18:00:00.000Z"