> For the complete documentation index, see [llms.txt](https://bump.sh/zim/doc/esim-api/llms.txt)

# Cancel an Order

> DELETE /orders/{orderID}
> 
> Cancels an Order created by the authenticated User. Returns an empty body.
> * `PENDING_PAYMENT` / `PENDING_APPROVAL` - moved to `CANCELLED`, nothing was charged
> * `PROCESSING` / `FAILED` - the charge is reversed and the Order moves to `REFUNDED`
> 
> 
> Orders in the following statuses cannot be cancelled (`400`, the reason is given in `message`):
> * `FULFILLED` - `CANNOT_CANCEL_FULFILLED_ORDER`
> * `CANCELLED` - `ALREADY_CANCELLED_ORDER`
> * `REPLACED` - `CANNOT_CANCEL_REPLACED_ORDER`
> * `REFUNDED` - `ALREADY_REFUNDED_ORDER`
> 
> 
> Cancelling an `IN_BASKET` Order removes it from the basket.
> 
> To stop a delivered plan, cancel its Subscription instead.



## Servers
- Production: https://zim.api.zimconnections.com (Production)
- Sandbox: https://zim.api.dev.zimconnections.com (Sandbox)


## Authentication methods
- Oauth2 & App identifier


## Parameters

### Path parameters

- **orderID** (string)
  ID of the Order




## Responses
### 200
Order cancelled successfully (empty body)

### 400
Invalid request or refused by a business rule

#### Body: application/json (object)
- **statusCode** (integer)

- **message** (string | array[string])
  Human-readable reason, or one entry per invalid property for validation errors

- **error** (string)


### 404
Resource not found or not owned by your Account

#### Body: application/json (object)
- **statusCode** (integer)

- **message** (string | array[string])
  Human-readable reason, or one entry per invalid property for validation errors

- **error** (string)



[Powered by Bump.sh](https://bump.sh)
