Stock Status v2 (deprecated)
Inform Gelato about changes in product inventory. Following statuses can be posted back to Gelato:
- in-stock - use when a product is back in stock
- out-of-stock - use when a product goes out of stock
POST /v2/stock/status
Request example
{
"SKU": "001-HOODIE-YEL-XL",
"status": "out-of-stock",
"quantity": 50
}
Success response example
{
"message": "product status has been updated"
}
Error response example
{
"error": "status is not supported"
}
Request
Parameter | Type | Description |
---|---|---|
SKU (required) | string | SKU of the product. Sample: 001-HOODIE-YEL-XL. |
status (required) | string | One of the supported values (see below): • in-stock - use when a product is back in stock • out-of-stock - use when a product goes out of stock. Sample: out-of-stock. |
quantity (optional) | number | Number of items in stock. Must be greater than or equal to 0 Sample: 50. |
Success response
Parameter | Type | Description |
---|---|---|
message (required) | string | The message with the success. Sample: subscribed webhook. |
Error response
Parameter | Type | Description |
---|---|---|
error (required) | string | The message with the error. Sample: invalid request. |