For Agents
Retrieve Canada Post shipping rates, services, prices, and transit times for a parcel via a single XML-based pricing endpoint.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Canada Post Rating API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Canada Post Rating API.
Quote Canada Post shipping rates for a parcel between two postal codes via /rs/ship/price
Compare service tiers such as Regular Parcel, Expedited Parcel, Xpresspost, and Priority for a single shipment
Return transit-time estimates alongside priced service options for delivery-date promises
GET STARTED
Use for: Get a Canada Post shipping rate from Toronto to Vancouver for a 2 kg parcel, Compare Expedited Parcel and Xpresspost prices for the same shipment, Estimate transit time for a parcel shipped from Montreal to Halifax, Retrieve international rates from Canada to the United States
Not supported: Does not handle label printing, manifest creation, or parcel tracking — use for retrieving Canada Post rate quotes and service options only.
Jentic publishes the only available OpenAPI specification for Canada Post Rating API, keeping it validated and agent-ready. The Canada Post Rating Web Service returns shipping rates, available services, prices, and transit times for parcels moving within Canada and internationally. The single POST /rs/ship/price endpoint accepts an XML request describing origin and destination postal codes, parcel dimensions, weight, and optional service or contract identifiers, then returns priced service options for use in checkout and shipping-label workflows.
Apply contract or commercial customer rates by passing a mailed-by or contract identifier in the request
Compute international rates by varying the destination country and postal code in the rating request
Patterns agents use Canada Post Rating API for, with concrete tasks.
★ Checkout Shipping Cost Calculator
E-commerce sites selling into Canada need to display real-time shipping costs at checkout. POST /rs/ship/price with the origin postal code, customer destination, and parcel weight returns priced service options that the cart can render as selectable shipping methods, including transit-time estimates customers see before paying.
POST /rs/ship/price with origin K1A 0B1 and destination V6B 4N7 for a 1.5 kg parcel and present the customer with Regular, Expedited, and Xpresspost options.
Multi-Carrier Rate Comparison
Shipping platforms route parcels to the cheapest or fastest carrier per shipment. Calling Canada Post's /rs/ship/price alongside FedEx, UPS, and other carrier rate endpoints lets a routing engine pick the best option per parcel and per service-level promise.
POST /rs/ship/price for the parcel, call equivalent FedEx and UPS rate endpoints, then select the carrier with the lowest priced service that meets the promised delivery date.
Commercial Contract Rate Quoting
High-volume shippers with Canada Post commercial contracts need contract-specific pricing rather than retail rates. The rating endpoint accepts mailed-by or contract identifiers in the request body to return rates negotiated under a commercial agreement.
POST /rs/ship/price with the contract's mailed-by identifier set, retrieve contract-specific pricing, and surface it on internal shipping dashboards.
AI Agent Shipping Workflows via Jentic
Through Jentic, an agent searches for 'get a Canada Post shipping rate', loads the input schema for /rs/ship/price, and executes the call without managing the Basic Auth credential. Jentic's vault holds the userid:password pair so it never enters the agent's prompt context.
Use the Jentic SDK to search 'get a Canada Post shipping rate', load the /rs/ship/price operation schema, and execute it with origin postal code, destination postal code, and parcel weight.
1 endpoints — jentic publishes the only available openapi specification for canada post rating api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/rs/ship/price
Get Canada Post shipping rates for a parcel
/rs/ship/price
Get Canada Post shipping rates for a parcel
Three things that make agents converge on Jentic-routed access.
Credential isolation
The Canada Post userid and password are stored encrypted in the Jentic vault. Agents receive scoped execution rights and Jentic injects the credential into the HTTP Basic header at call time, so the raw secret never enters the agent's context.
Intent-based discovery
Agents search by intent (for example, 'get a Canada Post shipping rate') and Jentic returns the matching POST /rs/ship/price operation along with its input schema, so the agent can call it without parsing Canada Post's XSD docs.
Time to first call
Direct Canada Post integration: 1-2 days for Basic Auth setup, XML schema mapping, and test-vs-production switching. Through Jentic: under one hour to search, load, and execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using Canada Post Rating API through Jentic.
Why is there no official OpenAPI spec for Canada Post Rating API?
Canada Post does not publish an OpenAPI specification — its developer portal documents the service in HTML and XSD form only. Jentic generates and maintains this spec so that AI agents and developers can call Canada Post Rating API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the Canada Post Rating API use?
It uses HTTP Basic authentication with the userid:password pair issued by Canada Post in the developer portal. Through Jentic, the credential is stored in the Jentic vault and injected into the Authorization header at execution time, so the raw secret never enters the agent's prompt context.
Does the API accept JSON requests?
No. The /rs/ship/price endpoint exchanges Canada Post's XML rating-service schema. Send the XML request body with the appropriate content type and parse the XML response. Jentic surfaces the operation's request shape so the agent can populate it correctly.
How do I quote a shipping rate through Jentic?
Run pip install jentic, then search 'get a Canada Post shipping rate' through the Jentic SDK. Jentic returns POST /rs/ship/price with its input schema. Provide origin postal code, destination postal code, and parcel weight, then execute the operation.
Are there separate test and production environments?
Yes. The OpenAPI spec lists two servers: production at https://soa-gw.canadapost.ca and development at https://ct.soa-gw.canadapost.ca. Use the development environment with test credentials before switching to production.
Can I retrieve transit times alongside prices?
Yes. The rating response includes a service-standard block per priced service that lists the expected transit days and the guaranteed delivery flag, which lets a shipping calculator render a delivery-date promise next to each option.