Canada API usage
Inputs
Section titled “Inputs”- Province route:
GET /v1/tax/{prov}withprov∈ ab, bc, mb, nb, nl, ns, nt, nu, on, pe, qc, sk, yt. zip=accepts a Canadian postal code —A1A 1A1,A1A-1A1, orA1A1A1. The postal FSA deterministically identifies the province; if it contradicts the route province, the postal code wins and the response discloses the override.address=free text: a postal code anywhere in the string is the strongest signal; otherwise a province name or two-letter code is used.lat/lngis not available for Canada in v1.1 — use a postal code.
Response
Section titled “Response”Same envelope as US states plus:
- top-level
country: "CA"(US responses carrycountry: "US"); rate_detailwithfederal_gst,provincial,provincial_label(HST/PST/RST/QST);- the uniform
componentsobject gains aqstbucket — populated for Québec,nulleverywhere else including all US states.
{ "state": "qc", "country": "CA", "rows": [{ "combined_total_rate": 0.14975, "rate_detail": {"federal_gst": 0.05, "provincial": 0.09975, "provincial_label": "QST"}, "components": {"state": 0.05, "qst": 0.09975, "combined": 0.14975, "components_complete": true} }]}