Generator · Canadian data

Canadian transit (branch routing) number

Endpoint GET /v1/ca/transit-number

What it covers

Returns a Canadian routing point. Canada splits what the US packs into one nine-digit routing number: a five-digit branch **transit** and a three-digit **institution** number, both assigned and published by Payments Canada — every institution number here is real. The two are written in **opposite field order** depending on context: `XXXXX-YYY` on a cheque, `0YYYXXXXX` for EFT, and a system accepting one often chokes on the other, so both are first-class. Neither number carries a checksum, so `invalid=true` violates the structure — including the transposed-fields case that is the commonest real data-entry error here.

Parameters

ParameterTypeDescription
countinteger1–10000Number of records to return, 1–10000. Omitted returns a single record; set it for a batch. Costs 1 token plus a tenth per record.
edgebooleanRestrict output to valid edge cases from the rare corners of the domain.
extremebooleanReturn a correct value wrapped in a hostile encoding (untrimmed whitespace, invisible/zero-width characters, BOM, or bidi/combining marks). Homoglyphs are excluded so the value stays machine-parseable; it still validates after normalisation.
format"cheque" | "electronic"Rendering: `cheque` (default, `XXXXX-YYY` as printed) or `electronic` (`0YYYXXXXX` for EFT). Note the field order reverses between them.
institutionstringPin the bank by name (`Royal Bank of Canada`) or number (`003`).
invalidbooleanReturn a deliberately invalid value that fails validation, for testing rejection paths.
seedintegerInteger seed for reproducible output: the same seed always yields the same record.

Response fields

FieldTypeDescription
valuestringThe routing point rendered per `format`.
transitNumberstringThe five-digit branch transit number.
institutionNumberstringThe three-digit Payments Canada institution number.
institutionNamestringThe institution’s name.
institutionKind"bank" | "credit-union" | "trust" | "government"How Payments Canada classes the institution.
electronicFormatstringThe `0YYYXXXXX` EFT form — note the field order reverses from the cheque form.

Other generators for Canada

See all generators for Canada →

The same kind of identifier elsewhere

Try it

Generate a live example below — every response is valid by format and entirely synthetic.