The files of an invoice, each with its state
An accepted invoice has three files: xml (the signed document), cdr (SUNAT's answer) and pdf (the printed document, rendered by this service with the template the invoice pinned). Each is pending while it is fetched or rendered, stored when it can be downloaded (with its size and SHA-256) or failed when we stopped trying (with a reason). url is the route of this API that serves it, with your credential; download_url is a signed link that opens WITHOUT a credential and lives an hour (every read gives a fresh one): hand that one to a browser or a person. The provider's own address is never shown. An invoice that SUNAT has not accepted has no files: the list is empty. Storing them does not delay the verdict: follow invoice.files_stored, or invoice.pdf_ready for the PDF alone. The stored pdf says template: what it was really printed with (kind, ref, template_id, name, version; a shared one is system:a4, version 1).
https://api.invox.page/v1/invoices/{id}/filesAuthorization
Path parameters
Header parameters
Returns
200
The files of the invoice, and whether they are all stored (complete).