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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the sales order. |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
format | string | No | "DEFAULT" | The PDF format to generate. Supported values: "DEFAULT", "THERMAL_58MM", "THERMAL_80MM", "A4". |
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
Authorization | Bearer {token} | Yes | Bearer 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.