Skip to main content
GET

List numbering series by document type

Scope:sales:invoicing-settings.read
https://api.holded.com/api/v2/numbering-series/{type}

Returns the list of all numbering series configured in your account, grouped by document type. Use this endpoint to discover available series before creating documents with a specific `number_line_id`.

Parameters

Path parameters

typestringrequired

Document type for the numbering series

"invoice""salesreceipt""creditnote""estimate""proform""waybill""salesorder""purchase""purchaserefund""order""purchaseshipment""receiptnote""productionorder"

Request

python
import requests

url = "https://api.holded.com/api/v2/numbering-series/{type}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "name": "Factura principal",
      "format": "INV-[YYYY]-%%%",
      "last": 150,
      "type": "invoice",
      "refund_numbering_series_id": null,
      "verifactu_excluded": false
    }
  ]
}

Success responses

200List of numbering seriesapplication/json
object
items[]object[]
idstring

Unique identifier of the numbering series

namestring

Display name of the numbering series

formatstring

Pattern the document number is built from: one group of `%` for the counter and `[YYYY]` or `[YY]` for the year

lastinteger

Last number used in the series

typestring

Document type this series applies to

refund_numbering_series_idstring | null

Identifier of the linked refund numbering series, if any

verifactu_excludedboolean

Whether this series is excluded from VeriFactu reporting

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json