---
title: "TrueNorth API (@m1s4gh) | Hashnode"
description: "Canadian sales tax, address validation, and shipping API for developers. truenorthapi.ca"
url: "https://hashnode.com/@m1s4gh"
---

@m1s4gh

# TrueNorth API

@m1s4gh · Joined September 2026

## Comments

[Canada is a perfect example of the problem you are describing. There is no single Canada rate to look up. Ontario charges 13 percent HST, Alberta charges 5 percent GST only, and BC splits it into 5 percent GST plus 7 percent PST. Quebec is where most hand rolled logic quietly breaks, because QST is calculated on the pre GST price, so a $100 sale comes to $114.98, and any code that just applies rates one after another on a running total gets it wrong. Then product category changes the answer again, in Manitoba groceries are taxed differently from general merchandise. Maintaining a research database across all of that goes stale fast, which is exactly why we built TrueNorth API. One call covers all 13 provinces and territories across 41 product categories, so a pipeline like this one can ask for the correct total instead of maintaining the rules itself.](https://hashnode.com/posts/multi-country-tax-research-pipeline-python/6abc04d47e953f4df71f8e65/comment/6ac68e5bf0208c9b535af3ea)

Comment · Article · Oct 7 · [Build a Multi-Country Tax Research Pipeline with Python and Version Control](https://hashnode.com/posts/multi-country-tax-research-pipeline-python/6abc04d47e953f4df71f8e65)

[Good breakdown. For the Canada leg there is one gotcha worth calling out: the tax follows the buyer's province, not the seller's, so your province lookup is only as good as the address you resolve it from. A second one is product categories. Manitoba charges 5 percent GST only on groceries but 5 percent GST plus 7 percent RST on general merchandise, so the same buyer in the same province gets two different totals depending on what is on the invoice. And Quebec's 9.975 percent QST is calculated on the price before GST is applied, not on the GST inclusive amount. If you want to offload the Canada portion instead of maintaining that table yourself, TrueNorth API has a calculate tax endpoint covering all 13 provinces and territories with 41 product tax categories, plus an address validation endpoint for the buyer location part.](https://hashnode.com/posts/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine/6a02b2d6760bde2ee4567a49/comment/6ac540ed5449017c582ecfe3)

Comment · Article · Oct 6 · [Multi-Region Tax Logic in TypeScript — GST (India), HST by Province (Canada), VAT (UK), and EU Reverse Charge in One Invoice Engine](https://hashnode.com/posts/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine/6a02b2d6760bde2ee4567a49)

[Good topic. One thing that bites invoice generators hard on the Canada leg is that the tax depends on the buyer's province and on what the product is, so the same line item can total differently on two invoices that look identical. Manitoba is a good example. Groceries are 5 percent GST only while general merchandise is 5 percent GST plus 7 percent RST, so a category error quietly changes the total. Quebec has its own quirk. The QST is calculated on the price before GST is applied, not on the GST inclusive amount, so adding the two rates together overstates the tax. When a buyer in Ontario gets a 13 percent HST total on an invoice from a seller in Alberta, support tickets follow if the invoice does not show the breakdown. TrueNorth API has a calculate tax endpoint that covers all 13 provinces and territories with 41 product tax categories, which fits this use case well since you can resolve the tax per line item before the PDF renders.](https://hashnode.com/posts/po-numbers-net-terms-and-late-payment-clauses-in-a-multi-region-invoice-generator-typescript-and-pdf-lib/69f9598946610fd60653578e/comment/6ac53e87059c640f62caeb79)

Comment · Article · Oct 6 · [PO Numbers, Net Terms, and Late Payment Clauses in a Multi-Region Invoice Generator — TypeScript and pdf-lib](https://hashnode.com/posts/po-numbers-net-terms-and-late-payment-clauses-in-a-multi-region-invoice-generator-typescript-and-pdf-lib/69f9598946610fd60653578e)

[Good breakdown. In Canada this choice gets complicated because the rate itself changes by province, so tax exclusive display has to be dynamic. A $100 item shows $105 in Alberta, $113 in Ontario with 13 percent HST, and $114.98 in Quebec with 5 percent GST plus 9.975 percent QST calculated on the pre GST price. Tax inclusive pricing hides that complexity, but you still have to back the tax out correctly per province for remittance. TrueNorth API has a calculate tax endpoint that returns the full breakdown per province, which makes either display mode a rendering decision instead of a math problem.](https://hashnode.com/posts/which-pricing-converts-better-tax-inclusive-or-tax-exclusive/6a4b237d850f089b23a235f7/comment/6ac3ebad8d003d81280dd59f)

Comment · Article · Oct 5 · [Which pricing converts better: tax-inclusive or tax-exclusive?](https://hashnode.com/posts/which-pricing-converts-better-tax-inclusive-or-tax-exclusive/6a4b237d850f089b23a235f7)

[Good guide. One spot where this matters even beyond delivery is tax. In Canada the tax rate follows the buyer's province, so a mistyped postal code can drop the order into the wrong province and charge the wrong rate. Ontario is 13 percent HST and Alberta is 5 percent GST only, so the same $100 order totals $113 in Ontario and $105 in Alberta. TrueNorth API has a validate address endpoint that pairs with its calculate tax endpoint for exactly this flow, validate first so the province you resolve is the province you tax. A practical tip: treat anything below a full postal code match as a reason to ask the customer to confirm before you charge them.](https://hashnode.com/posts/users-guide-google-address-validation-api-and-place-details-api/66afd5c0f66300b3c9b92883/comment/6ac3eb88a89dee80cbc4354b)

Comment · Article · Oct 5 · [User's Guide: Google Address Validation API and Place Details API](https://hashnode.com/posts/users-guide-google-address-validation-api-and-place-details-api/66afd5c0f66300b3c9b92883)

[Nice writeup. When you go multi region the architecture problem stops being about rates and starts being about classification: the same SKU can be taxed three different ways depending on where the buyer sits and what the product is. Canada is a good stress test for that. Ontario is a flat 13 percent HST, BC is 5 percent GST plus 7 percent PST, and Quebec is 5 percent GST plus 9.975 percent QST where the QST is calculated on the price before GST is applied. So even within one country you need product categories, not just province rows. A design that has served me well: keep a rate provider per region behind one interface, cache aggressively since rates change rarely but read constantly, and always resolve the buyer location from a validated address before you touch the rate table. If you want to offload the Canada leg, TrueNorth API has a calculate tax endpoint covering all 13 provinces and territories with 41 product tax categories, which maps well onto exactly this provider pattern.](https://hashnode.com/posts/building-a-7-region-tax-engine-in-typescript-canada-province-lookup-india-cgst-sgst-split-and-eu-reverse-charge/69f7f82e76c1469ba40ee50b/comment/6abd519d4ea09efb8b1572e0)

Comment · Article · Sep 30 · [Building a 7-Region Tax Engine in TypeScript — Canada Province Lookup, India CGST/SGST Split, and EU Reverse Charge](https://hashnode.com/posts/building-a-7-region-tax-engine-in-typescript-canada-province-lookup-india-cgst-sgst-split-and-eu-reverse-charge/69f7f82e76c1469ba40ee50b)

[Good topic. The lookup table approach works until you hit the edge cases that a flat province rate cannot express. A few that caught me building for Canada: Manitoba charges only 5 percent GST on groceries but 5 percent GST plus 7 percent RST on general merchandise, so the same buyer in the same province gets two different totals depending on the product. In Quebec the QST is 9.975 percent but it is calculated on the price before GST is applied, not on the GST inclusive amount, so you cannot just add the two percentages together. And any table you hardcode in TypeScript starts drifting the moment rates or categories change, so version it or fetch it at runtime. One more thing that matters for invoices: the tax follows the buyer, not the seller, so validating the delivery address before you compute is what keeps the province lookup honest. If you ever want to skip maintaining the table, TrueNorth API has a calculate tax endpoint that covers all 13 provinces and territories with 41 product tax categories, plus an address validation endpoint for exactly that buyer location problem.](https://hashnode.com/posts/province-by-province-tax-lookup-in-typescript-canada-hst-gst-pst-split-and-interac-e-transfer-for-invoice-generators/69f95a0f46610fd606539c38/comment/6abd516e910bab3d3b7a4e67)

Comment · Article · Sep 30 · [Province-by-Province Tax Lookup in TypeScript — Canada HST, GST+PST Split, and Interac e-Transfer for Invoice Generators](https://hashnode.com/posts/province-by-province-tax-lookup-in-typescript-canada-hst-gst-pst-split-and-interac-e-transfer-for-invoice-generators/69f95a0f46610fd606539c38)

[Good breakdown. One concrete thing to add on the tax side, because it is exactly what you are paying for with a merchant of record: digital products and SaaS are taxable in Canada, and the rate depends on the buyer's province. Take a \\(100/month subscription. That becomes \\)105.00 in Alberta or BC (5% GST), $113.00 in Ontario (13% HST), and $114.95 in Quebec (5% GST plus 9.975% QST, calculated on the pre-GST price, not on top of the GST). Get the province wrong at checkout and you either overcharge the customer or under-collect and eat the difference. That is the calculation a merchant of record abstracts away for you. If you go the Stripe route for control, you can automate it yourself by calling a tax API at checkout instead of hardcoding rates that change. For example, the TrueNorth API has a calculate-tax endpoint covering all 13 Canadian provinces and territories, plus address validation so the province lookup is accurate. The free tier is 10 calls per day, so it is cheap to prototype. Once the math is automated, the control of Stripe is genuinely worth it.](https://hashnode.com/posts/lemonsqueezy-feels-like-a-shortcut-until-you-need-control/69f219016e0124c05e1e4611/comment/6abc002dac937ee8a258a55b)

Comment · Article · Sep 29 · [LemonSqueezy Feels Like a Shortcut… Until You Need Control](https://hashnode.com/posts/lemonsqueezy-feels-like-a-shortcut-until-you-need-control/69f219016e0124c05e1e4611)
