---
title: "POST /orders/txns/cancel/prepare"
method: POST
path: "/orders/txns/cancel/prepare"
tags: ["Order Transactions"]
---

# POST /orders/txns/cancel/prepare

`POST /orders/txns/cancel/prepare`

## Request body

- CancelPrepareRequest
  - `subaccountApproval` RecordStringAny — Construct a type with a set of properties K of type T
  - `subaccountAddress` string
  - `from` string, required
  - `mode` 'express' | 'classic', required
  - `all` boolean
  - `orderIds` string[]
  - `orderId` string

## Response `200`

Success

- PrepareResponse
  - `traceId` string
  - `warnings` string[]
  - `expiresAt` number, double
  - `estimates` object
    - `fundingFeeUsd` string, required
    - `borrowingFeeUsd` string, required
    - `positionFeeUsd` string, required
    - `sizeDeltaUsd` string, required
    - `acceptablePrice` string, required
    - `executionFeeAmount` string, required
    - `swapPriceImpactDeltaUsd` string, required
    - `positionPriceImpactDeltaUsd` string, required
  - `payload` RecordStringAny, required — Construct a type with a set of properties K of type T
  - `requestId` string, required
  - `mode` 'express' | 'classic', required
  - `payloadType` 'transaction' | 'typed-data', required

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/gmx/apis/gmx-io-gmx-public-api.md) · [All operations](https://skmtc.net/gmx/apis/gmx-io-gmx-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmx/gmx-io-gmx-public-api/revisions/b3be06047493/schema)
