This commit is contained in:
seb
2026-10-07 21:43:51 +02:00
parent 85635cc0a5
commit 1a236b568a
23 changed files with 456 additions and 313 deletions

View File

@@ -32,6 +32,12 @@ Prints a label for the article using a label template.
Print job dispatched
```json
{
"success": true
}
```
## Errors
| Status | Description |

View File

@@ -17,6 +17,12 @@ Removes a single property from an article.
Deleted successfully
```json
{
"ok": true
}
```
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._

View File

@@ -2,7 +2,7 @@
Protected. Requires a valid session cookie (`credentials: 'include'`).
Set or clear article brand by SKU
Set or clear article brand by SKU (null to clear)
Sets the article's `brandId` (must belong to the article's company).
Pass `null` to clear the brand. Returns the same shape as GET by SKU.
@@ -18,7 +18,7 @@ Pass `null` to clear the brand. Returns the same shape as GET by SKU.
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `brandId` | yes | integer | |
| `brandId` | yes | integer | Brand ID to assign, or null to remove the brand |
```json
{

View File

@@ -2,12 +2,14 @@
Protected. Requires a valid session cookie (`credentials: 'include'`).
Replace POS prices by SKU
Replace POS prices by SKU (net > gross; price=net, tax=taxRate %)
Replace-all prices for the company POS customer group.
Each entry accepts `net` OR `gross` price (or legacy `price`), `taxRate` OR `tax` (percentage, e.g. 19 for 19%, ensured via tax.ensure), optional `minmultiplier` (default 1).
`net` takes precedence over `price` (legacy alias for net) and `gross`.
`tax` and `taxRate` both specify the tax rate percentage (e.g. 19 for 19%), not monetary tax.
When `gross` is provided, net price is computed as `gross / (1 + taxRate / 100)`.
Empty `prices` clears all POS prices. Returns the same shape as GET by SKU (article `prices` array contains `{ minmultiplier, net, taxRate, customergroupId }`).
Prices are strictly scoped to the company's designated POS customer group (customergroupId returned on GET).
Empty `prices` clears all POS prices. Returns the same shape as GET by SKU.
## Path parameters

View File

@@ -30,6 +30,12 @@ Updates the display sort order of values belonging to an attribute.
Reordered successfully
```json
{
"ok": true
}
```
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._

View File

@@ -16,6 +16,12 @@ Deletes an attribute name and cascades to attribute values and article assignmen
Deleted successfully
```json
{
"ok": true
}
```
## Errors
| Status | Description |

View File

@@ -24,6 +24,12 @@ Updates the display sort order of attribute names for the selected company.
Reordered successfully
```json
{
"ok": true
}
```
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._

View File

@@ -16,6 +16,12 @@ Deletes an attribute value and cascades to article assignments.
Deleted successfully
```json
{
"ok": true
}
```
## Errors
| Status | Description |

View File

@@ -17,7 +17,16 @@ Brand list
"id": 1,
"name": "…",
"gsprpinfo": "…",
"pics": []
"pics": [
{
"id": 1,
"sort": 1,
"fullHash": "…",
"thumbW": 1,
"thumbH": 1,
"thumbHash": "…"
}
]
}
]
}

View File

@@ -31,7 +31,16 @@ Upserted brand
"id": 1,
"name": "…",
"gsprpinfo": "…",
"pics": []
"pics": [
{
"id": 1,
"sort": 1,
"fullHash": "…",
"thumbW": 1,
"thumbH": 1,
"thumbHash": "…"
}
]
}
}
```

View File

@@ -17,6 +17,12 @@ Removes a single property from a category.
Deleted successfully
```json
{
"ok": true
}
```
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._

View File

@@ -16,6 +16,12 @@ Deletes a property name and cascades to article properties.
Deleted successfully
```json
{
"ok": true
}
```
## Errors
| Status | Description |

View File

@@ -24,6 +24,12 @@ Updates the display sort order of property names for the selected company.
Reordered successfully
```json
{
"ok": true
}
```
## Errors
| Status | Description |