Skip to main content
A stage keeps one numbering range per series (prefix).
  • 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, and PUT /v1/tenant/numbering-range adds the range of its prefix or replaces it. There is no plural PUT, and the singular routes are not deprecated. Add ?environment=production to 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.
Recommendations:
  • Always send an explicit prefix on POST /v1/invoices once a tenant has more than one series, so a new range never changes where your invoices go. A prefix with no range answers 422 numbering_prefix_unknown, and a range not in force on the issue date answers 422 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_date and end_date, and a PUT with 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.
Credit and debit notes have no DIAN numbering range; they count per kind and prefix.