International Arrival Containers (A-Scan) flow

The International Arrival Containers (A-Scan) API is used for Royal Mail shipments being imported into the UK.

For shipments in an International Arrival Container, aData Solution file is generated and sent to Royal Mail. This allows Royal Mail to link the shipments to the ContainerId for tracking and visibility.

Do not use the standard Containers API for Royal Mail Import shipments. Use the International Arrival Containers (A-Scan) API instead.

You can create and allocate shipments to an International Arrival Container in two ways:

  • Option 1: Create the container first. Then create the shipments and allocate them to the existing container using the ContainerId.
  • Option 2: Create the shipments first. Then create the container and allocate the shipments to it.

Choose the option that best fits your integration. The diagrams below show the steps for each option.

Option 1: Create the container before creating the shipment

The diagram below shows the Option 1 flow.

In Option 1, create the International Arrival Container first and get the ContainerId. When you create a shipment, include the ContainerId to allocate the shipment to the container.
If the shipment is created successfully, the response returns the tracking details and Base64-encoded label data. You can then decode and print the labels and prepare the shipment for dispatch.
If required information is missing or incorrect, the shipment is not created and an error response is returned.

Option 2: Create the shipments before creating the container

The diagram below shows the Option 2 flow.

In Option 2, create the shipments first without a ContainerId. If the shipments are created successfully, the response returns the tracking details and Base64-encoded label data. You can then decode and print the labels.
Next, create the International Arrival Container and get the ContainerId. Use the Add/Remove Shipments request to allocate the shipments to the container.
You can allocate up to 10,000 shipments to one container.
If required information is missing or incorrect, the shipment is not created and an error response is returned.

Manifest container

Before manifesting the container, make sure all shipments have been allocated to it. If shipments are still missing, continue allocating them before you manifest the container.

When the container is ready, manifest it using the container details and ContainerId. The container and shipment details are then sent to Royal Mail, and the container label is returned.

The container can then be sent to the UK. When it arrives, the shipments enter the Royal Mail network for final delivery. Tracking events are generated as the shipments move through the Royal Mail network.

Container barcode label example



Related guides


Did this page help you?