Product

Updated inventory of many variations

Update inventory quantity for multiple variations

post/shops/{SHOP_ID}/variations/update_quantity

Path parameters

SHOP_IDinteger required
Example:4

Shop ID

Request body

is_actual_remain_quantityboolean

true: Update inventory, false: Update sellable quantity

Example request

{
  "is_actual_remain_quantity": true,
  "variations_warehouses": [
    {
      "variation_id": "20e7d183-c70c-445e-8ce2-4d7e3a378e34",
      "remain_quantity": 15,
      "warehouse_id": "229102e4-39c3-4523-bd57-4ed0a45a85ba"
    },
    {
      "variation_id": "5f0cfb8d-aee9-4ec0-9ff0-b5668d3143d2",
      "remain_quantity": 15,
      "warehouse_id": "24c4447e-c35f-4acc-affa-70e49eb354d1"
    }
  ]
}

Response

Success

successboolean

Success status

Changes

No recorded changes to this endpoint across all 1 revision of this API.