> ## Documentation Index
> Fetch the complete documentation index at: https://docs-nce.global-e.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancelling Declared Parcels

> The Void Parcel API lets you take out a declared parcel if you do not intend to send it or if it needs to be updated due to changed shipment requirements.

> [!NOTE]
>
> At least one order ID should be provided in the request — the Global-e `OrderId` or the merchant's `MerchantOrderId`.

The endpoint is `POST /Parcel/VoidParcel`. Parameters: `OrderId` (mandatory) — order unique identifier; `ParcelCode` (mandatory) — code used to identify the ParcelCode to void; `MerchantOrderId` — the merchant's order unique identifier.

> [card] [Void Parcel — full request & response](https://docs-nce.global-e.com/api-reference/void-parcel.md)
>
> Parameters, schema, examples, and the interactive playground for `POST /Parcel/VoidParcel`.

## Error Handling

| Error Code | Error Text | Additional Information |
| - | - | - |
| C100 | The parcel cannot be voided due to the status of the parcel. For a Global-e operated hub, only the following statuses can be voided: Failed Transfer To Shipping; Shipped By Merchant | This is the error in case the hub is operated by Global-e and the parcel has the wrong status. |
| C101 | The parcel cannot be voided due to the status of the parcel. For merchant-operated hubs, only the following statuses can be voided: Failed Transfer To Shipping; Shipped By Merchant; Received In Hub | This is the error in case the hub is operated by the Merchant and the parcel has the wrong status. |
| C102 (Log) | The parcel was voided, but the shipper's API to cancel the shipment failed. The following information is available from the shipper. Error code: `<shipper error code>`; Error text: `<error text>` | The API succeeds (IsSuccess=True). Add it to the log and to the relevant field in the response |
| C103 | Internal unknown failure | - |
| C104 | The parcel code was not found, or the parcel was already voided | - |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.