Skip to main content

Print Purchase Invoice PDF

GET 

/api/purchase-invoices/:purchaseOrderId/print

Generate and stream a PDF of the purchase order invoice.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Important: the :purchaseOrderId path parameter is a purchase ORDER id, not a purchase invoice id. Despite living under /api/purchase-invoices/, this endpoint looks up the purchase order and renders its invoice PDF.

Authentication: Requires Bearer token.

Response: Inline PDF file (application/pdf). Not a JSON response.

Request

Responses

OK