---
id: "cagst"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["finances"]
country: ["CA"]
langs: ["en"]
quality: 90
url: "http://registry.apicrafter.io/datatype/cagst"
---

# GST/HST account number (`cagst`)

CA datatype for 'GST/HST account number' (cagst) from rules in context 'finances'.

- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: Canada (CA)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9]{9}RT[0-9]{4}$
```

## Examples

- `123456789RT0001` — GST/HST account number with 9-digit Business Number, 'RT' program identifier and 4-digit reference
- `987654321RT0002` — Another valid GST/HST account number format

## Mappings

- fibo: <https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/NorthAmericanEntities/CARegulatoryAgencies/GoodsServicesTaxHarmonizedSalesTaxRegistrationNumber>
- stdnum: `ca.bn`

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `cagstfield` (field, `ca/ca_tax.yaml`)
- `cagstvalue` (data, `ca/ca_tax.yaml`)

## Supported by tools

- `metacrafter`

## Sources

- doc: <https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/gst-hst-businesses/registration/gst-hst-account-number.html>

## Quality

Score 90/100. Missing: negative example, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/cagst.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/finances/cagst.yaml>
