POST
/
api
/
orders
/
{id}
/
cancel

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

200 - application/json
amountCrypto
number

The total amount of the order in cryptocurrency.

amountFiat
number

The total amount of the order in fiat currency.

conversionRateUSD
number

Conversion rate to USD.

conversionRateUSDWithMarkups
number

Conversion rate to USD with markups.

country
enum<string>

The country where the user is located.

Available options:
MX,
PE,
US
createdAt
string

The date and time when the order was created.

crypto
enum<string>

The type of cryptocurrency used in the order.

Available options:
USDC,
USDC_POLYGON_NXTB,
SOL_USDC_PTHX,
USDT_POLYGON,
USDT_ERC20,
TRX_USDT_S2UZ
cryptoAddress
string

The address associated with the cryptocurrency used in the order.

depositAddress
string

Cryptocurrency deposit address.

discount
number

Discount applied to the order.

exchangeRateOrders
object[]

List of exchange rate orders.

expiredQuotes
string[]

List of expired quotes.

fees
object

Details of the applied fees.

fiat
enum<string>

The type of fiat currency used in the order.

Available options:
USD,
MXN,
PEN
id
string

Unique identifier of the order.

liquidityProvider
enum<string>

Liquidity provider used.

Available options:
fireblocks,
bridge
markup
number

Markup applied to the order.

notes
string

Additional notes about the order.

price
number

Price of the cryptocurrency.

processor
enum<string>

The payment processor used to handle the transaction.

Available options:
interbank,
swift,
spei,
spid,
ksr,
bridge,
bitso
quoteId
string

The unique identifier assigned to the quote.

side
enum<string>

The side of the order, indicating whether it's a buy or sell order.

Available options:
buy,
sell
status
enum<string>

The current status of the order.

Available options:
created,
cancelled,
processing,
sourcingLiquidity,
cryptoAddressAdded,
liquiditySourced,
awaitingBankPayoutDetails,
awaitingBinanceSettlement,
binanceSettlementFailed,
incorrectBinanceSettlement,
depositRegistered,
depositConfirmed,
paymentOriginMismatch,
paid,
filled,
refundInitiated,
addressCheckPassed,
depositAddressCreated,
complete,
failedPayment,
bankPayoutDetailsAdded,
awaitingPayment,
awaitingOriginOrderCompletion,
awaitingTransferReissue,
awaitingPayout,
awaitingAsyncPayout,
awaitingAsyncPayment,
awaitingBridgeRouting,
failedFill,
failedTransfer,
failedQuote,
failedProcessorRouting,
failedLiquidityRouting,
failedFees,
incorrectAmountPaid,
insufficientLiquidityFailed,
depositAddressFailed,
addressCheckFailed,
refundFailed,
refundComplete,
bridgeOrderCreationFailed,
bridgeOrderRoutingFailed,
bridgeTransferFailed,
depositAmountMismatchFailed,
failedUnknown,
expired
userId
string

The unique identifier assigned to the user.