---
title: "Withdraw your own RFQ (scope: taker)"
method: POST
path: "/v1/rfqs/{id}/cancel"
---

# Withdraw your own RFQ (scope: taker)

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

## Request

- Base URL: `https://api.hashlock.markets`
- URL: `https://api.hashlock.markets/v1/rfqs/{id}/cancel`
- Auth: HTTP bearer

Only before a deal is agreed, and only your own order — the id alone does not cancel someone else's.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Response `200`

cancelled

- object
  - `rfq` Rfq
    - `id` string
    - `direction` 'sell_base' | 'buy_base'
    - `baseAssetId` string: asset uuid — list them with GET /v1/assets
    - `baseAmount` string: base units
    - `quoteAssetId` string: asset uuid — list them with GET /v1/assets
    - `status` string
    - `expiresAt` string, date-time

## Other responses

- `400`: not yours, already agreed, or already gone

---

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