Set up PUDO data via SFTP

The Pick Up and Drop Off (PUDO) service facilitates customers to collect or drop off their shipments at designated locations instead of waiting for home delivery. These locations can include retail stores, parcel lockers, or shipping facilities, offering greater convenience and flexibility for customers. PUDO services are particularly beneficial for those who may not always be available for direct delivery, helping to reduce missed delivery attempts and enhance overall customer satisfaction.

The PUDO SFTP (Secure File Transfer Protocol) integration involves establishing a secure connection that enables data exchange between SAPIENT and Royal Mail PUDO service. This integration facilitates the exchange of crucial information, such as drop-off locations, opening and closing times, and shipment tracking details in a secure manner.

🚧

Important

If you want to set up the PUDO integration, make sure to meet the following prerequisites:

  • Enable PUDO integration via the Royal Mail Integration Activation screen.
  • Create a location for us to connect, and then raise a request to our onboarding team for PUDO data via SFTP by providing your RSA Public Key. Based on the details provided, our team will respond back with your connection details.

The PUDO SFTP solution provides you with all locations in a single file that you can store as a library. The file is generated on a daily basis— the structure and its contents are explained in the following sections.

File Naming

All tracking data files will use the following naming conventions.

The elements in the filename are defined as follows:

ElementDetails
RMRoyal Mail
LCLocal Collect
YYYYear date of file creation
MMMonth date of file creation
DDDay date of file creation

For example, a file generated on 09th September 2019 at 5.32pm would be "RMLC20190909.CSV".


File Structure Overview

Each file consists of a full list of available locations each day. Everyday, these files replace the previous days files.


File Format

The file is saved in the CSV format with comma delimiters.
The following table describes the records and fields that are present in the data file for each PUDO location.


Header Record

#NameTypeMax LengthComments
1Record TypeC1This will always be H
2DateD8Represents the date when the file was created in the formatddmmyyyy.
3PO RecordsD6Represents the number of Post Office records contained in the file.
4CSP RecordsD6Represents the number of CSP Records contained in the file.

Detailed Record

#NameTypeMax LengthComments
1Record TypeC1This will always be D
2Office TypeC3Represents the values of either CSP (for RM Customer Service Points) or POL(for Post Offices).
3Office number/refenceD7Represents the unique identifier for the office.
4Office NameC50Represents the name of the office.
5Address Line 1C50Represents the first line of address.
6Address Line 2 (if relevant)C50Represents the second line of address, if applicable.
7Address Line 3 (if relevant)C50Represents the third line of address, if applicable.
8Address Line 4 (if relevant)C50Represents the fourth line of address, if applicable.
9Address Line 5 (if relevant)C50Represents the fifth line of address, if applicable.
10TownC50Represents the name of the town.
11PostcodeC10Represents the postcode of the location.
12Longitude (if available)C10Represents the longitude value for the office location, if applicable.
13Latitude (if available)C10Represents the latitude value for the office location, if applicable.
14Monday Open 1D5Represents the first opening time on Monday in the hh:mm (24hr clock) format.
15Monday Open 2D5Represents the second opening time on Monday in the hh:mm (24hr clock) format.

Note: This record is left blank if the office has only one opening time.
16Monday Open 3D5Represents the third opening time on Monday in the hh:mm (24hr clock) format.

Note: This record is left blank if the office only has one or two opening times.
17Monday Close 1D5Represents the first closing time on Monday in the hh:mm (24hr clock) format.
18Monday Close 2D5Represents the second closing time on Monday in the hh:mm (i24hr clock) format.

Note: This record is left blank if the office has only one closing time.
19Monday Close 3D5Represents the third closing time on Monday in the hh:mm (24hr clock) format.

Note: This record is left blank if the office has only one or two closing times.
20Tuesday Open 1D5First opening time on Tuesday in format hh:mm (in 24hr clock format)
21Tuesday Open 2D5Second opening time on Tuesday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
22Tuesday Open 3D5Third opening time on Tuesday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
23Tuesday Close 1D5First Closing time on Tuesday in format hh:mm (in 24hr clock format)
24Tuesday Close 2D5Second Closing time on Tuesday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
25Tuesday Close 3D5Third Closing time on Tuesday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)
26Wednesday Open 1D5First opening time on Wednesday in format hh:mm (in 24hr clock format)
27Wednesday Open 2D5Second opening time on Wednesday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
28Wednesday Open 3D5Third opening time on Wednesday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
29Wednesday Close 1D5First Closing time on Wednesday in format hh:mm (in 24hr clock format)
30Wednesday Close 2D5Second Closing time on Wednesday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
31Wednesday Close 3D5Third Closing time on Wednesday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)
32Thursday Open 1D5First opening time on Thursday in format hh:mm (in 24hr clock format)
33Thursday Open 2D5Second opening time on Thursday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
34Thursday Open 3D5Third opening time on Thursday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
35Thursday Close 1D5First Closing time on Thursday in format hh:mm (in 24hr clock format)
36Thursday Close 2D5Second Closing time on Thursday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
37Thursday Close 3D5Third Closing time on Thursday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)
38Friday Open 1D5First opening time on Friday in format hh:mm (in 24hr clock format)
39Friday Open 2D5Second opening time on Friday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
40Friday Open 3D5Third opening time on Friday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
41Friday Close 1D5First Closing time on Friday in format hh:mm (in 24hr clock format)
42Friday Close 2D5Second Closing time on Friday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
43Friday Close 3D5Third Closing time on Friday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)
44Saturday Open 1D5First opening time on Saturday in format hh:mm (in 24hr clock format)
45Saturday Open 2D5Second opening time on Saturday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
46Saturday Open 3D5Third opening time on Saturday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
47Saturday Close 1D5First Closing time on Saturday in format hh:mm (in 24hr clock format)
48Saturday Close 2D5Second Closing time on Saturday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
49Saturday Close 3D5Third Closing time on Saturday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)
50Sunday Open 1D5First opening time on Sunday in format hh:mm (in 24hr clock format)
51Sunday Open 2D5Second opening time on Sunday in format hh:mm (in 24hr clock format) (will be blank if office only has one opening time)
52Sunday Open 3D5Third opening time on Sunday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two opening times)
53Sunday Close 1D5First Closing time on Sunday in format hh:mm (in 24hr clock format)
54Sunday Close 2D5Second Closing time on Sunday in format hh:mm (in 24hr clock format) (will be blank if office only has one Closing time)
55Sunday Close 3D5Third Closing time on Sunday in format hh:mm (in 24hr clock format) (will be blank if office only has one or two Closing times)

🚧

Important

Each office can have up to a maximum of 3 opening windows in a day. Therefore, the open/close profiles for any day may vary as shown in the following tables.

NameOpening/closing times
Open 107:30
Open 213:00
Open 318:00
Close 112:00
Close 217:00
Close 320:00

NameOpening/closing times
Open 107:30
Open 213:00
Open 3
Close 112:00
Close 217:00
Close 3

NameOpening/closing times
Open 107:30
Open 2
Open 3
Close 118:00
Close 2
Close 3

📘

Note

For more information on how to use this API endpoint, refer to the PUDO Locations API reference.