{"_id":"58112e72ded0340f0085d03f","version":{"_id":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":4,"createdAt":"2016-10-26T22:30:09.862Z","releaseDate":"2016-10-26T22:30:09.862Z","categories":["58112e72ded0340f0085d02b","58112e72ded0340f0085d02c","58112e72ded0340f0085d02d","58112e72ded0340f0085d02e","58112e72ded0340f0085d02f","58112e72ded0340f0085d030","58112e72ded0340f0085d031","58112e72ded0340f0085d032","58112e72ded0340f0085d033","58112e72ded0340f0085d034","581137cc604d3c230048b7e4","58dc367221742d0f00a73f98","590768e54669da0f00db5c0b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"new designer","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"58112e72ded0340f0085d030","version":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-25T20:14:44.667Z","from_sync":false,"order":4,"slug":"store-api-methods","title":"Store API Methods"},"parentDoc":null,"project":"551e85be610f400d00837db7","user":"55f2fd49b5b25021002b7dfd","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-25T21:15:40.270Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"_Method that provides [Inventory](doc:inventory) counts for ecom products._\n[block:html]\n{\n  \"html\": \"<div class=\\\"endpoint list\\\">\\n  <span class=\\\"method get\\\">GET</span>\\n  <span class=\\\"uri\\\">\\n    /v1/store/api/products/inventory\\n  </span>\\n</div>\"\n}\n[/block]\n# List inventory levels\n[block:html]\n{\n  \"html\": \"<div class=\\\"endpoint\\\">\\n  <span class=\\\"method get\\\">GET</span>\\n  <span class=\\\"uri\\\">\\n    /v1/store/api/products/inventory\\n  </span>\\n</div>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$.get('/v1/store/api/products/inventory/');\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  count: 1,\\n  next: \\\"?page=1\\\",\\n  prev: null,\\n  results: [\\n    {\\n      product_id: 9853,\\n      product_instance_id: 9854,\\n      on-hand: 16\\n    }\\n  ]\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"Inventory data object specification for the Cratejoy Merchant API","slug":"product-inventory-ecom-1","type":"basic","title":"ECom Inventory Methods"}

ECom Inventory Methods

Inventory data object specification for the Cratejoy Merchant API

_Method that provides [Inventory](doc:inventory) counts for ecom products._ [block:html] { "html": "<div class=\"endpoint list\">\n <span class=\"method get\">GET</span>\n <span class=\"uri\">\n /v1/store/api/products/inventory\n </span>\n</div>" } [/block] # List inventory levels [block:html] { "html": "<div class=\"endpoint\">\n <span class=\"method get\">GET</span>\n <span class=\"uri\">\n /v1/store/api/products/inventory\n </span>\n</div>" } [/block] [block:code] { "codes": [ { "code": "$.get('/v1/store/api/products/inventory/');", "language": "javascript" } ] } [/block] [block:code] { "codes": [ { "code": "{\n count: 1,\n next: \"?page=1\",\n prev: null,\n results: [\n {\n product_id: 9853,\n product_instance_id: 9854,\n on-hand: 16\n }\n ]\n}", "language": "javascript" } ] } [/block]