Factuarea APIDevelopers

series_invoice_kind_mismatch

Invoice series have a fixed purpose (`invoice_kind`): `complete` for complete invoices, `simplified` for simplified invoices, `corrective` for corrective invoices and `simplified_corrective` for corrective invoices of simplified invoices. An invoice is only numbered in a series of its own purpose (RD 1619/2012 arts. 6.1.a, 7.1.a and 15), and the series you chose has another one.

CodeTypeHTTPCategory
series_invoice_kind_mismatchinvalid_request_error422Series

Cause

Invoice series have a fixed purpose (invoice_kind): complete for complete invoices, simplified for simplified invoices, corrective for corrective invoices and simplified_corrective for corrective invoices of simplified invoices. An invoice is only numbered in a series of its own purpose (RD 1619/2012 arts. 6.1.a, 7.1.a and 15), and the series you chose has another one.

What to do

Omit series_id so the default series of the right purpose is used (it is created automatically when missing), or pick a series of the right invoice_kind: GET /v1/series/active?document_type=invoice&invoice_kind=…. If the invoice is a draft, change its series with PUT /v1/invoices/{id}: a series_id of its purpose, or null so issuance uses the default one (also when you switch the draft's type between F1 and F2). The settings of a store, a Stripe account or a recurring invoice only accept a complete series: the simplified and corrective invoices they generate go to the default series of their kind on their own.

On this page

Need a hand?Contact support