Outbound Shipment Items
GET/shipments/outbound/{outbound_shipment}/outbound-shipment-item
List the lines of an outbound shipment
Lists every line of a shipment with its item, stock, stock moves and services.
Required attributes
- Name
outbound_shipment- Type
- string
- Description
- The ID of the outbound shipment 1001
Request
GET/shipments/outbound/{outbound_shipment}/outbound-shipment-item
curl -G https://YOUR_DOMAIN/api/shipments/outbound/{outbound-shipment}/outbound-shipment-item \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"Loading response...
POST/shipments/outbound/{outbound_shipment}/outbound-shipment-item
Add an item to an outbound shipment
Adds an inventory item of the shipment merchant that is not yet on the unlocked shipment, named by ID or product UUID.
Required attributes
- Name
outbound_shipment- Type
- string
- Description
- The ID of the outbound shipment 1001
- Name
quantity- Type
- integer
- Description
- The units to add 10
Optional attributes
- Name
item_id- Type
- string
- Description
- The ID of an item of the shipment merchant that is not deleted 164
- Name
product_uuid- Type
- string
- Description
- The product UUID of the item, in either letter case, as an alternative to item_id 01a20b42-64a0-8020-bb6c-45c6c6d23229
- Name
expiry_date- Type
- string
- Description
- A YYYY-MM-DD or other parseable date, after today plus the provider's minimum expiry days, or null 2031-02-03
Request
POST/shipments/outbound/{outbound_shipment}/outbound-shipment-item
curl -X POST https://YOUR_DOMAIN/api/shipments/outbound/{outbound-shipment}/outbound-shipment-item \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"item_id": 164,
"product_uuid": "01a20b42-64a0-8020-bb6c-45c6c6d23229",
"quantity": 10,
"expiry_date": "2031-02-03"
}'Loading response...
PATCH/shipments/outbound/{outbound_shipment}/outbound-shipment-item/{outbound_shipment_item}
Update a line of an outbound shipment
Replaces a line's quantity and expiry date on an unlocked shipment, resizing its single plain stock move or creating one if missing.
Required attributes
- Name
outbound_shipment- Type
- string
- Description
- The ID of the outbound shipment 1001
- Name
outbound_shipment_item- Type
- string
- Description
- The ID of the shipment line, or the lower-case product UUID of its item 301
- Name
quantity- Type
- string
- Description
- The new quantity of the line, which may be zero 10
Optional attributes
- Name
expiry_date- Type
- string
- Description
- A YYYY-MM-DD or other parseable date, after today plus the provider's minimum expiry days, or null, an empty or a whitespace-only value to clear it 2031-02-03
Request
PATCH/shipments/outbound/{outbound_shipment}/outbound-shipment-item/{outbound_shipment_item}
curl -X PATCH https://YOUR_DOMAIN/api/shipments/outbound/{outbound-shipment}/outbound-shipment-item/{outbound-shipment-item} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"quantity": 10,
"expiry_date": "2031-02-03"
}'Loading response...
DELETE/shipments/outbound/{outbound_shipment}/outbound-shipment-item/{outbound_shipment_item}
Remove a line from an outbound shipment
Removes a line with its stock moves and services, refusing a locked shipment unless a caller who may lock forces it.
Required attributes
- Name
outbound_shipment- Type
- string
- Description
- The ID of the outbound shipment 1001
- Name
outbound_shipment_item- Type
- string
- Description
- The ID of the shipment line, or the lower-case product UUID of its item 301
Optional attributes
- Name
force- Type
- boolean
- Description
- A true value such as 1, true, on or yes removes the line from a locked shipment for callers who may lock it 1
Request
DELETE/shipments/outbound/{outbound_shipment}/outbound-shipment-item/{outbound_shipment_item}
curl -X DELETE https://YOUR_DOMAIN/api/shipments/outbound/{outbound-shipment}/outbound-shipment-item/{outbound-shipment-item} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"Loading response...
