Create. API

Stock

Access Levels
Group: shop, products_and_categories
Resource: stock
Version: 1

List stock records for a product

GET 	https://api.create.net/products/:product_id/stock

Response

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",
	        }]
	    }],
	}
]}

Update Stock Level

PUT 	https://api.create.net/products/:product_id/stock/:stock_record_id

Input

Param Type Required Description
stock_level INT Required What number to update this record's stock level to

Response

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 a stock record

DELETE 	https://api.create.net/products/:product_id/stock/:stock_record_id

Response

Status: 200 OK