# Cancel Order

## Cancel Orders

<mark style="color:blue;">**`PUT`**</mark> `/v1/order/cancel`

This API will cancel the order. The order that has already been redeemed cannot be canceled.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <idToken>` |

**Body**

| Name   | Type   | Description       | Required |
| ------ | ------ | ----------------- | -------- |
| `id`   | string | ID of the order   | Yes      |
| `code` | string | code of the order | Yes      |

**Response**

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

```json
{
    "statusCode": 200,
    "statusMessage": "Order successfully canceled"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "statusCode": 400,
    "statusMessage": "Order ID and Code are required"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "statusCode": 400,
    "statusMessage": "Order ID and Code are required"
}
```

{% endtab %}
{% endtabs %}
