This commit is contained in:
seb
2026-10-21 03:31:55 +02:00
parent 63f4c3a0e4
commit e4e4d2dcf0
21 changed files with 243 additions and 193 deletions

View File

@@ -181,11 +181,14 @@ export function register(app, basePath = '') {
* description: Positions to ship
* items:
* type: object
* required: [sku]
* description: Provide `sku` for order lines with a SKU, or `orderLineId` for SKU-less order lines (exactly one of them).
* properties:
* sku:
* type: string
* description: Article SKU
* description: Article SKU (omit for SKU-less order lines)
* orderLineId:
* type: integer
* description: Order line id (`lines[].id` of the order); required for SKU-less lines, ignored when `sku` is given
* amount:
* type: number
* description: Quantity to ship. Defaults to remaining unshipped quantity for this SKU.
@@ -212,7 +215,7 @@ export function register(app, basePath = '') {
* shipment:
* $ref: '#/components/schemas/Shipment'
* 400:
* description: Validation error or article not in order
* description: Validation error, article not in order, or article not shippable
* content:
* application/json:
* schema: