Skip to main content
GET
Retrieve an invoice

Authorizations

Authorization
string
header
required

API key: Authorization: Bearer sk_test_... or sk_live_....

Headers

Invoice-Version
string

Pin a dated API release (Stripe-style). Omit to use the current version. An unknown value returns 400 request.invalid_version. Echoed back on every response.

Example:

"2026-07-10"

Invoice-Account
string

Connect: act on behalf of one of your connected accounts (its acct_…/org_… id). Omit to act as your own organization. Not honored on /v1/api_keys.

Example:

"org_2P9connectedacct"

Path Parameters

id
string
required

Invoice id, e.g. "inv_2P9K3sample".

Minimum string length: 1

Query Parameters

expand

Comma-separated related objects to inline, e.g. "fiscal_profile".

expand[]

Bracket-array form of expand, e.g. ?expand[]=fiscal_profile.

Response

Default Response

object
enum<string>
required

Always "invoice".

Available options:
invoice
id
string
required

Invoice id, e.g. "inv_2P9K3sample".

livemode
boolean
required

True if stamped with a live-mode key against the real SAT.

status
enum<string>
required

Lifecycle status: draft, stamping (in flight), stamped, or stamp_failed.

Available options:
draft,
stamping,
stamped,
stamp_failed
type
enum<string>
required

CFDI TipoDeComprobante: "I" ingreso, "E" egreso (nota de crédito), "P" pago.

Available options:
I,
E,
P
fiscal_profile_id
string
required

Id of the fiscal profile (issuer) that stamped this invoice.

serie
string | null
required

CFDI Serie, or null if unset.

folio
string | null
required

CFDI Folio, or null if unset.

customer
object
required

The receptor (customer) as stamped onto the CFDI.

currency
string
required

c_Moneda currency code, e.g. "MXN".

subtotal
string | null
required

Sum of line amounts before taxes, decimal string, e.g. "100.00".

total
string | null
required

Grand total including taxes, decimal string, e.g. "116.00".

uuid
string | null
required

SAT folio fiscal (UUID) once stamped, else null.

stamped_at
string | null
required

When the CFDI was stamped (ISO-8601 UTC), or null.

sello_cfd
string | null
required

Issuer digital seal (Sello del CFDI), or null.

sello_sat
string | null
required

SAT digital seal from the TimbreFiscalDigital, or null.

no_certificado_sat
string | null
required

SAT certificate serial that timbró the CFDI, or null.

cancellation
object
required

Cancellation status for this CFDI.

error
any | null
required

The last stamping error (problem+json shape) when status is stamp_failed, else null.

xml_url
string
required

Path to download the CFDI XML, e.g. "/v1/invoices/:id/xml".

pdf_url
string
required

Path to download the CFDI PDF, e.g. "/v1/invoices/:id/pdf".

metadata
object
required

Integrator-owned key-value map echoed back.

created_at
string
required

Creation timestamp, ISO-8601 UTC.

updated_at
string
required

Last-update timestamp, ISO-8601 UTC.

fiscal_profile
object

The full issuer profile — present only when ?expand=fiscal_profile is requested.