tax_rate_mismatch
The line chooses a tax (`tax_rate_id`) and also declares a `tax_rate` different from that tax's rate. The chosen tax qualifies the line (regime, AEAT qualification and exemption reason), so both values must match.
| Code | Type | HTTP | Category |
|---|---|---|---|
tax_rate_mismatch | invalid_request_error | 422 | Invoices |
Cause
The line chooses a tax (tax_rate_id) and also declares a tax_rate different from that tax's rate. The chosen tax qualifies the line (regime, AEAT qualification and exemption reason), so both values must match.
What to do
Send only tax_rate_id (the rate comes from the tax) or a tax_rate equal to the tax's rate. error.line_index points at the line.
Related
All 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.