GET
List numbering series by document type
Scope:
sales:invoicing-settings.readhttps://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
type
stringrequiredDocument 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/jsonobject
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/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json