Use pre-allocated tracking number
A pre-allocated tracking number is a unique identifier assigned in advance to a shipment or order before it is physically despatched. This tracking number is generated automatically by the logistics system when an order is placed or processed, allowing for seamless tracking of the shipment throughout its journey.
If you need to communicate the Royal Mail tracking number to your customers before you have all the shipment details, you can request a pre-allocated tracking number by providing the following details:
| Detail | Description |
|---|---|
| Destination country | The country where the shipment will be delivered. |
| Postcode | Required depending on the destination country. |
| Service code | The Royal Mail service code for the shipment. |
| Shipping account | The account you will use to create the shipment. |
| Shipping location | Required if you have more than one shipping location linked to the shipping account. |
Create the shipment
After you have all the shipment information, call the Royal Mail Create Shipment endpoint using the pre-allocated tracking number.
ImportantThe Create Shipment request using a pre-allocated tracking number can only have one package, and all the information sent when requesting the pre-allocated tracking number must match the information sent in the Create Shipment request.

Workflow for creating shipments with pre-allocated tracking number
API Recipe
Follow a step-by-step guide API recipe on how to use the pre-allocated tracking number
See also
Updated 12 days ago
