Access Levels
Group: shop, products_and_categories
Resource: stock
Version: 1
GET https://api.create.net/products/:product_id/stock
Status: 200 OK
{ "stock_records" :[
{
ID : 12345,
stock_total: 10,
options: [{
ID: 1023305,
title: "Colour",
items: [{
ID: 5039609,
title: "Blue",
}]
}]
},
{
ID : 12346,
stock_total: 12,
options: [{
ID: 1023305,
title: "Colour",
items: [{
ID: 5039607,
title: "Red",
}]
}],
}
]}
PUT https://api.create.net/products/:product_id/stock/:stock_record_id
Param | Type | Required | Description |
---|---|---|---|
stock_level | INT | Required | What number to update this record's stock level to |
Status: 200 OK
Location: http://api.create.net/products/2455436/stock/12345
{ stock_record :
{
ID : 12345,
stock_total: 100,
options: [{
ID: 1023305,
title: "Colour",
items: [{
ID: 5039609,
title: "Blue",
}]
}]
}
}
DELETE https://api.create.net/products/:product_id/stock/:stock_record_id
Status: 200 OK