Code Samples – SOAP
Get code samples for Canada Post web services APIs. Download all the code samples in your language of choice, or just the ones for select web services.
Read Getting Started to find out how to sign up, get your API keys and more.
For essential information common to all our web services, read the Fundamentals of Canada Post Web Services: REST | SOAP
Java code samples
Service | Description |
---|---|
Download the code samples for all web services. |
|
Find out what shipping services are available and how much they cost. |
|
Create shipments (for Canada Post commercial customers). |
|
Create shipments (for Canada Post general business and VentureOne™ customers). |
|
Track a parcel and confirm its delivery. |
|
Get a list of Post Offices near a given location. |
|
Request parcel pickups. |
|
Create shipping labels for authorized and open returns. |
|
For e-commerce platforms registering merchants for Canada Post shipping. |
|
Discover and display information about scheduled web service outages. |
PHP code samples
Service | Description |
---|---|
Download the code samples for all web services. |
|
Find out what shipping services are available and how much they cost. |
|
Create shipments (for Canada Post commercial customers). |
|
Create shipments (for Canada Post general business and VentureOne™ customers). |
|
Track a parcel and confirm its delivery. |
|
Get a list of Post Offices near a given location. |
|
Request parcel pickups. |
|
Create shipping labels for authorized and open returns. |
|
For e-commerce platforms registering merchants for Canada Post shipping. |
|
Discover and display information about scheduled web service outages. |
C# code samples
Service | Description |
---|---|
Download the code samples for all web services. |
|
Find out what shipping services are available and how much they cost. |
|
Create shipments (for Canada Post commercial customers). |
|
Create shipments (for Canada Post general business and VentureOne™ customers). |
|
Track a parcel and confirm its delivery. |
|
Get a list of Post Offices near a given location. |
|
Request parcel pickups. |
|
Create shipping labels for authorized and open returns. |
|
For e-commerce platforms registering merchants for Canada Post shipping. |
|
Discover and display information about scheduled web service outages. |