operator-payments

Propose the first document number for a supervision batch

Highest number already used in the series, plus one. Sales invoices and credit notes share the series and the portal does not refuse a duplicate, so the credit notes are read from Zucchetti; if that read fails no number is proposed.

get/api/operator-payments/supervision-invoice/next-document-number

Query parameters

seriesstring required

Sezionale, e.g. 'P'

Sezionale, e.g. 'P'

yearinteger required

Competence year of the batch

Competence year of the batch

Response

Successful Response

seriesstring required
yearinteger required
next_document_numberinteger nullable
last_invoice_numberinteger nullable

Highest number issued by us for this series/year (local table)

last_credit_note_numberinteger nullable

Highest credit-note number in the portal for this series/year

credit_notes_checkedboolean

False when the portal lookup failed; no number is proposed

detailstring nullable

Why no number is proposed, when that happens

Changes

No recorded changes to this endpoint across all 1 revision of this API.