Invoice number
invoice-numberFormats PREFIX-YYYYMM-NNNNN-C with a Luhn check digit, or validates one. Returns { invoice } when formatting, or { valid } when validating. Price: 1 credit (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Two to six upper-case letters. | HIC |
| yyyymm | No | Year and month as YYYYMM; defaults to the current UTC month. | |
| sequence | No | Invoice sequence number. Required unless validate is given. | |
| validate | No | An invoice number to check instead of formatting one; when given, the other fields are ignored. |