u
This commit is contained in:
@@ -39,7 +39,8 @@ List of shipments
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -27,7 +27,8 @@ Updates the materialized `ordersummary` table (`shipped_quantity`, `is_shipped`)
|
||||
| `warehouseId` | no | integer | Optional target warehouse ID to deduct stock from (defaults to company default warehouse) |
|
||||
| `externalNumber` | no | string | Optional external delivery note reference (defaults to order.externalNumber or order.number) |
|
||||
| `lines` | yes | object[] | Positions to ship |
|
||||
| `lines[].sku` | yes | string | Article SKU |
|
||||
| `lines[].sku` | no | string | Article SKU (omit for SKU-less order lines) |
|
||||
| `lines[].orderLineId` | no | integer | Order line id (`lines[].id` of the order); required for SKU-less lines, ignored when `sku` is given |
|
||||
| `lines[].amount` | no | number | Quantity to ship. Defaults to remaining unshipped quantity for this SKU. |
|
||||
| `lines[].name` | no | string | |
|
||||
| `lines[].pu` | no | number | |
|
||||
@@ -44,6 +45,7 @@ Updates the materialized `ordersummary` table (`shipped_quantity`, `is_shipped`)
|
||||
"lines": [
|
||||
{
|
||||
"sku": "…",
|
||||
"orderLineId": 1,
|
||||
"amount": 1,
|
||||
"name": "…",
|
||||
"pu": 1,
|
||||
@@ -82,7 +84,8 @@ Created shipment
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
@@ -124,7 +127,7 @@ Created shipment
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Validation error or article not in order — `{"error":"…"}` |
|
||||
| 400 | Validation error, article not in order, or article not shippable — `{"error":"…"}` |
|
||||
| 401 | Unauthorized — `{"error":"…"}` |
|
||||
| 404 | Order not found — `{"error":"…"}` |
|
||||
| 409 | Cumulative shipment amount exceeds ordered amount, or insufficient stock — `{"error":"…"}` |
|
||||
|
||||
@@ -7,7 +7,7 @@ Create order
|
||||
Creates a sales order with header and lines in one transaction.
|
||||
`date` is the document date (expected delivery).
|
||||
`entityId` must be a company customer (not Lieferanten).
|
||||
Each line requires `sku` or `name`, `amount`, `net`, and `taxrate` (rate); `pu` defaults to `1`; `rebate` defaults to `0`.
|
||||
Each line requires `sku` or `name`, `amount`, `net`, and `taxrate` (rate); `pu` defaults to `1`; `rebate` defaults to `0`; `shippable` defaults to `true` (`false` = not shippable, excluded from order completeness).
|
||||
|
||||
|
||||
## Body (JSON)
|
||||
@@ -62,7 +62,8 @@ Created order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shipping": {
|
||||
@@ -131,7 +132,8 @@ Created order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -36,7 +36,8 @@ Order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shipping": {
|
||||
@@ -105,7 +106,8 @@ Order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -45,7 +45,8 @@ Order list
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shipping": {
|
||||
@@ -114,7 +115,8 @@ Order list
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -56,7 +56,8 @@ Updated order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shipping": {
|
||||
@@ -125,7 +126,8 @@ Updated order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -66,7 +66,8 @@ Created quote
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
|
||||
@@ -40,7 +40,8 @@ Quote
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
|
||||
@@ -46,7 +46,8 @@ Quote list
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
|
||||
@@ -44,7 +44,8 @@ Fails with 400 (No entity selected) if neither the quote nor the request body sp
|
||||
"net": 1,
|
||||
"taxrate": 1,
|
||||
"rebate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -74,7 +75,8 @@ Created order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shipping": {
|
||||
@@ -143,7 +145,8 @@ Created order
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -60,7 +60,8 @@ Updated quote
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
|
||||
@@ -38,7 +38,8 @@ Shipment details
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
@@ -56,7 +56,8 @@ Updated shipment
|
||||
"net": 1,
|
||||
"rebate": 1,
|
||||
"taxrate": 1,
|
||||
"comment": "…"
|
||||
"comment": "…",
|
||||
"shippable": true
|
||||
}
|
||||
],
|
||||
"shippings": [
|
||||
|
||||
Reference in New Issue
Block a user