The first step to identify issues with an invoice in REQUIRES_INSPECTION
or REQUIRES_CORRECTION
status is to access the retrieveInvoice
endpoint.
This endpoint allows you to retrieve detailed information about the invoice, including the validations that have been applied during the transmission process.
These validations will provide specific details on which aspects of the invoice have caused the error.
Some of the most common errors can be: invalid tax identification numbers (NIF), incorrect calculations in line items, and rounding errors in the amounts provided.