Skip to Content
v1.5Official documentation for the LX CloudPos API · stable in production
v1.5 (current)Endpoint referenceDownload purchase invoice PDF

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

AttributeValue
SchemeAPI key (X-Api-Key)
Required scopefacturas-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

CodeCause
404The key doesn’t exist, or it exists but isn’t type 08.
500Error generating the PDF.

See also