Deactivate, reactivate or move the next number of a series forward
status: inactive stops NEW invoices from taking this series (they answer series_not_found); what is already in it stays in it: a retry with another number and the correction of one of its invoices keep using it. next_number is the number the next invoice takes, absolute (a retry does not move it twice), and only forward: the next number itself answers 200 and changes nothing (no event), so a retry without Idempotency-Key is safe; a lower one is series_number_not_higher. If an emission passes it meanwhile, nothing goes down and the answer says the real state. Nothing risky is refused: warnings says what it causes (number_gap: SUNAT will see the skipped numbers; last_active_series: the establishment is left without an active series of that type). dry_run: true answers the same, warnings included, and changes nothing: show it before confirming.
https://api.invox.page/v1/series/{id}Authorization
Path parameters
Header parameters
Request body JSON required
Returns
200
The series as it is left (or, with dry_run, as it would be), with dry_run and warnings.
- last_issuedrequired
The last number that really went out: the invoice with the highest number of this series in ANY state (accepted, rejected, still on its way or held), because every one of them consumed its number. An adjustment of
next_numberdoes not change it.null: no invoice has taken a number of this series yet.