{"uid":"cap_ybzZUlq2bFlkoWbRIP32I","slug":"canadian-sales-tax-calculator-8897617b","name":"Canadian Sales Tax Calculator","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.dev/tax?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["province","amount"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date the rates apply to, YYYY-MM-DD; defaults to today (UTC)"},"amount":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Pre-tax amount in CAD"},"province":{"enum":["AB","BC","MB","NB","NL","NS","NT","NU","ON","PE","QC","SK","YT"],"type":"string","description":"Two-letter Canadian province or territory code"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"date":"2026-10-21","taxes":[{"name":"GST","amount":1,"ratePercent":5},{"name":"QST","amount":1.99,"ratePercent":9.975}],"total":22.98,"province":"QC","subtotal":19.99,"totalTax":2.99,"totalRatePercent":14.975}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1QGKTYh0ung3wMNeSh2Mi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a province-specific Canadian sales tax breakdown (GST, HST, PST, RST, or QST) for a given CAD amount and date, with each component's rate and rounded cent amount plus the total.","exampleAgentPrompt":"What's the full sales tax breakdown on a $349.99 purchase in Nova Scotia today — show me each component (GST, HST, etc.) with its rate and dollar amount?","exampleUseCases":[{"title":"Invoice generation for Canadian client","prompt":"I'm issuing an invoice for $2,450 CAD to a client in Ontario — can you calculate the exact HST amount and total owing so I can fill in the invoice?"},{"title":"Historical tax rate lookup for Quebec","prompt":"What were the QST and GST rates in Quebec on March 1, 2024, and how much tax would have applied to a $780 purchase?"},{"title":"E-commerce checkout tax display","prompt":"A customer in British Columbia is checking out with a cart worth $134.50 CAD — what's the GST and PST breakdown so I can show them the tax line items before they pay?"}],"resultDescription":"A structured response containing each applicable Canadian tax component for the given province and amount: component name (e.g. GST, HST, PST, QST, RST), its percentage rate, and the tax amount rounded to the nearest cent, plus the sum total of all tax and the final total (pre-tax + tax). Rates are resolved for the specified date, correctly reflecting historical changes such as Nova Scotia's 2025 HST reduction.","failureModes":["Invalid province code returns an error — must be one of the 13 recognized two-letter codes","Malformed amount (non-numeric or negative) causes a validation error","Invalid date format (not YYYY-MM-DD) is rejected","No rate data for a future date beyond known schedule may return an error or fall back to current rates","Network timeout from the Cloudflare Worker edge function under high load"],"whenToPreferThis":"Use this endpoint when you need accurate, per-province Canadian sales tax breakdowns with correct component separation (GST vs HST vs PST/QST/RST) and historical rate accuracy. It is purpose-built for Canadian tax compliance, supports all 13 provinces and territories, handles rate changes by date, and returns cent-rounded amounts ready for invoices or checkout flows. Prefer it over generic tax APIs that may not track Canadian provincial changes or distinguish between tax components.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:39:48.171Z","isFirstParty":false,"canonicalSlug":"canadian-sales-tax-calculator-8897617b"}