purchase_invoice_requires_at_least_one_line
The expense has no lines, so there is no amount nor deductible VAT to record.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_requires_at_least_one_line | invalid_request_error | 422 | Expenses |
Cause
The expense has no lines, so there is no amount nor deductible VAT to record.
What to do
Add at least one line with description, quantity and unit price before saving.
Related
All Expenses 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.