-
Give shoppers the option of picking up their parcels at the post office
In the checkout phase where you present shipping and delivery preferences, offer shoppers the option of having their parcels delivered to a post office of their choice. Ask shoppers to enter a postal code or address to find a pickup location near them.
-
Use web services to get valid post offices
Perform a web service call to Get Nearest Post Office. In your request to the web service, include the postal code the shopper entered and set the d2po flag to true. This flag ensures only locations that accept Deliver to Post Office parcels will be returned in the response. These locations may change and the list is updated daily.
Example request to Get Nearest Post Office: GET https://ct.soa-gw.canadapost.ca/rs/postoffice?d2po=true&postalCode=K1Y1T8
By default, the web service will return the 10 closest post offices to the postal code you provide, along with address details for each location.
-
Display a map and list of pickup locations
Use the information provided in the response from Get Nearest Post Office to present shoppers with a map and list of the post offices near the location they specified. Ask them to select a pickup location.
-
Save post office ID and shopper contact information
Each post office has a unique identifier referred to as an “office-id” in the response from Get Nearest Post Office. Save the office-id of the post office the shopper selects (there’s no need to provide us with the post office address) as well as the shopper’s name, address, email address and phone number.
Please note that the name and address provided must match what appears on the identification your shoppers will use when they pick up their parcel.
This is a critical step
After you’ve saved the post office ID and the shopper contact information, your ecommerce site will need to pass it to your shipping system to create the correct Deliver to Post Office shipping label. If not, parcels will not be delivered successfully. How you do this will depend on your shipping system: EST 2.0, web services or a third-party/custom system.