GET /v1/tenant/numbering-ranges(plural) lists every active range of the stage, the most recently started first.GET /v1/tenant/numbering-range(singular) reads the default range, andPUT /v1/tenant/numbering-rangeadds the range of its prefix or replaces it. There is no pluralPUT, and the singular routes are not deprecated. Add?environment=productionto prepare a production range before the tenant is promoted.- Without
prefix, an invoice takes the most recently started range in force on its issue date, which is not always the first one of the list.
- Always send an explicit
prefixonPOST /v1/invoicesonce a tenant has more than one series, so a new range never changes where your invoices go. A prefix with no range answers422 numbering_prefix_unknown, and a range not in force on the issue date answers422 numbering_range_not_in_force. - Store the stage and the prefix of the series you issue under. A range has no immutable
id: the API returns
resolution_number,prefix,range_from,range_to,start_dateandend_date, and aPUTwith the same prefix replaces the stored range, even under a new resolution. Do not use the position in the list as an identity. - A replacement may not leave an issued number outside its authorisation:
409 numbering_range_in_use.