purchase_invoice_requires_at_least_one_line
The purchase invoice has no lines, so there is no expense nor deductible VAT to record.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_requires_at_least_one_line | invalid_request_error | 422 | Purchase Invoices |
Cause
The purchase invoice has no lines, so there is no expense nor deductible VAT to record.
What to do
Add at least one line with description, quantity and unit price before saving.
Related
All Purchase Invoices error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.