Updates a restocking shipment while its status is created or shipped; in any other status the update is answered with 422 Unprocessable Entity.
The top-level properties you leave out keep their value. restocking_shipment_items always replaces the whole item list: leaving it out removes every item.
The response lists the items without their inventory_batches, which are always empty here.
How the shipment is delivered to the warehouse.
The estimated arrival date. A date-time is accepted too; its date is used.
The complete list of items in the shipment, replacing the current one.
Hive's ID of the destination warehouse, one of the merchant's warehouses (see GET /warehouses). A string of digits is accepted too.
- Mock serverhttps://hive-merchant-api.redocly.app/_mock/merchant-api-v1/mapi_v1_oas31/restocking_shipments/{id}
- Production APIhttps://app.hive.app/merchant_api/v1/restocking_shipments/{id}
- Staging APIhttps://staging.app.hive.app/merchant_api/v1/restocking_shipments/{id}
curl -i -X PUT \
'https://hive-merchant-api.redocly.app/_mock/merchant-api-v1/mapi_v1_oas31/restocking_shipments/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"estimated_arrival_date": "2022-12-05",
"restocking_shipment_items": [
{
"sku_id": 558,
"announced_quantity": 12
}
]
}'The updated restocking shipment
How the shipment is delivered to the warehouse.
Hive's ID of the merchant the restocking shipment belongs to.
The restocking shipment status:
created: created and not shipped yet.shipped: on the way to the warehouse. Restocking shipments created through the API start here.delivered: delivered to the warehouse, but its content is not checked yet.arrived: Hive completed the arrival documentation: the packing slip is checked, and pictures of the shipment and its documents are uploaded.processing: being unpacked, its items are being put into storage.restocked: fully processed, all its items are in storage.on_hold: processing is on hold.cancelled: cancelled.
{ "id": 13, "merchant_id": 1, "warehouse_id": 71, "estimated_arrival_date": "2022-12-01", "delivery_option": "postal", "tracking_code": "1234567", "po_number": null, "supplier_name": null, "status": "restocked", "barcode": "RS.13", "restocking_shipment_items": [ { … } ] }