52 lines
926 B
Markdown
52 lines
926 B
Markdown
# `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)
|
|
|
|
| Field | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `templateId` | yes | integer | |
|
|
| `agentprinterId` | yes | integer | |
|
|
| `quantity` | yes | integer | |
|
|
|
|
```json
|
|
{
|
|
"templateId": 1,
|
|
"agentprinterId": 1,
|
|
"quantity": 1
|
|
}
|
|
```
|
|
|
|
## Response `200`
|
|
|
|
Print job dispatched
|
|
|
|
```json
|
|
{
|
|
"success": true
|
|
}
|
|
```
|
|
|
|
## 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`._
|