Sometimes you'll see you have invoices (SAT) that come with missing
invoice_details or some null fields.
This can happen when SAT returns invoices with errors inside the invoice's XML file.
We need the XML invoice to fill some attributes of the invoice, like
invoice_details, so if we receive a bad XML file, you'll see some missing details in the invoice.
Why is Belvo returning invoices with missing details?
We'll do our best to get the right invoices from SAT, but sometimes SAT returns us invoices with errors.
If we are not able to get the best version of the invoice, we'll return at least the data we have so at least you can notice the existence of that invoice and fix it later.
What if we have an invoice already saved in Belvo and, in an update, SAT returns this same invoice but with errors?
If we had an invoice with errors already saved in Belvo, we'll overwrite it with a good version of that invoice as soon as we receive it.
If we had a correct invoice saved in Belvo and we receive a new version with missing details, we won't return you nor save that invoice. Instead, we'll return the last correct version of that invoice we had already saved.
How do I fix an invoice saved with missing data?
Recurrent links will try to get a fresh version of the invoice in the next daily refreshes, so you should receive a fixed version of the invoice then.
If you are using single links, we suggest you make another POST request after 24h to retrieve that invoices again.