{
  "id": "cagst",
  "kind": "datatype",
  "status": "stable",
  "name": "GST/HST account number",
  "doc": "CA datatype for 'GST/HST account number' (cagst) from rules in context 'finances'.",
  "is_pii": false,
  "categories": [
    "finances"
  ],
  "country": [
    "CA"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^[0-9]{9}RT[0-9]{4}$",
  "examples": [
    {
      "value": "123456789RT0001",
      "description": "GST/HST account number with 9-digit Business Number, 'RT' program identifier and 4-digit reference",
      "valid": true
    },
    {
      "value": "987654321RT0002",
      "description": "Another valid GST/HST account number format",
      "valid": true
    }
  ],
  "mappings": {
    "fibo": "FBC/FunctionalEntities/NorthAmericanEntities/CARegulatoryAgencies/GoodsServicesTaxHarmonizedSalesTaxRegistrationNumber",
    "stdnum": "ca.bn"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/gst-hst-businesses/registration/gst-hst-account-number.html"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "cagstfield",
        "type": "field",
        "match": "text",
        "file": "ca/ca_tax.yaml"
      },
      {
        "rule": "cagstvalue",
        "type": "data",
        "match": "ppr",
        "file": "ca/ca_tax.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/CA/finances/cagst.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CA/finances/cagst.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/finances/cagst.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/cagst",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/cagst.json"
  }
}