Api Endpoint

OnchainCheck Canadian Tax & Business Days

Canadian sales tax breakdown for an amount in a province or territory: GST, HST, PST, RST or QST with each rate and amount rounded to the cent, plus the total. Rates are looked up for the given date (default today), so historical changes such as Nova Scotia's 2025 HST cut are handled. Errors return 4xx/5xx JSON and aren't charged.

Open interactive test console

Offering

Provider
ca-tax-api-mainnet.lxtap.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://ca-tax-api-mainnet.lxtap.workers.dev/tax
MIME type
application/json
First seen
2026-10-23T22:13:16.843Z
Last seen
Tags
canada, sales-tax, gst-hst, Holidays, business-days

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x2ECB9E1fcca7A62758c679F11bC3241466d181d8"
  }
]

Observed health

Status
Degraded
Latest latency
51 ms
Average latency
388 ms
HTTP status
404
Last checked
Reachability
93.8% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "province": {
          "type": "string",
          "enum": [
            "AB",
            "BC",
            "MB",
            "NB",
            "NL",
            "NS",
            "NT",
            "NU",
            "ON",
            "PE",
            "QC",
            "SK",
            "YT"
          ],
          "description": "Two-letter Canadian province or territory code"
        },
        "amount": {
          "type": "string",
          "pattern": "^\\d+(\\.\\d+)?$",
          "description": "Pre-tax amount in CAD"
        },
        "date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Date the rates apply to, YYYY-MM-DD; defaults to today (UTC)"
        }
      },
      "required": [
        "province",
        "amount"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "amount": {
              "description": "Pre-tax amount in CAD",
              "pattern": "^\\d+(\\.\\d+)?$",
              "type": "string"
            },
            "date": {
              "description": "Date the rates apply to, YYYY-MM-DD; defaults to today (UTC)",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "province": {
              "description": "Two-letter Canadian province or territory code",
              "enum": [
                "AB",
                "BC",
                "MB",
                "NB",
                "NL",
                "NS",
                "NT",
                "NU",
                "ON",
                "PE",
                "QC",
                "SK",
                "YT"
              ],
              "type": "string"
            }
          },
          "required": [
            "province",
            "amount"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}