Inbound Shipment Items
List items for an inbound shipment
Get the list of items (expected, actual, and unsellable) for an inbound shipment.
Required attributes
- Name
inbound_shipment- Type
- integer
- Description
- The ID of the inbound shipment 1001
Optional attributes
- Name
item_ids- Type
- array<integer>
- Description
- Filter to a specific list of item IDs
Request
curl -G https://YOUR_DOMAIN/api/shipments/inbound/{inbound-shipment}/items \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"Add an item to an inbound shipment
Add an inventory item with a specified quantity to the shipment. Provide exactly one of item_id or product_uuid.
Required attributes
- Name
inbound_shipment- Type
- integer
- Description
- The ID of the inbound shipment 1001
- Name
quantity- Type
- integer
- Description
- The expected quantity of the item 10
Required: exactly one of item_id or product_uuid
Send one of these attributes and omit the others.
- Name
item_id- Type
- integer
- Description
- The integer inventory item ID to add. Resolve it from GET /inventory using merchant_skus[] or product_uuids[]. To use a product UUID instead, pass product_uuid and omit item_id. 42
- Name
product_uuid- Type
- string
- Description
- The UUID of the inventory item to add, as an alternative to item_id 0195a620-9847-7020-b9b9-0c196baaec01
Request
curl -X POST https://YOUR_DOMAIN/api/shipments/inbound/{inbound-shipment}/add-item \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"item_id": 42,
"quantity": 10
}'Update an item on an inbound shipment
Update the expected and actual quantities for an item on an inbound shipment. Provide exactly one of item_id or product_uuid. Both expected and actual are required, including quantity and item_group_configurations in each, even for merchant tokens. Send an empty array for item_group_configurations when there are no group configurations. Actual quantities are only applied when the user has service provider receiving permission; merchant-supplied actual values are validated but ignored.
Required attributes
- Name
inbound_shipment- Type
- integer
- Description
- The ID of the inbound shipment 1001
- Name
expected- Type
- object
- Description
- Expected quantity update
- Name
expected.quantity- Type
- integer
- Description
- The new expected quantity 10
- Name
expected.item_group_configurations- Type
- array<ItemGroupConfiguration>
- Description
- Required group configuration summaries. Send [] when there are no group configurations.
- Name
expected.item_group_configurations.*.configuration_id- Type
- integer
- Description
- Name
expected.item_group_configurations.*.quantity- Type
- integer
- Description
- Name
expected.item_group_configurations.*.partial_quantity- Type
- integer
- Description
- Name
actual- Type
- object
- Description
- Required for validation for all callers. Only applied when the user has service provider receiving permission.
- Name
actual.quantity- Type
- integer
- Description
- The new actual received quantity 8
- Name
actual.item_group_configurations- Type
- array<ItemGroupConfiguration>
- Description
- Required group configuration summaries. Send [] when there are no group configurations.
- Name
actual.item_group_configurations.*.configuration_id- Type
- integer
- Description
- Name
actual.item_group_configurations.*.quantity- Type
- integer
- Description
- Name
actual.item_group_configurations.*.partial_quantity- Type
- integer
- Description
Required: exactly one of item_id or product_uuid
Send one of these attributes and omit the others.
- Name
item_id- Type
- integer
- Description
- The integer inventory item ID to update. Resolve it from GET /inventory using merchant_skus[] or product_uuids[]. To use a product UUID instead, pass product_uuid and omit item_id. 42
- Name
product_uuid- Type
- string
- Description
- The UUID of the inventory item to update, as an alternative to item_id 0195a620-9847-8020-b9b9-0c196baaec01
Optional attributes
- Name
actual.moves- Type
- array<Move>
- Description
- Stock move data
Request
curl -X POST https://YOUR_DOMAIN/api/shipments/inbound/{inbound-shipment}/update-item \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"item_id": 42,
"expected": {
"quantity": 10,
"item_group_configurations": [
{
"configuration_id": 1,
"quantity": 1,
"partial_quantity": 1
}
]
},
"actual": {
"quantity": 8,
"item_group_configurations": [
{
"configuration_id": 1,
"quantity": 1,
"partial_quantity": 1
}
],
"moves": []
}
}'Remove an item from an inbound shipment
Remove an inventory item from an inbound shipment. Provide exactly one of item_id or product_uuid.
Required attributes
- Name
inbound_shipment- Type
- integer
- Description
- The ID of the inbound shipment 1001
Required: exactly one of item_id or product_uuid
Send one of these attributes and omit the others.
- Name
item_id- Type
- integer
- Description
- The integer inventory item ID to remove. To use a product UUID instead, pass product_uuid and omit item_id. 42
- Name
product_uuid- Type
- string
- Description
- The UUID of the inventory item to remove, as an alternative to item_id 0195a620-9847-8020-b9b9-0c196baaec01
Request
curl -X POST https://YOUR_DOMAIN/api/shipments/inbound/{inbound-shipment}/remove-item \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"item_id": 42
}'