POST /variant-warehouses.json

POST /variant-warehouses.json
application/json

Body Required

  • binLocation string | null

    Bin location

    Maximum length is 255.

  • inventoryQuantity integer(int32) Required

    Inventory quantity

    Default value is 0.

  • variantId integer(int32) Required

    Variant

  • warehouseId integer(int32) Required

    Warehouse

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • binLocation string | null

      Bin location

      Maximum length is 255.

    • createdAt string(date-time)

      Created at

    • id integer(int32)

      Id

    • inventoryQuantity integer(int32) Required

      Inventory quantity

      Default value is 0.

    • updatedAt string(date-time)

      Updated at

    • variantId integer(int32) Required

      Variant

    • warehouseId integer(int32) Required

      Warehouse

POST /variant-warehouses.json
curl \
 --request POST 'http://api.example.com/v1/variant-warehouses.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"binLocation":"string","inventoryQuantity":0,"variantId":42,"warehouseId":42}'
Request examples
{
  "binLocation": "string",
  "inventoryQuantity": 0,
  "variantId": 42,
  "warehouseId": 42
}
Response examples (200)
{
  "binLocation": "string",
  "createdAt": "2025-05-04T09:42:00Z",
  "id": 42,
  "inventoryQuantity": 0,
  "updatedAt": "2025-05-04T09:42:00Z",
  "variantId": 42,
  "warehouseId": 42
}