Skip to main content

Generate PDF

Generate a PDF document for a specific sales order in the requested format.

Endpoint

POST /sales-orders/{id}/generate-pdf?format=THERMAL_58MM

Authentication

Bearer Token (passed in the Authorization header)

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the sales order.

Query Parameters

ParameterTypeRequiredDefaultDescription
formatstringNo"DEFAULT"The PDF format to generate. Supported values: "DEFAULT", "THERMAL_58MM", "THERMAL_80MM", "A4".

Request Headers

HeaderValueRequiredDescription
AuthorizationBearer {token}YesBearer token for authentication.

Example Request

curl -X POST "https://api.example.com/sales-orders/{{id}}/generate-pdf?format=THERMAL_58MM" \
-H "Authorization: Bearer {token}"

Request Schema

No request body is required for this endpoint.