ReferenceDocuments
Get any document as PDF
Renders the document identified by `documentType` and `documentId` with its configured print template and returns `application/pdf` inline. Equivalent to the `/pdf` endpoint on each document type's own controller, for callers that hold the document type as data. 404 when the document has no printable output.
GET
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentType?stringValue in
"OrderInternal""Invoice""WriteOff""OrderSupplier""OrderInternet""Intake""ClaimInternal""CommissionIntake""PosReceipt""ClaimCustomer""OrderCustomer""DeliveryNote""ClaimSupplier""InternalTransfer"documentId?integerFormat
int64response?unknownapplication/octet-streamcurl -X GET 'https://<your-instance>/api/documents/pdf' \ -H 'Authorization: Bearer <access-token>'null