# Indirect Tax Calculations API > EU OSS threshold place-of-supply, Canada GST/HST/PST, Australia/NZ GST registration, UK VAT flat rate and invoice requirements, UK MTD for Income Tax deadlines, and US use-tax accrual from caller rates — pure computation on vendored official tables. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/indirect-tax - Docs: https://www.brainiac.software/api/indirect-tax/docs - OpenAPI: https://www.brainiac.software/api/indirect-tax/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/indirect-tax/eu-oss-threshold-check $0.03 USDC. Decide whether an EU-established supplier's B2C cross-border TBE services and distance sales stay taxed at home or switch to the customer's Member State under the EU-wide €10,000 threshold. Inputs: supplierCountry, establishedInOtherMemberStates, previousYearTotalEurCents, sales, optedForDestination? Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-eu-oss-threshold-check Example request: ```json { "supplierCountry": "DE", "establishedInOtherMemberStates": false, "previousYearTotalEurCents": 800000, "sales": [ { "date": "2026-03-01", "customerCountry": "FR", "kind": "tbe_service", "netEurCents": 950000 }, { "date": "2026-05-10", "customerCountry": "IT", "kind": "tbe_service", "netEurCents": 60000 } ], "optedForDestination": false } ``` Example response: ```json { "threshold": 1000000, "previousYearExceeded": false, "exceededOn": { "date": "2026-05-10", "saleIndex": 1, "runningTotal": 1010000 }, "perSale": [ { "index": 0, "placeOfSupply": "DE" }, { "index": 1, "placeOfSupply": "IT" } ], "ossRelevant": true, "sources": [ { "source": "European Commission One Stop Shop — €10,000 EU-wide threshold for TBE and intra-Community distance sales", "url": "https://vat-one-stop-shop.ec.europa.eu/one-stop-shop_en", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "Threshold applies to B2C TBE services and intra-Community distance sales of goods for EU-established suppliers. Domesti…", "…" ] } ``` ### POST /api/v1/indirect-tax/canada-gst-hst-pst $0.02 USDC. Look up GST/HST (and PST where the CRA table lists one) for a province and date, and compute tax on an amount in cents. Inputs: province, date, amountCents, supply? Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-canada-gst-hst-pst Example request: ```json { "province": "NS", "date": "2026-11-14", "amountCents": 100000, "supply": "taxable" } ``` Example response: ```json { "regime": "HST", "gstOrHstRate": 0.14, "pstRate": null, "gstOrHstCents": 14000, "pstCents": 0, "totalCents": 114000, "effectiveFrom": "2025-04-01", "sources": [ { "source": "CRA GST/HST calculator (and rates)", "url": "https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/gst-hst-businesses/charge-collect-which-rate/cal…", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "Place of supply is the caller's input; this endpoint does not decide it.", "…" ] } ``` ### POST /api/v1/indirect-tax/australia-nz-gst $0.02 USDC. Test AU/NZ GST registration thresholds from monthly turnover and optionally extract GST from an inclusive or exclusive price. Inputs: country, nonProfit?, monthlyTurnoverCents, projectedNextMonthsCents, taxiOrRideSourcing?, priceCents?, priceIncludesGst? Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-australia-nz-gst Example request: ```json { "country": "AU", "nonProfit": false, "monthlyTurnoverCents": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3117000 ], "projectedNextMonthsCents": [ 280000, 280000, 280000, 280000, 280000, 280000, 280000, 280000, 280000, 280000, 280000 ], "taxiOrRideSourcing": false, "priceCents": 11000, "priceIncludesGst": true } ``` Example response: ```json { "rate": 0.1, "threshold": 7500000, "currentTurnover": 3117000, "projectedTurnover": 6197000, "mustRegister": false, "reason": "below_threshold", "gstCents": 1000, "netCents": 10000, "sources": [ { "source": "ATO Registering for GST / How GST works", "url": "https://www.ato.gov.au/businesses-and-organisations/gst-excise-and-indirect-taxes/gst/registering-for-gst", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "AU current GST turnover = current month + previous 11 months; projected = current month + next 11 months. Register with…" ] } ``` ### POST /api/v1/indirect-tax/uk-vat-flat-rate $0.02 USDC. Return the HMRC Flat Rate Scheme percentage for a business type and date (including limited-cost and first-year discount) and compute VAT due on VAT-inclusive turnover. Inputs: businessType, date, vatInclusiveTurnoverPence, goodsCostPence, periodTurnoverForLcbPence, periodMonths, firstYearOfRegistration Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-uk-vat-flat-rate Example request: ```json { "businessType": "Computer and IT consultancy or data processing", "date": "2026-11-14", "vatInclusiveTurnoverPence": 120000, "goodsCostPence": 500, "periodTurnoverForLcbPence": 120000, "periodMonths": 3, "firstYearOfRegistration": false } ``` Example response: ```json { "rate": 0.165, "baseRate": 0.145, "limitedCostBusiness": true, "firstYearDiscountApplied": false, "vatDuePence": 19800, "sources": [ { "source": "GOV.UK VAT Flat Rate Scheme: how much you pay (OGL v3.0)", "url": "https://www.gov.uk/vat-flat-rate-scheme/how-much-you-pay", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "Limited-cost business uses 16.5% when goods cost is less than 2% of VAT-inclusive turnover or less than £1,000 a year p…", "…" ] } ``` ### POST /api/v1/indirect-tax/vat-invoice-requirements $0.03 USDC. Check a supplied invoice against HMRC Notice 700/21 full and simplified VAT invoice content rules and recompute arithmetic. Inputs: invoice, supplierIsRetailer?, type? Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-vat-invoice-requirements Example request: ```json { "invoice": { "number": "174", "timeOfSupply": "2007-10-30", "issueDate": "2007-11-01", "supplier": { "name": "Supplier Ltd", "address": "1 High St", "vatNumber": "987654321" }, "customer": { "name": "Customer Ltd", "address": "2 Low St" }, "lines": [ { "description": "Radios, SW15", "quantity": 6, "unitPricePence": 2520, "vatRate": 0.2, "netPence": 15120 }, { "description": "DVD players", "quantity": 4, "unitPricePence": 2360, "vatRate": 0.2, "netPence": 9440 } ], "cashDiscountRate": null, "totalNetPence": 24560, "totalVatPence": 4912, "totalGrossPence": 29472, "currency": "GBP" }, "supplierIsRetailer": false, "type": "full" } ``` Example response: ```json { "type": "full", "missing": [], "warnings": [], "arithmetic": { "linesNet": 24560, "vat": 4912, "ok": true }, "sources": [ { "source": "HMRC VAT Notice 700/21 sections 4.1, 4.4, 4.5 (OGL v3.0)", "url": "https://www.gov.uk/guidance/record-keeping-for-vat-notice-70021", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "Full invoice rules follow Notice 700/21 §4.1; simplified rules follow §4.4/4.5 when gross ≤ £250.", "…" ] } ``` ### POST /api/v1/indirect-tax/uk-mtd-itsa-obligations $0.02 USDC. Tell a sole trader or landlord when Making Tax Digital for Income Tax applies from qualifying income, and list quarterly update deadlines. Inputs: entity, qualifyingIncomePence, updatePeriods?, taxYear Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-uk-mtd-itsa-obligations Example request: ```json { "entity": "sole_trader", "qualifyingIncomePence": { "2024-25": 4500000, "2025-26": 3200000, "2026-27": null }, "updatePeriods": "standard", "taxYear": "2027-28" } ``` Example response: ```json { "mandatedFrom": "2027-04-06", "triggerYear": "2025-26", "deadlines": [ { "period": "2027-04-06/2027-07-05", "deadline": "2027-08-07" }, { "period": "2027-04-06/2027-10-05", "deadline": "2027-11-07" }, "…" ], "sources": [ { "source": "GOV.UK Making Tax Digital for Income Tax eligibility and quarterly updates (OGL v3.0)", "url": "https://www.gov.uk/guidance/check-if-youre-eligible-for-making-tax-digital-for-income-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "Mandation uses strictly-over thresholds: £50,000 (2024–25), £30,000 (2025–26), £20,000 (2026–27).", "…" ] } ``` ### POST /api/v1/indirect-tax/us-use-tax-accrual $0.02 USDC. Compute use tax owed on purchases where the vendor charged less than the caller-supplied combined rate, with per-jurisdiction totals. Inputs: purchases, rates Docs: https://www.brainiac.software/api/indirect-tax/docs#indirect-tax-us-use-tax-accrual Example request: ```json { "purchases": [ { "id": "PO-1", "shipToJurisdiction": "WA-King", "taxableAmountCents": 100000, "salesTaxChargedCents": 0, "exempt": false } ], "rates": { "WA-King": 0.1035 } } ``` Example response: ```json { "lines": [ { "id": "PO-1", "rate": 0.1035, "taxDueCents": 10350, "chargedCents": 0, "useTaxAccrualCents": 10350 } ], "totalAccrualCents": 10350, "byJurisdiction": { "WA-King": 10350 }, "sources": [ { "source": "Caller-supplied combined rates and purchase amounts processed locally", "url": "https://www.brainiac.software/api/v1/indirect-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…", "No state rate table is bundled; rates are caller-supplied. Over-charged lines report overchargedCents and are not nette…" ] } ```