GET /api/invoices/:id
Retrieves detailed information for a specific invoice, including payment status and validation details.Authentication
Requires Bearer token authentication. The token must be included in theAuthorization header.
Path Parameters
UUID of the invoice to retrieve
Response
Complete invoice object with payment status
UUID of the invoice
UUID of the associated profile
Fiscal UUID from the CFDI
Invoice date (ISO 8601 format)
Month (1-12)
Year
Total amount including taxes
Subtotal before taxes
IVA amount
Transferred IVA amount
IVA withholding amount
ISR withholding amount
Payment type: “PUE” (paid in one payment), “PPD” (paid in installments), or “COMPLEMENTO_PAGO” (payment complement)
RFC of the issuer
Name of the issuer
Fiscal regime code of the issuer (3-digit SAT code)
RFC of the recipient
Name of the recipient
Fiscal regime code of the recipient
Description or concept of the invoice
Array of partial payments (for PPD invoices)
Payment date
Payment method code (SAT catalog)
Payment currency (e.g., “MXN”)
Payment amount
Operation/transaction number (optional)
Installment number
UUID of the payment complement (if from complement)
Payment origin: “COMPLEMENTO” or “MANUAL”
Payment complement data (if applicable)
Array of payment complement items
Validation results
Whether RFC was verified
Whether fiscal regime was verified
Whether UUID is duplicated
Array of validation warnings (strings)
Array of validation errors (strings)
Whether the invoice passed all validations
Detailed payment status information
Payment state: “PAGADO” (fully paid), “PAGO_PARCIAL” (partially paid), or “NO_PAGADO” (not paid)
Total invoice amount
Total amount paid to date
Outstanding balance
Percentage paid (0-100)
Whether the invoice is fully paid
Last outstanding balance from payment complement (if applicable)
Whether payment complements exist
Whether manual payments have been recorded
Array of payment dates from complements (for annotations)
Creation timestamp (ISO 8601 format)
Last update timestamp (ISO 8601 format)
Error Codes
Unauthorized - User not authenticated
Not Found - Invoice not found or doesn’t belong to authenticated user
Internal Server Error - Error retrieving invoice
Example Request
Example Response (PUE - Fully Paid)
Example Response (PPD - Partially Paid)
Example Response (Not Found)
Notes
- The endpoint verifies that the invoice belongs to one of the authenticated user’s profiles
- Payment status is calculated dynamically based on payment complements and manual payments
- For PPD invoices, the
pagosarray contains all partial payments recorded via payment complements or manual entries - The
estadoPagoobject provides comprehensive payment tracking information for invoices paid in installments