u
This commit is contained in:
@@ -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