Creates a new restocking shipment for the merchant.
Security
BearerAuth
Delivery option for the restocking shipment. Possible values:
- courier: Delivered by courier service
- dropoff: Dropped off at designated location
- hive_freight: Delivered using Hive freight service
- postal: Delivered via postal service
Enum:"courier""dropoff""hive_freight""postal"
A list of items in the shipment. See RestockingShipmentItem.
- Mock serverhttps://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/restocking_shipments
- Production APIhttps://app.hive.app/merchant_api/v2/restocking_shipments
- Staging APIhttps://staging.app.hive.app/merchant_api/v2/restocking_shipments
- object
- object (2)
curl -i -X POST \
https://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/restocking_shipments \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"delivery_option": "courier",
"estimated_arrival_date": "2023-09-20",
"po_number": "PO-2023-001",
"restocking_shipment_items": [
{
"sku_id": 1001,
"sku_code": "SKU-001",
"announced_quantity": 50,
"remarks": "All items in good condition",
"total_cost_in_cents": 50000,
"inventory_batch_id": 12345
}
],
"supplier_name": "Acme Supplies",
"tracking_code": "TRACK-12345",
"warehouse_id": 2
}'Restocking shipment created successfully
Delivery option for the restocking shipment. Possible values:
- courier: Delivered by courier service
- dropoff: Dropped off at designated location
- hive_freight: Delivered using Hive freight service
- postal: Delivered via postal service
Enum:"courier""dropoff""hive_freight""postal"
A list of items in the shipment. See RestockingShipmentItem.
Restocking shipment status. Possible values:
- arrived: Hive completed the arrival documentation, checked packing slip, picture of shipment and documents are uploaded
- cancelled: the restocking shipment is cancelled by merchant
- created: the restocking shipment is created and not yet shipped
- processing: the restocking shipment is getting unpacked and its items are getting restocked into storage boxes and pallets
- received: the restocking shipment is delivered to the fulfillment center, but its content is not verified yet
- restocked: the restocking shipment is fully processed in the fulfillment center and its items are completely restocked
- shipped: initial status meaning that restocking shipment is on the way
Enum:"arrived""cancelled""created""processing""received""restocked""shipped"
Response
{ "id": 98765, "barcode": "SHIP-2023-0001", "created_at": "2023-09-15T09:00:00Z", "delivery_option": "courier", "estimated_arrival_date": "2023-09-20", "po_number": "PO-2023-001", "restocking_shipment_items": [ { … } ], "status": "arrived", "supplier_name": "Acme Supplies", "tracking_code": "TRACK-12345", "updated_at": "2023-09-20T10:00:00Z", "warehouse_id": 2 }