---
title: "Cancel withdrawal order"
method: PUT
path: "/v0/withdrawal-orders/{id}/cancel"
tags: ["Withdrawal orders"]
---

# Cancel withdrawal order

`PUT /v0/withdrawal-orders/{id}/cancel`

## Request

- Base URL: `https://distributor-api.spiko.io`
- URL: `https://distributor-api.spiko.io/v0/withdrawal-orders/{id}/cancel`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/spiko/apis/spiko-distributor-api/docs/v0/withdrawal-orders/:id/cancel/put.ts> (a function with typed inputs; its response is checked against the schema)

**Cancel a withdrawal order.** Order must be in `pending` status.

> **Distribute-with-Spiko's-license distributors** cannot cancel this order from their backend. The investor must do it directly from the browser with a short-lived [Investor JWT](/developers/distributor_api/technical_guides/investor_jwt), targeting the investor-scoped path **`PUT /v0/investor/withdrawal-orders/{id}/cancel`** (identical payload and response, but authenticated with the investor JWT as bearer token instead of your API credentials).

## Path parameters

- `id` string, uuid, required: a Universally Unique Identifier

## Response `200`

Success

- object
  - `id` string, uuid, required: a Universally Unique Identifier
  - `investorId` string, uuid, required: a Universally Unique Identifier
  - `accountId` string, uuid, required: a Universally Unique Identifier
  - `shareClassId` string, uuid, required: a Universally Unique Identifier
  - `destination` union, required
    - object
      - `type` 'bank-transfer', required
      - `bankAccountId` string, uuid, required: a Universally Unique Identifier
    - object
      - `type` 'instant-bank-transfer', required
      - `bankAccountId` string, uuid, required: a Universally Unique Identifier
    - object
      - `type` 'stablecoin-transfer', required
      - `walletId` string, uuid, required: a Universally Unique Identifier
  - `quantity` union, required
    - object
      - `mode` 'amount', required
      - `amount` NonNegativeAmount, required
        - `value` string, required: a string representation of a non-negative decimal number e.g. "10000", "0.00" or "3420.92"
        - `currency` 'EUR' | 'USD' | 'GBP' | 'CHF' | 'JPY' | 'SGD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'HUF' | 'CZK', required: a currency code among "EUR", "USD", "GBP", "CHF", "JPY", "SGD", "SEK", "NOK", "DKK", "PLN", "HUF", "CZK"
    - object
      - `mode` 'shares', required
      - `shares` string, required
    - object
      - `mode` 'total', required
  - `status` 'pending' | 'executed' | 'canceled', required
  - `createdAt` string, required
  - `executedAt` string, nullable, required
  - `canceledAt` string, nullable, required
  - `settlement` object, nullable, required
    - `amount` NonNegativeAmount, required
      - `value` string, required: a string representation of a non-negative decimal number e.g. "10000", "0.00" or "3420.92"
      - `currency` 'EUR' | 'USD' | 'GBP' | 'CHF' | 'JPY' | 'SGD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'HUF' | 'CZK', required: a currency code among "EUR", "USD", "GBP", "CHF", "JPY", "SGD", "SEK", "NOK", "DKK", "PLN", "HUF", "CZK"
    - `shares` string, required
    - `appliedNAV` object, required
      - `day` string, required: a day in ISO format "YYYY-MM-DD"
      - `amount` NonNegativeAmount, required
        - `value` string, required: a string representation of a non-negative decimal number e.g. "10000", "0.00" or "3420.92"
        - `currency` 'EUR' | 'USD' | 'GBP' | 'CHF' | 'JPY' | 'SGD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'HUF' | 'CZK', required: a currency code among "EUR", "USD", "GBP", "CHF", "JPY", "SGD", "SEK", "NOK", "DKK", "PLN", "HUF", "CZK"

## Other responses

- `400`: Bad Request | The request did not match the expected schema
- `401`: Authentication failed. Two bodies are possible: the schema below when the API rejects the credentials, and `{ "error": { "code", "status", "request", "message" } }` when the API gateway rejects them first. Only the former carries a `_tag`.
- `403`: Forbidden
- `404`: NotFound
- `500`: InternalServerError
- `503`: The investor is undergoing a scheduled upgrade, access is temporarily paused to ensure data safety.

---

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