corrective_substitution_negative_amount
In a substitution corrective (`correction_nature: S`, or `full` with `lines` and no nature) each line carries the FINAL amount of the correct invoice, so no quantity can be negative (art. 15.5 RD 1619/2012; VERI*FACTU does not accept a negative base in a substitution). The unit price is never negative: the sign goes in the quantity.
| Code | Type | HTTP | Category |
|---|---|---|---|
corrective_substitution_negative_amount | invalid_request_error | 422 | Invoices |
Cause
In a substitution corrective (correction_nature: S, or full with lines and no nature) each line carries the FINAL amount of the correct invoice, so no quantity can be negative (art. 15.5 RD 1619/2012; VERI*FACTU does not accept a negative base in a substitution). The unit price is never negative: the sign goes in the quantity.
What to do
Send the lines as the invoice must end up, or correct by differences (correction_type: partial) with negative adjustment quantities. error.line_index points at the line and error.param at the field.