v1
latestOpenAPI 3.0.12026-07-242073551.1 MBShipments
Pre Allocate Tracking Number
Receive a Royal Mail Tracking Number that will be pre-allocated to the service and destination supplied in the request. No shipment or label will be produced using this endpoint. <br /> <br />This service can be used in conjunction with the Create Shipment endpoint by specifying the TrackingNumber in the CarrierSpecifics or OfflineBarcodes section with the pre-allocated TrackingNumber returned in this service response. <br /> <br />Note: This endpoint can only be used for services that are assigned a tracking number.
post/v4/shipments/preallocateTrackingNumber/rm
Request body
Example request
{
"ShippingLocationId": "1234567890",
"ShippingAccountId": "Manchester Hub",
"ServiceCode": "CRL1",
"ServiceLevel": "01",
"Destination": {
"CountryCode": "GB",
"Postcode": "TW20 0HJ"
}
}Response
Returns the pre allocated tracking number successfully.
Example response
{
"TrackingNumber": "TT123456785GB"
}