POST
/
api
/
orders
/
{id}
/
cancel
curl --request POST \
  --url https://app.sandbox.rio.trade/api/orders/{id}/cancel \
  --header 'x-api-key: <api-key>'
{
  "quoteId": "6660bdefd6c964829d63fcb7",
  "userId": "65a99abb6a92bda6e52bf7af",
  "status": "created",
  "crypto": "USDC",
  "side": "buy",
  "fiat": "USD",
  "createdAt": "2024-06-05T19:35:17.436Z",
  "cryptoAddress": "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C",
  "country": "MX",
  "amountFiat": 1000,
  "amountCrypto": 55.51,
  "fees": {
    "processingFeeFiat": 0,
    "transferFeeFiat": 0.17594406538826532,
    "platformFeeFiat": 20
  },
  "price": 0.0568362449619,
  "notes": "Description",
  "expiredQuotes": [
    "<string>"
  ],
  "id": "6660bdf5cc4633bc64122f3c"
}

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

OK

The response is of type object.