Pickup
Get Pickup Price – SOAP
Summary
Name: | Get Pickup Price |
---|---|
Reason to Call: | To find out the price charged to a customer for an on-demand pickup. (Ranges from “free” for contract customers to a range of charges, depending on the number and type of parcels picked up). Note: This service confirms a price that would be charged on a certain date. Don’t use it to confirm that pickup service is available on that date. |
Input: |
|
Output: | Price info |
Typical Prior Call: | Get Pickup Availability |
Typical Next Call: | Create Pickup Request |
Version history: | Release notes |
Call Details
WSDL: | pickup.wsdl |
---|---|
Endpoint (Development): | https://ct.soa-gw.canadapost.ca/enab/soap/pickuprequest |
Endpoint (Production): | https://soa-gw.canadapost.ca/enab/soap/pickuprequest |
Namespace: | http://www.canadapost.ca/ws/soap/pickuprequest |
Operation: | GetPickupPrice |
SOAP Body
This section describes the XML input elements to Create Pickup Request. For the hierarchical structure, see the XML diagram.
Get Pickup Price – Request Elements | |||
---|---|---|---|
Element Name | Type | Required/Optional | Description/Size/Format |
get-pickup-price-request |
Complex |
Required |
The top level XML element for the request input information. |
customer-number |
Simple |
Required |
(1-10 digit numeric) |
locale |
Simple |
Optional |
Your language preference for receiving error messages. |
platform-id |
Simple |
Optional |
Customer number of the platform. For e-commerce platforms only. |
pickup-details |
Complex |
Required |
This is the top level XML element for the request input information. |
contract-id |
Simple |
Optional |
Your Parcels agreement number, if you have one. |
pickup-location |
Complex |
Required |
Structure containing the address where the pickup is to occur. |
date |
Simple |
Optional |
Pickup date. Date format (yyyy-mm-dd). |
priority-flag |
Simple |
Optional |
{true}, {false} |
alternate-address-postal-code |
Simple |
Optional |
The postal code of the address where the pickup is to be done. |
Request – XML Diagram
Response Details
Response – Elements
The table below describes the XML fields in the response. For the hierarchy of the response, see the XML diagram.
Get Pickup Price – Response Elements | ||
---|---|---|
Element Name | Type | Description |
get-pickup-price-response |
Complex |
The top level XML element for the response. |
pre-tax-amount |
Simple |
Base charges for the pickup. |
gst-amount |
Simple |
Goods and services tax amount. |
pst-amount |
Simple |
Provincial sales tax amount. |
hst-amount |
Simple |
Harmonized sales tax amount. |
due-amount |
Simple |
Total charges. |
Response – XML Diagram
Response – Possible Error Responses
Code | Description |
---|---|
11003 |
The date is in the past or invalid. |
11005 |
Customer not valid or blocked. |
See also Error messages and mitigation strategies.
Examples
Sample SOAP XML Request – Get Pickup Price
<get-pickup-price-request>
<customer-number>1234567</customer-number>
<locale>EN</locale>
<pickup-details>
<date>2016-07-18</date>
<contract-id>12345678</contract-id>
<pww-flag>false</pww-flag>
<priority-flag>false</priority-flag>
</pickup-details>
</get-pickup-request-details-request>
Sample SOAP XML Response – Get Pickup Price
<get-pickup-price-response>
<pickup-request-price>
<pre-tax-amount>3.50</pre-tax-amount>
<gst-amount>0.18</gst-amount>
<pst-amount>0.35</pst-amount>
<due-amount>4.03</due-amount>
</pickup-request-price>
</get-pickup-price-response>
Development (Sandbox) Environment XML Response – Get Pickup Price
The response is stubbed (static) in the Development environment; you will always receive a response of $3.50 plus 15% GST (as in samples above). In real-life taxes will reflect those in your province, or those in alternate-address-province if provided.