# Cancel order

## CancelOrder

<mark style="color:green;">`POST`</mark> `/Api/Customer/CancelOrder`

#### Request Body

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| OrderCode<mark style="color:red;">\*</mark> | string | Order code  |

{% tabs %}
{% tab title="200 " %}

```
{
    "Errors": [],
    "ErrorMessage": ""
}
```

{% endtab %}
{% endtabs %}

### Example

```
{  
  "OrderCode":"WKH091808-00002"
}
```

### Errors Code

{% hint style="danger" %}
6: Exception.

12: Customer account is invalid.&#x20;

13: Order not found.&#x20;

14: Order status is invalid.&#x20;

15: OrderCode is null or empty.&#x20;

16: Order is invalid.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidoc.247express.vn/english-1.0.6/customer/cancel-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
