How to get Canada Post rates in Magento 2 ?
Live shipping rates drastically improves conversion rate on any store. This has been proven and discussed already in past articles and various universities research on the subject. If you’re not using live rates, your competitor is probably ahead of you already, for reference: Shopify platform have a built-in Live Rates system available to store users.
Shipping Rates in Cart demo
Canada Post Rates
You can ship locally using Canada Post Live rates based on enabled package types in your Magento 2. The rates are displayed during Cart and Checkout, administrators can also benefit the rates when creating orders from the back-end. Using Canada post to ship to domestic local addresses has never been easier. Avoid rural overcharges or unsupported carrier types issues and unlock shipping internationally at the same type.
CANADA POST is the leading carrier with “the most parcels shipped nation-wide” as they claim. CANADA POST have a global reach with a network capable of shipping parcels internationally, at lower rates.
Package Types supported by Canada Post API
Canada Post package types that will automatically show up to your eCommerce customers selecting an international to domestic address. No additional configuration is required, based on destination the tool will automatically fetch the needed rates based on weight and other criteria and return available international options
|Domestic Package types shipped to Canadian postal codes|
|International Shipment Package types|
|Expedited Parcel USA|
|International Parcel Air|
|International Parcel Surface|
|Priority Worldwide Envelope Int’l|
|Priority Worldwide Envelope USA|
|Priority Worldwide pak Int’l|
|Priority Worldwide pak USA|
|Priority Worldwide parcel Int’l|
|Priority Worldwide parcel USA|
|Small Packet Air – USA|
|Small Packet International Air|
|Small Packet International Surface|
|Tracked Packet – International|
|Tracked Packet – USA|
|Tracked Packet – USA (LVM)|
How to have the package types on your store?
using Canada Post API web services from Canada Post developer program, you will be able to access the rates endpoint provided with an API Key. The Key as you understand ties to your Canada Post Business account. Using the API Key you can ping the endpoint from any web services: you can “post” in information and you “get” back responses. You can also do other actions irrelevant in this case scenario.
If you’re integrating an eCommerce shop such as Shopify, BigCommerce, Magento, the store can be programmed to POST out required information to Canada Post API endpoint based on various events. E.g. When a customer click the “Get Quote” button in cart.
Using API to retrieve live rates
To oversimplify some attributes are expected by the Canada Post rates endpoint such as:
- API Key
- Origin postal code
- Destination address
- Postal code
- Country code
Following this request, the endpoint responds with the Rates available, calculated based on the information received. And returned as a response. We can now make use of this response data, parse it through our module Controller and make use of the View to display the information to the customer in Cart.
Interested in the Live Rates API module showcased in the video for your Magento 2 store? Start free using MageShip