{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","settings":"","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"ECom Inventory Methods","type":"basic","slug":"product-inventory-ecom-1","excerpt":"Inventory data object specification for the Cratejoy Merchant API","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]","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"58112e72ded0340f0085d03f","version":{"version":"2.0","version_clean":"2.0.0","codename":"new designer","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["58112e72ded0340f0085d02b","58112e72ded0340f0085d02c","58112e72ded0340f0085d02d","58112e72ded0340f0085d02e","58112e72ded0340f0085d02f","58112e72ded0340f0085d030","58112e72ded0340f0085d031","58112e72ded0340f0085d032","58112e72ded0340f0085d033","58112e72ded0340f0085d034","581137cc604d3c230048b7e4","58dc367221742d0f00a73f98","590768e54669da0f00db5c0b"],"_id":"58112e71ded0340f0085d02a","createdAt":"2016-10-26T22:30:09.862Z","project":"551e85be610f400d00837db7","releaseDate":"2016-10-26T22:30:09.862Z","__v":4},"createdAt":"2015-09-25T21:15:40.270Z","githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Store API Methods","slug":"store-api-methods","order":4,"from_sync":false,"reference":false,"_id":"58112e72ded0340f0085d030","version":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":0,"createdAt":"2015-09-25T20:14:44.667Z"},"parentDoc":null,"project":"551e85be610f400d00837db7","user":"55f2fd49b5b25021002b7dfd","__v":0}

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]