# 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 %}
