Saltar a contenido

Get cfdi pdf


Get a download link for the stamped PDF (printed representation) of one CFDI (invoice, credit note or payment complement; invoice_id is its id). Read-only. The PDF itself is not returned. Only signed (or canceled) CFDIs have one: a draft answers invalid_state until sign_invoice stamps it; a stamped CFDI whose PAC returned no PDF also answers invalid_state (the XML is still available). Returns {invoice_id, uuid, filename (.pdf), content_type "application/pdf", size_bytes, download_url, expires_at}. download_url is opened in a browser to save the file; the MCP access token does not fetch it. The link expires at expires_at (15 minutes, ISO 8601 UTC); a new call returns a new one.

Alcance (scope): invoices:read · Características: Solo lectura, Idempotente

Parámetros

Parámetro Tipo Obligatorio Descripción
invoice_id string Sí
issuer string Sí Id of the issuer the call acts for, from list_issuers.

Esquema de entrada (JSON Schema)

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "string"
    },
    "issuer": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the issuer the call acts for, from list_issuers."
    }
  },
  "required": [
    "invoice_id",
    "issuer"
  ]
}