This commit is contained in:
seb
2026-09-28 12:13:17 +02:00
parent e8e4265dc4
commit 62d46a1df3
8 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1,39 @@
# `POST /article/{sku}/print`
Protected. Requires a valid session cookie (`credentials: 'include'`).
Print article label
Prints a label for the article using a label template.
## Path parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `sku` | yes | string | |
## Body (JSON)
```json
{
"templateId": 1,
"printerId": 1,
"quantity": 1
}
```
## Response `200`
Print job dispatched
## Errors
| Status | Description |
|--------|-------------|
| 400 | Invalid parameters |
| 404 | Printer, Template or Article not found |
| 500 | Server error |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._