{"__v":0,"_id":"580c62584dbbd50f0022465d","category":{"__v":0,"_id":"580c5ff36c35230f003d3b49","project":"55a4d5531a5f991700a9409e","version":"575676128749830e00681e82","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-10-23T07:00:03.004Z","from_sync":false,"order":7,"slug":"integration-alternatives","title":"Inventory Management"},"parentDoc":null,"project":"55a4d5531a5f991700a9409e","user":"5722212fdcfa860e005befed","version":{"__v":2,"_id":"575676128749830e00681e82","project":"55a4d5531a5f991700a9409e","createdAt":"2016-06-07T07:21:54.005Z","releaseDate":"2016-06-07T07:21:54.005Z","categories":["575676128749830e00681e83","575676128749830e00681e84","575676128749830e00681e85","575676128749830e00681e86","575676128749830e00681e87","575676128749830e00681e88","575676128749830e00681e89","575676128749830e00681e8a","575676128749830e00681e8b","580c5ff36c35230f003d3b49"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-23T07:10:16.323Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"This is a RESTful interface exposing Create, Update Product, article, image and stock level information. Same data \n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Your own product id reference\",\n    \"1-2\": \"Name of the product\",\n    \"0-0\": \"productId\",\n    \"1-0\": \"name\",\n    \"0-1\": \"\",\n    \"1-1\": \"\",\n    \"2-0\": \"description\",\n    \"3-0\": \"brand\",\n    \"4-0\": \"vat\",\n    \"5-0\": \"enabled\",\n    \"6-0\": \"images\",\n    \"7-0\": \"tags\",\n    \"8-0\": \"sku\",\n    \"9-0\": \"gtin (optional)\",\n    \"10-0\": \"article_name\",\n    \"11-0\": \"article_description\",\n    \"12-0\": \"price\",\n    \"13-0\": \"attributes\",\n    \"14-0\": \"articles_images\",\n    \"15-0\": \"stock\",\n    \"2-2\": \"Verbose description of the produc\",\n    \"3-2\": \"Brand of the Product\",\n    \"4-2\": \"VAT percentage, in integer format\",\n    \"5-2\": \"If enabled, the product will be exposed in all API interfaces\",\n    \"6-2\": \"list of URL:s to the product images, separated by |\",\n    \"7-2\": \"Metadata tags, used for categorisation, separated by |\",\n    \"8-2\": \"Unique SKU for the given article\",\n    \"9-2\": \"Global Trade Identification Number, max 14 digits. Supports EAN-8, EAN-13, UPC, UCC, ITF, CIP\",\n    \"10-2\": \"Name of the article\",\n    \"11-2\": \"Verbose description of the article\",\n    \"12-2\": \"Article price in decimal form. Decimal separator is . (dot)\",\n    \"13-2\": \"Article attributes, indicating the specific product variant. Format is key:value, separated by |\",\n    \"14-2\": \"list of URL:s to the article images, separated by |\",\n    \"15-2\": \"Current stock level of the article\"\n  },\n  \"cols\": 3,\n  \"rows\": 16\n}\n[/block]\nSamples Request and Responses will be provided later\n\nBelow is a rough sample of the JSON that will be used\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"JSONData = { \\n \\\"productId\\\" = \\\"12345ABC\\\", \\n \\\"name\\\" = \\\"6 Strawberry Cupcakes\\\", \\n \\\"description\\\" = \\\"Carefully crafted cupcakes, crunchy cookie crumbles with creamy custard.\\\", \\n \\\"brand\\\" = \\\"Karma\\\", \\n \\\"vat\\\" = \\\"25\\\", \\n \\\"enabled\\\"= \\\"true\\\", \\n   \\\"images\\\" = 'http://www.roseborn.com/media/catalog/product/cache/1/image/452x/040ec09b1e35df139433887a97daa66f/r/o/roseborn29_21678_kopia_.jpg\\\", \\n\\\"tags\\\" = \\\"Sweets|Cupcakes|Food\\\", \\n\\\"sku\\\" = \\\"SE5678312\\\", \\n\\\"gtin\\\" = \\\"71345344621112\\\", \\n\\\"article_name\\\" = \\\"6 Strawberry Cupcakes\\\", \\n\\\"article_description\\\" = \\\"Carefully crafted cupcakes, crunchy cookie crumbles with creamy, custard.\\\", \\n\\\"price\\\" = \\\"50.00\\\", \\n\\\"attributes\\\" = \\\"color:blue|size:medium\\\", \\n\\\"articles_images\\\"= \\\"www.example.com/images/product1.png|www.example.com/images/product2.jpg\\\", \\n\\\"stock\\\" = \\\"5\\\" \\n  } \",\n      \"language\": \"json\",\n      \"name\": \"Sample JSON\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"inventory-sync","type":"basic","title":"Inventory sync"}

Inventory sync


This is a RESTful interface exposing Create, Update Product, article, image and stock level information. Same data [block:parameters] { "data": { "h-0": "Field", "h-1": "Type", "h-2": "Description", "0-2": "Your own product id reference", "1-2": "Name of the product", "0-0": "productId", "1-0": "name", "0-1": "", "1-1": "", "2-0": "description", "3-0": "brand", "4-0": "vat", "5-0": "enabled", "6-0": "images", "7-0": "tags", "8-0": "sku", "9-0": "gtin (optional)", "10-0": "article_name", "11-0": "article_description", "12-0": "price", "13-0": "attributes", "14-0": "articles_images", "15-0": "stock", "2-2": "Verbose description of the produc", "3-2": "Brand of the Product", "4-2": "VAT percentage, in integer format", "5-2": "If enabled, the product will be exposed in all API interfaces", "6-2": "list of URL:s to the product images, separated by |", "7-2": "Metadata tags, used for categorisation, separated by |", "8-2": "Unique SKU for the given article", "9-2": "Global Trade Identification Number, max 14 digits. Supports EAN-8, EAN-13, UPC, UCC, ITF, CIP", "10-2": "Name of the article", "11-2": "Verbose description of the article", "12-2": "Article price in decimal form. Decimal separator is . (dot)", "13-2": "Article attributes, indicating the specific product variant. Format is key:value, separated by |", "14-2": "list of URL:s to the article images, separated by |", "15-2": "Current stock level of the article" }, "cols": 3, "rows": 16 } [/block] Samples Request and Responses will be provided later Below is a rough sample of the JSON that will be used [block:code] { "codes": [ { "code": "JSONData = { \n \"productId\" = \"12345ABC\", \n \"name\" = \"6 Strawberry Cupcakes\", \n \"description\" = \"Carefully crafted cupcakes, crunchy cookie crumbles with creamy custard.\", \n \"brand\" = \"Karma\", \n \"vat\" = \"25\", \n \"enabled\"= \"true\", \n \"images\" = ‘http://www.roseborn.com/media/catalog/product/cache/1/image/452x/040ec09b1e35df139433887a97daa66f/r/o/roseborn29_21678_kopia_.jpg\", \n\"tags\" = \"Sweets|Cupcakes|Food\", \n\"sku\" = \"SE5678312\", \n\"gtin\" = \"71345344621112\", \n\"article_name\" = \"6 Strawberry Cupcakes\", \n\"article_description\" = \"Carefully crafted cupcakes, crunchy cookie crumbles with creamy, custard.\", \n\"price\" = \"50.00\", \n\"attributes\" = \"color:blue|size:medium\", \n\"articles_images\"= \"www.example.com/images/product1.png|www.example.com/images/product2.jpg\", \n\"stock\" = \"5\" \n } ", "language": "json", "name": "Sample JSON" } ] } [/block]