CompanySeries
Update an invoice series
Updates only the fields present in the body, leaving every other field of the series as it is.
- Clearing a field: a field sent as null is cleared, which only description supports.
- Numbering fields: code, format, counter_reset and initial_number are rejected once the series has issued invoices (numbering_locked is true).
- Unique numbers per issuer: changing code, format or document_type so that the series could print a number another series of the company can also print is rejected with 409 SERIES_FORMAT_OVERLAPS.
- default_series: it cannot be used to clear the default. Sending false for the series that currently is the default answers DEFAULT_CANNOT_BE_UNMARKED, because it would leave the document type with active series and no default, and issuing without an explicit series_id would then fail with SERIES_DEFAULT_NOT_FOUND. Hand the default over with PUT /v1/companies/{company_id}/series/{series_id}/default on the new series, which unmarks the previous one. Sending false for a series that is not the default is a no-op.
patch/v1/companies/{company_id}/series/{series_id}
Request
- Base URL: https://app.beel.es/api
- URL: https://app.beel.es/api/v1/companies/{company_id}/series/{series_id}
- Auth: HTTP bearer
Request body
Example request
{
"name": "Main Series",
"code": "FAC",
"description": "Series for standard invoices",
"format": "{CODIGO}-{YYYY}-{NUM:4}",
"initial_number": 54
}Response
Series updated successfully
Example response
{
"success": true,
"data": {
"name": "Main Series",
"code": "FAC",
"description": "Series for standard invoices",
"format": "{CODIGO}-{YYYY}-{NUM:4}",
"initial_number": 1
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.