Download purchase invoice PDF
GET /api/v1/facturas-compra/{clave}/pdf
Regenerates the purchase invoice’s PDF on the fly and returns it as application/pdf. Same behavior as GET /facturas/{clave}/pdf.
Authentication and permissions
| Attribute | Value |
|---|---|
| Scheme | API key (X-Api-Key) |
| Required scope | facturas-compra:read |
Response
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="50615012600310112345600100001080000000123456789012.pdf"The body is the PDF bytes.
Errors
| Code | Cause |
|---|---|
404 | The key doesn’t exist, or it exists but isn’t type 08. |
500 | Error generating the PDF. |