> For the complete documentation index, see [llms.txt](https://eshop.gitbook.io/eshopbox-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eshop.gitbook.io/eshopbox-developers/order/shipper-integration-wrapper-api/cancel-tracking.md).

# Cancel Tracking

## Cancel Tracking

<mark style="color:green;">`POST`</mark> /api/v1/shipping/cancel

Cancel the Tracking ID

**Headers**

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

**Body**

| Name         | Type   | Description                 |
| ------------ | ------ | --------------------------- |
| `trackingId` | string | Tracking Id to be cancelled |

**Response**

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

```json
{
  "status": "SUCCESS",
  "trackingId": "1231244",
  "message": "Requested Tracking id has been cancelled"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "badRequest",
                "message": "Cancellation not allowed"
            }
        ],
        "code": 400,
        "message": "Cancellation not allowed"
    }
}
```

{% endtab %}
{% endtabs %}

```json
curl --location -g 'https://wms.eshopbox.com/api/v1/shipping/cancel' \
--header 'Authorization: Bearer <Token>' \
--data '{
    "trackingId": "1231244"
}'
```
