---
title: "Prepare order cancel transaction"
method: POST
path: "/v0.1/orders/{id}/prepareCancelTx"
tags: ["NFT Sales"]
---

# Prepare order cancel transaction

`POST /v0.1/orders/{id}/prepareCancelTx`

## Request

- Base URL: `https://api.rarible.org`
- URL: `https://api.rarible.org/v0.1/orders/{id}/prepareCancelTx`
- Auth: API key in header `X-API-KEY`

Prepare all required data to cancel given order on the blockchain

## Path parameters

- `id` string, required

## Response `200`

OK

- PreparedOrderTx
  - `to` string, required: Blockchain contract address in Union format `ETHEREUM:${token}`
  - `data` string, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api.md) - [All operations](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rarible/apis/rarible-protocol-mcp-api/revisions/5d2651b9411d?raw)
