---
title: "Cancel order"
method: POST
path: "/v1/orders/cancel"
tags: ["Orders"]
---

# Cancel order

`POST /v1/orders/cancel`

Cancel resting order via RISExUniversalRouter. Client signs permit.

**Signature:** 64-byte EIP-2098 compact (r + yParityAndS) or 65-byte (r+s+v, auto-converted).

## Request body

- ApiCancelOrderRequest
  - `market_id` integer — Market ID (uint16)
  - `order_id` string — Composite OrderID (hex 0x...)
  - `permit` ApiPermitParams — Permit parameters for v3 authenticated operations. Client signs EIP-712 VerifyWitness; server builds byte-packed permit suffix. Uses bitmap nonces for replay protection.
    - `account` string — Account address (hex)
    - `signer` string — Signer address (hex)
    - `nonce_anchor` string, uint64 — Permit nonce anchor (uint48)
    - `nonce_bitmap_index` integer — Permit nonce bitmap index (uint8, 0-255)
    - `deadline` integer — Permit deadline (unix timestamp)
    - `signature` string, byte — EIP-2098 compact signature (64 bytes: r + yParityAndS) or standard 65-byte (r+s+v)

## Response `200`

A successful response.

- ApiCancelOrderResponse
  - `tx_hash` string
  - `block_number` string, uint64
  - `success` boolean — true if receipt.Status == 1

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rise/apis/risex-rest-api.md) · [All operations](https://skmtc.net/rise/apis/risex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rise/risex-rest-api/revisions/194af8339c0d/schema)
