Retrieve an invoice's CFDI
Invoices
Retrieve an invoice's CFDI
Retrieve the invoice CFDI in the requested format.
By default, this endpoint returns the CFDI parsed from XML to JSON. Set Accept: text/xml to retrieve the original XML file, or Accept: application/pdf to retrieve the PDF representation when one is available.
GET
Retrieve an invoice's CFDI
Authorizations
Your API key is available in the Production and Sandbox dashboards.
Headers
This header controls the output format:
- text/xml: Original XML file
- application/pdf: Original PDF file (XML's visual representation)
- application/json: Original XML file converted to JSON
Available options:
text/xml, application/pdf, application/json Path Parameters
Invoice ID
Example:
"91106968-1abd-4d64-85c1-4e73d96fb997"
Response
Invoice CFDI response
The response is of type object.