u
This commit is contained in:
@@ -17,6 +17,10 @@ Configures the article as a Stückliste covering a list of count * article. A fa
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `items` | yes | object[] | |
|
||||
| `items[].articleId` | no | integer | |
|
||||
| `items[].sku` | no | string | |
|
||||
| `items[].count` | no | integer | |
|
||||
| `items[].sort` | no | integer | |
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -17,6 +17,11 @@ Configures options for an article. Some options can be mandated (come with the a
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `options` | yes | object[] | |
|
||||
| `options[].articleId` | no | integer | |
|
||||
| `options[].sku` | no | string | |
|
||||
| `options[].count` | no | integer | |
|
||||
| `options[].sort` | no | integer | |
|
||||
| `options[].mandated` | no | boolean | |
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -17,6 +17,9 @@ Replaces all properties for an article.
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `properties` | yes | object[] | |
|
||||
| `properties[].propertyId` | yes | integer | |
|
||||
| `properties[].value` | yes | string | |
|
||||
| `properties[].sort` | no | integer | |
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -20,6 +20,9 @@ Empty `prices` clears all POS prices. Returns the same shape as GET by SKU.
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `prices` | yes | object[] | |
|
||||
| `prices[].price` | yes | number | Net price |
|
||||
| `prices[].tax` | yes | number | Tax rate (e.g. 19) |
|
||||
| `prices[].minmultiplier` | no | number | Defaults to 1; must be unique per request |
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -7,16 +7,22 @@ Adjust stock manually
|
||||
Writes signed (+ or -) entries to the append-only ledger under an implicit manifest
|
||||
of type "adjustment", allocating a number from the "adjustment" number scheme.
|
||||
|
||||
**Note:** `sku` must be a string (e.g. `"25"`), not a number. For single-item adjustments, provide `sku` and `amount` at top-level. For batch adjustments, provide `lines: [{ sku, amount, ... }]`.
|
||||
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `sku` | no | string | Article SKU (for single-item adjustment) |
|
||||
| `sku` | no | string | Article SKU string (e.g. "25", not a number; for single-item adjustment) |
|
||||
| `warehouseId` | no | integer | Target warehouse ID |
|
||||
| `amount` | no | number | Signed adjustment quantity (+ to add, - to remove) |
|
||||
| `text` | no | string | Reason or memo |
|
||||
| `lines` | no | object[] | Batch adjustment lines |
|
||||
| `lines[].sku` | yes | string | Article SKU string (e.g. "25", not a number) |
|
||||
| `lines[].warehouseId` | no | integer | Target warehouse ID |
|
||||
| `lines[].amount` | yes | number | Signed adjustment quantity (+ to add, - to remove) |
|
||||
| `lines[].text` | no | string | Reason or memo |
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user