invalid_aeat_code
The AEAT operation code is outside the closed catalogue `S1`, `S2`, `S3`, `E1`-`E6`, `N1`, `N2` used by VeriFactu and SII.
| Code | Type | HTTP | Category |
|---|---|---|---|
invalid_aeat_code | invalid_request_error | 422 | Taxes |
Cause
The AEAT operation code is outside the closed catalogue S1, S2, S3, E1-E6, N1, N2 used by VeriFactu and SII.
What to do
Pick the code matching the fiscal nature of the operation: S1 subject and not exempt, S2 reverse charge, E1-E6 exemptions, N1-N2 out of scope.