---
title: "Cancel a deal (initiator only, before counterparties commit)"
method: POST
path: "/v1/deals/{id}/cancel"
tags: ["deals"]
---

# Cancel a deal (initiator only, before counterparties commit)

`POST /v1/deals/{id}/cancel`

## Request

- Base URL: `https://api.redeal.dev`
- URL: `https://api.redeal.dev/v1/deals/{id}/cancel`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object

## Response `200`

Deal cancelled

- object
  - `deal_id` string
  - `state` string

## Other responses

- `401`: Error. The message is instructive: it names the code and the fix.
- `403`: Error. The message is instructive: it names the code and the fix.
- `409`: Error. The message is instructive: it names the code and the fix.

---

[API](https://skmtc.dev/redeal-dev/apis/redeal-api.md) · [All operations](https://skmtc.dev/redeal-dev/apis/redeal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/redeal-dev/apis/redeal-api/revisions/b3685d5f93af?raw)
