WinShopAPI docs

Get an invoice as PDF

Renders the invoice with its configured print template and returns `application/pdf` inline. 404 when the document has no printable output. Requires `Permissions.Invoice.View`.

GET
/api/documents/invoices/{documentId}/pdf

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

documentId*integer
Formatint32

Response Body

response?unknownapplication/octet-stream
curl -X GET 'https://<your-instance>/api/documents/invoices/0/pdf' \  -H 'Authorization: Bearer <access-token>'
null