---
title: "Cancel sales order"
method: POST
path: "/api/v1/salesOrders/{id}/actions/cancel"
tags: ["Sales Order"]
---

# Cancel sales order

`POST /api/v1/salesOrders/{id}/actions/cancel`

Cancels a sales order. Only sales orders in status 'created' or 'completed' can be canceled. For draft sales orders use the delete endpoint.<br><br>
<h2>Warning: Multiple request body content types</h2>
<p>
    Due to technical limitations, the information provided here may not display all available request body content types.
    We are currently working with our third-party documentation provider to address this issue.
    For a complete and accurate representation of the available content types, we recommend referring to the <a target="_blank" href="https://github.com/xentral/api-spec-public">full OpenAPI specification</a>.
</p>
<p>
    We apologize for any inconvenience caused and appreciate your understanding as we work to resolve this matter.
</p>
<h3>Available request content types:</h3>
<ul>
    <li><b>application/json</b></li>
<li>application/x-www-form-urlencoded</li>
</ul>

## Path parameters

- `id` string, required — Resource identifier.

## Request body

- object
  - `notifyCustomer` boolean, nullable

## Response `204`

Operation completed successfully, no response body

## Other responses

- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `409` — Request conflict with the current state of the target resource
- `429` — Too many API calls made.

---

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