Skip to main content

Cancel Parcel

Cancel an outbound parcel before it has been delivered to the recipient.

Endpoint

POST /v2/parcels/cancel/{id}

Path Parameters

ParameterTypeRequiredDescription
idlongYesUnique identifier of the outbound parcel to cancel

:::caution Outbound Parcels Only Cancellation is only available for outbound parcels that have not yet been delivered. Attempting to cancel an already-delivered parcel or an inbound parcel will return an error. :::

Response

Returns a success boolean indicating whether the parcel was successfully cancelled.

{
"success": true,
"data": true
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/parcels/cancel/$ID" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also

  • Upload Parcel — send a replacement parcel after cancellation
  • Outbox List — verify parcel status before attempting cancellation
  • Get Parcel — check current delivery status