POST /variant-warehouses.json
Body Required
-
binLocation string | null
Bin location
Maximum length is
255
. -
Inventory quantity
Default value is
0
. -
Variant
-
Warehouse
POST
/variant-warehouses.json
curl \
-X POST http://api.example.com/v1/variant-warehouses.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"binLocation":"string","inventoryQuantity":0,"variantId":42,"warehouseId":42}'
Request example
{
"binLocation": "string",
"inventoryQuantity": 0,
"variantId": 42,
"warehouseId": 42
}
Response examples (200)
{
"binLocation": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"id": 42,
"inventoryQuantity": 0,
"updatedAt": "2024-05-04T09:42:00+00:00",
"variantId": 42,
"warehouseId": 42
}