{"info":{"_postman_id":"e43510f9-842a-4ce0-9c74-b07aeddc7733","name":"iStockist API v21.4.21 - Public","description":"<html><head></head><body><hr>\n<p><a href=\"https://www.istockist.com/support/\">Back to iStockist Support</a></p>\n<hr>\n<h1 id=\"api-reference\">API Reference</h1>\n<p>The iStockist API is organized around <a href=\"https://en.wikipedia.org/wiki/Representational_State_Transfer\">REST</a>. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients. We support <a href=\"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing\">cross-origin resource sharing</a>, allowing you to interact securely with our API from a client-side web application (though you should never expose your secret API key in any public website's client-side code). JSON is returned by all API responses, including errors, although our API libraries convert responses to appropriate language-specific objects.</p>\n<hr>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Authenticate your account when using the API by including your API key and password in the request. You can manage your API keys in the Dashboard. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such GitHub, client-side code, and so forth.</p>\n<p>Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value and your API secret as the basic auth password value.</p>\n<p>All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.</p>\n<hr>\n<h1 id=\"errors\">Errors</h1>\n<p>iStockist uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.), and codes in the 5xx range indicate an error with iStockist's servers (these are rare).</p>\n<p>Not all errors map cleanly onto HTTP response codes, however. When a request is valid but does not complete successfully (e.g., an order is declined), we return a 402 error code. To understand why an order is declined, refer to the list of codes in the documentation.</p>\n<p>HTTP status code summary</p>\n<p>ARGUMENTS</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>Everything worked as expected.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>The request was unacceptable, often due to missing a required parameter.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>No valid API key provided.</td>\n</tr>\n<tr>\n<td>402</td>\n<td>Request Failed</td>\n<td>The parameters were valid but the request failed.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>The requested resource doesn't exist.</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Conflict</td>\n<td>The request conflicts with another request (perhaps due to using the same idempotent key).</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n<td>Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.</td>\n</tr>\n<tr>\n<td>500, 502, 503, 504</td>\n<td>Server Errors</td>\n<td>Something went wrong on iStockists's end. (These are rare.)</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"handling-errors\">Handling errors</h1>\n<p>Our API libraries raise exceptions for many reasons, such as a failed orders, invalid parameters, authentication errors, and network unavailability. We recommend writing code that gracefully handles all possible API exceptions.</p>\n<hr>\n<h1 id=\"idempotent-requests\">Idempotent Requests</h1>\n<p>The API supports <a href=\"https://en.wikipedia.org/wiki/Idempotence\">idempotency</a> for safely retrying requests without accidentally performing the same operation twice. For example, if a request to create an order fails due to a network connection error, you can retry the request with the same universally unique identifier (uuid) to guarantee that only a single order is created.</p>\n<p>We recommend using <a href=\"https://en.wikipedia.org/wiki/Universally_unique_identifier\">V4 UUIDs</a>. We recommend that every POST request has unique identifiers. </p>\n<p>To help you get started with generating uuids for test purposes, here's an article on <a href=\"https://www.istockist.com/support/generating-universally-unique-ids-uuids/\">generating universally unique ids</a> providing links to libraries in various server-side languages here.</p>\n<hr>\n<h1 id=\"versioning\">Versioning</h1>\n<p>When we make backwards-incompatible changes to the API, we release new, dated versions. The current version is 2021-03-15.</p>\n<p>Read our API upgrades guide to see our API changelog and to learn more about backwards compatibility.</p>\n<p>All requests will use your account API settings, unless you override the API version. The changelog lists every available version. Note that events generated by API requests will always be structured according to your account API version.</p>\n<p>To set the API version on a specific request, send a iStockist-Version header.</p>\n<p>You can visit your Dashboard to upgrade your API version. As a precaution, use API versioning to test a new API version before committing to an upgrade.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"API Reference","slug":"api-reference"},{"content":"Authentication","slug":"authentication"},{"content":"Errors","slug":"errors"},{"content":"Handling errors","slug":"handling-errors"},{"content":"Idempotent Requests","slug":"idempotent-requests"},{"content":"Versioning","slug":"versioning"}],"owner":"107212","collectionId":"e43510f9-842a-4ce0-9c74-b07aeddc7733","publishedId":"Tz5s5ck7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-16T16:14:08.000Z"},"item":[{"name":"Customers","item":[{"name":"Create/update customer - min fields","id":"50313271-2e2c-4082-b96f-d5d371a2942f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n        \"name\":\"Customer Name\",\r\n        \"code\":\"CUST001\",\r\n        \"contacts\":[\r\n                {\r\n                        \"email\":\"owen+newcustomer@istockist.com\", \r\n                }\r\n        ]\r\n}"},"url":"https://api.istockist.com/api/v1/companies","description":"<p>Creates a new customer object.</p>\n<h2 id=\"detailed-fields\">Detailed Fields</h2>\n<p>See Customer defintion above and sample data in  'Create a customer - full definition'</p>\n<h2 id=\"minimum-fields\">Minimum fields</h2>\n<p>The required data to create a customer is </p>\n<ul>\n<li>the name of the customer </li>\n<li>a minimum of one contact email for the customer.</li>\n</ul>\n<p>You can also send a uuid for this customer to track the create customer request. </p>\n<p>Unique identifier: Once the the customer is created in iStockist, you'll get back an _id field in the response which you can use to track the customer in iStockist.</p>\n<p>ARGUMENTS</p>\n<hr />\n","urlObject":{"protocol":"https","path":["api","v1","companies"],"host":["api","istockist","com"],"query":[],"variable":[]}},"response":[{"id":"bf336035-6e67-4987-bb48-c0486bb34834","name":"Create a Customer - Full Definition","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic auth"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n        \"name\":\"Temystocles TP1\",\r\n        \"code\":\"partner code 123\",\r\n        \"uuid\":\"00000000-0000-0000-0000-000000000001\",\r\n        \"VATNumber\":\"vn1111111\",\r\n        \"contacts\":[\r\n                {\r\n                        \"email\":\"temystocles+test+post1@productfitter.com\", \r\n                        \"firstName\":\"Temystocles tp1\",\r\n                        \"lastName\":\"Medeiros tp1\"\r\n                },{\r\n                        \"email\":\"temystocles+test+post2@productfitter.com\", \r\n                        \"firstName\":\"Temystocles tp2\",\r\n                        \"lastName\":\"Medeiros tp2\"\r\n                },{\r\n                        \"email\":\"temystocles+test+post3@productfitter.com\", \r\n                        \"firstName\":\"Temystocles tp3\",\r\n                        \"lastName\":\"Medeiros tp3\"\r\n                },{\r\n                        \"email\":\"temystocles+test+post4@productfitter.com\", \r\n                        \"firstName\":\"Temystocles tp4\",\r\n                        \"lastName\":\"Medeiros tp4\"\r\n                }\r\n        ],\r\n        \"addresses\":[\r\n                {\r\n                        \"name\":\"The address 1\",\r\n                        \"address\":\"Street1\",\r\n                        \"country\":\"IE\",\r\n                        \"state\":\"Dublin\",\r\n                        \"city\":\"Dublin\",\r\n                        \"zipCode\":\"ZC00000\",\r\n                        \"type\":\"1\"\r\n                },{\r\n                        \"name\":\"The address 2\",\r\n                        \"address\":\"Street2\",\r\n                        \"country\":\"IE\",\r\n                        \"state\":\"Dublin\",\r\n                        \"city\":\"Dublin\",\r\n                        \"zipCode\":\"ZC99999\",\r\n                        \"type\":\"2\"\r\n                },{\r\n                        \"name\":\"The address 3\",\r\n                        \"address\":\"Street3\",\r\n                        \"country\":\"IE\",\r\n                        \"state\":\"Dublin\",\r\n                        \"city\":\"Dublin\",\r\n                        \"zipCode\":\"ZC99999\",\r\n                        \"type\":\"2\"\r\n                }\r\n        ]\r\n}"},"url":"https://api.istockist.com/api/v1/companies"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"name\": \"Temystocles TP1\",\n    \"code\": \"partner code 123\",\n    \"uuid\": \"00000000-0000-0000-0000-000000000001\",\n    \"VATNumber\": \"vn1111111\",\n    \"contacts\": [\n        {\n            \"email\": \"temystocles+test+post1@productfitter.com\",\n            \"firstName\": \"Temystocles tp1\",\n            \"lastName\": \"Medeiros tp1\"\n        },\n        {\n            \"email\": \"temystocles+test+post2@productfitter.com\",\n            \"firstName\": \"Temystocles tp2\",\n            \"lastName\": \"Medeiros tp2\"\n        },\n        {\n            \"email\": \"temystocles+test+post3@productfitter.com\",\n            \"firstName\": \"Temystocles tp3\",\n            \"lastName\": \"Medeiros tp3\"\n        },\n        {\n            \"email\": \"temystocles+test+post4@productfitter.com\",\n            \"firstName\": \"Temystocles tp4\",\n            \"lastName\": \"Medeiros tp4\"\n        }\n    ],\n    \"addresses\": [\n        {\n            \"name\": \"The address 1\",\n            \"address\": \"Street1\",\n            \"country\": \"IE\",\n            \"state\": \"Dublin\",\n            \"city\": \"Dublin\",\n            \"zipCode\": \"ZC00000\",\n            \"type\": \"1\"\n        },\n        {\n            \"name\": \"The address 2\",\n            \"address\": \"Street2\",\n            \"country\": \"IE\",\n            \"state\": \"Dublin\",\n            \"city\": \"Dublin\",\n            \"zipCode\": \"ZC99999\",\n            \"type\": \"2\"\n        },\n        {\n            \"name\": \"The address 3\",\n            \"address\": \"Street3\",\n            \"country\": \"IE\",\n            \"state\": \"Dublin\",\n            \"city\": \"Dublin\",\n            \"zipCode\": \"ZC99999\",\n            \"type\": \"2\"\n        }\n    ],\n    \"_id\": \"599c37fae7d0178808549fb2\"\n}"}],"_postman_id":"50313271-2e2c-4082-b96f-d5d371a2942f"},{"name":"List all customers","id":"fbe43e54-d0e2-4719-a10f-5846a49281ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.istockist.com/api/v1/companies","description":"<p>Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.</p>\n<h2 id=\"arguments\">ARGUMENTS</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>TBA</td>\n<td>optional</td>\n<td>Filters such as pagination will be opened in coming weeks.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"returns\">Returns</h2>\n<p>An array that contains the filtered list of customers. Each entry in the array is a separate customer object. If no more customers are available, the resulting array will be empty. This request should never raise an error.</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies"],"host":["api","istockist","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbe43e54-d0e2-4719-a10f-5846a49281ed"}],"id":"8d44c1a6-62c6-495e-a056-ab63b25cabbf","description":"<p>Customer objects allow you to perform recurring orders and track multiple orders that are associated with the same customer. The API allows you to create your customers. You can retrieve individual customers as well as a list of all your customers.</p>\n<hr />\n<h1 id=\"customer-object\">Customer Object</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The customer's company name</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Yes</td>\n<td>The customer's company code</td>\n</tr>\n<tr>\n<td>contacts</td>\n<td>array</td>\n<td>Yes</td>\n<td>A list of contacts for the customer</td>\n</tr>\n<tr>\n<td>addresses</td>\n<td>array</td>\n<td>No</td>\n<td>A list of addresses for the customer</td>\n</tr>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>No</td>\n<td>Unique identifier for the object. Generated by iStockist</td>\n</tr>\n<tr>\n<td>uuid</td>\n<td>string</td>\n<td>No</td>\n<td>The idempotent identifier for the object. If you are creating new customers, you can generate a uuid and send it in the customer object to keep track of the object until it is successfuly created in iStockist. You will get the uuid and the _id in the reponse for successfully created object. Once the object is created, use the _id to keep track of the object.</td>\n</tr>\n<tr>\n<td>vatNumber</td>\n<td>string</td>\n<td>No</td>\n<td>The customer's company vat number</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"customercontacts\">customer.contacts</h1>\n<p>You can create/update the list of users who can purchase on behalf of the customer. For each contact, inside customer.contacts, please send in the email as a mandatory field, and you can also send in the firstName, lastName as optional fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Yes</td>\n<td>The contact person's email. This is the unique identifier for the contact.</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>string</td>\n<td>No</td>\n<td>The contact person's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string</td>\n<td>No</td>\n<td>The contact person's last name</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"customeraddresses\">customer.addresses</h1>\n<p>You can create/update the list of delivery/billing addresses for the customer. For each one, inside customer.addresses, please send in the street address, city and country as mandatory fields. You can also send in the zipCode, state, and address name as optional fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Yes</td>\n<td>Address line (Street address/PO Box/Company name/Apartment/Suite/Unit/Building).</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>Yes</td>\n<td>The ISO 2 digit country code. <a href=\"https://www.istockist.com/support/countries-iso-country-codes/\">List of country codes</a></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>Yes</td>\n<td>City/District/Suburb/Town/Village.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>No</td>\n<td>The address name or description</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>No</td>\n<td>State/County/Province/Region.</td>\n</tr>\n<tr>\n<td>zipCode</td>\n<td>string</td>\n<td>No</td>\n<td>Zip/Postal Code.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>number</td>\n<td>No</td>\n<td>1 = Billing, 2 = Delivery. Delivery is the default type of address.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"8d44c1a6-62c6-495e-a056-ab63b25cabbf"},{"name":"Products","item":[{"name":"Create/update products - min. fields","id":"e09d6d51-92bb-40e6-b6bd-5fb223ae8b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Basic {{basic_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"code\": \"APP7\",\r\n        \"name\": \"Apples x7\"\r\n    }\r\n]"},"url":"https://api.istockist.com/api/v1/items","description":"<p>Creates a new product.</p>\n<p>The required data to create a product is </p>\n<ul>\n<li>the name of the product </li>\n<li>the code for the product</li>\n</ul>\n<p>You can also send a uuid for this product to track the create product request. </p>\n<p>Unique identifier: Once the the customer is created in iStockist, you'll get back an _id field in the response which you can use to track the customer in iStockist.</p>\n<p>ARGUMENTS</p>\n<hr />\n","urlObject":{"protocol":"https","path":["api","v1","items"],"host":["api","istockist","com"],"query":[],"variable":[]}},"response":[{"id":"da04059a-1ca9-4adf-b377-6a819cee520c","name":"Create a Product - Full Definition","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic auth"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"code\": \"APP6\",\r\n        \"name\": \"Apples x6\",\r\n        \"description\": \"Six fresh organic apples in a biodegradable tray\",\r\n        \"price\": 3.00,\r\n        \"size\": \"x6\",\r\n        \"barcode\": \"ABC\",\r\n        \"available\": true,\r\n        \"hide\": false,\r\n        \"category\": {\r\n            \"name\": \"Fruit\"\r\n        },\r\n        \"images\": [\r\n            {\r\n                \"name\": \"11360c3da19776d70d0d50a8b4af99e8.png\"\r\n            }\r\n        ],\r\n        \"prices\": [//You can set one or more prices for each product\r\n            {\r\n                \"value\": 1.50,\r\n                \"template\": {\r\n                    \"name\": \"Wholesale Template\"//A template price used on multiple wholesale stores\r\n                }\r\n            },\r\n            {\r\n                \"value\": 3.00,\r\n                \"store\": {\r\n                    \"name\": \"Public\"//A price displayed in the public eCommerce store\r\n                }\r\n            }\r\n        ],\r\n        \"stock\": [//You can hold stock of each product in one or more warehouses\r\n            {\r\n                \"onHand\": 200, \r\n                \"allocated\": 40,\r\n                \"warehouse\": {\r\n                    \"name\": \"Main Warehouse\",\r\n                    \"code\": \"WH001\"\r\n                }\r\n            }\r\n        ],\r\n        \"attributes\": [//You can add as many product attributes as you need for each product\r\n            {\r\n                \"value\": \"12345\",\r\n                \"attribute\": {\r\n                    \"label\": \"ERP SKU\"\r\n                }\r\n            },\r\n            {\r\n                \"value\": \"Trays\",\r\n                \"attribute\": {\r\n                    \"label\": \"Packaging\"\r\n                }\r\n            }\r\n        ],\r\n        \"units\": [//You can optionally sell in larger quantities,e.g a box or pallet of x units\r\n            {\r\n                \"unit\": {\r\n                    \"name\": \"Box\"\r\n                },\r\n                \"quantity\": 10 //In this case a box is equal to 10 x \"Apples x6\"\r\n            },\r\n            {\r\n                \"unit\": {\r\n                    \"name\": \"Single\"\r\n                },\r\n                \"quantity\": 1 //In this case a single will be 1 x \"Apples x6\"\r\n            }\r\n        ]\r\n    }   \r\n]"},"url":"https://api.istockist.com/api/v1/items"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"True"}],"_postman_id":"e09d6d51-92bb-40e6-b6bd-5fb223ae8b5c"},{"name":"List all Products","id":"6a2052b1-cce0-4561-9829-5b03a7ef940c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.istockist.com/api/v1/items","description":"<p>Returns a list of your products. The products are returned sorted by creation date, with the most recent products appearing first.</p>\n<h2 id=\"arguments\">ARGUMENTS</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>TBA</td>\n<td>optional</td>\n<td>Filters such as pagination will be opened in coming weeks.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"returns\">Returns</h2>\n<p>An array that contains the filtered list of products. Each entry in the array is a separate product object. If no more products are available, the resulting array will be empty. This request should never raise an error.</p>\n","urlObject":{"protocol":"https","path":["api","v1","items"],"host":["api","istockist","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a2052b1-cce0-4561-9829-5b03a7ef940c"}],"id":"951ef645-5a1e-4210-9a98-e459dc11927f","description":"<p>Products objects allow you to perform recurring orders and track multiple orders that are associated with the same product. The API allows you to create your products. You can retrieve individual products as well as a list of all your products.</p>\n<hr />\n<h1 id=\"product-object\">Product Object</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier for the product. You can pass in this code</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The product's name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>No</td>\n<td>A description of the product</td>\n</tr>\n<tr>\n<td>size</td>\n<td>string</td>\n<td>No</td>\n<td>A size description for the product</td>\n</tr>\n<tr>\n<td>barcode</td>\n<td>string</td>\n<td>No</td>\n<td>Non-unique barcode field</td>\n</tr>\n<tr>\n<td>availability</td>\n<td>boolean</td>\n<td>No</td>\n<td>TRUE - product is available to order. FALSE - product is not available to order across all stores</td>\n</tr>\n<tr>\n<td>hide</td>\n<td>boolean</td>\n<td>No</td>\n<td>TRUE - hide product on all stores. FALSE - product is not available to order on all stores</td>\n</tr>\n<tr>\n<td>category</td>\n<td>string</td>\n<td>No</td>\n<td>The product category</td>\n</tr>\n<tr>\n<td>images</td>\n<td>array</td>\n<td>No</td>\n<td>A list of image names</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>array</td>\n<td>No</td>\n<td>A list with the unit price for each store</td>\n</tr>\n<tr>\n<td>stock</td>\n<td>array</td>\n<td>No</td>\n<td>A list of stock on hard for each warehouse</td>\n</tr>\n<tr>\n<td>attributes</td>\n<td>array</td>\n<td>No</td>\n<td>A list of customizable product attributes that you can add such as skus/allergens/product dimensions/standard weight</td>\n</tr>\n<tr>\n<td>units</td>\n<td>array</td>\n<td>No</td>\n<td>A list with the number of units for each box size</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productcategory\">product.category  </h1>\n<p>Object. You can add/edit the category for each product.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The category name</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productimages\">product.images  </h1>\n<p>Array. You can currently only send in one image file. (In the future you'll be able to post more than one image per product)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The name of the image</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productprices\">product.prices  </h1>\n<p>For each store or template, send in the name of the store or template and the price for that store.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>store (or template)</td>\n<td>string</td>\n<td>Yes</td>\n<td>The name of the store or template pricelist</td>\n</tr>\n<tr>\n<td>price</td>\n<td>number</td>\n<td>Yes</td>\n<td>The price in the format 100.00</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productstock\">product.stock </h1>\n<p>For each warehouse, please send in the name of the warehouse, the stock on hand and allocated stock for that warehouse. If allocated stock is not provided, we will assume that none of the stock on hand is allocated.(That allocated stock = 0). The stock available for customers to purchase is the stock on hand value minus the allocated stock. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>warehouse.name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The warehouse name</td>\n</tr>\n<tr>\n<td>warehouse.code</td>\n<td>string</td>\n<td>Yes</td>\n<td>The warehouse code</td>\n</tr>\n<tr>\n<td>onHand</td>\n<td>number</td>\n<td>Yes</td>\n<td>Total physical stock on hand in the warehouse</td>\n</tr>\n<tr>\n<td>allocated</td>\n<td>number</td>\n<td>No</td>\n<td>Any stock in the warehouse that is already allocated for a delivery. Assumed to be 0 if no value is sent in.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productattributes\">product.attributes  </h1>\n<p>You can add as many product attributes as you need for each product</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>attribute.label</td>\n<td>string</td>\n<td>Yes</td>\n<td>The product attribute label</td>\n</tr>\n<tr>\n<td>value</td>\n<td>string</td>\n<td>Yes</td>\n<td>The value for the product attribute. All values should be sent as strings.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"productunits\">product.units  </h1>\n<p>For each store or template, please send in the name of the store and the price for that store.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>unit.name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The unit name (Box, tray, pallet etc).</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>number</td>\n<td>Yes</td>\n<td>The value for the product attribute. All values should be sent as strings.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"47470957-6acb-4103-854b-e398a65eae21","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"66b41917-889d-4a1a-95e3-769e0a8346ef","type":"text/javascript","exec":[""]}}],"_postman_id":"951ef645-5a1e-4210-9a98-e459dc11927f"},{"name":"Sales Orders","item":[{"name":"Create a sales order","id":"d71b46fe-5248-4838-84d8-e00e458dc89c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Basic {{basic_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n        \"date\":\"2017-08-18\",\r\n        \"currency\":\"EUR\",\r\n        \"deliveryCustomer\":{\r\n                \"name\":\"Temystocles DCT1\",\r\n                \"code\":\"code DCT1\",\r\n                \"contact\":{\r\n                        \"email\":\"temystocles+dct1@productfitter.com\",\r\n                }\r\n        },\r\n        \"products\":[\r\n                {\r\n                        \"code\":\"b2b-2-00004\",\r\n                        \"quantity\":10,\r\n                        \"price\":2.45\r\n                }\r\n        ]   \r\n}"},"url":"https://api.istockist.com/api/v1/orders","description":"<p>To make a sales order, you create an Order object. </p>\n<p>The required data to create an order is</p>\n<ul>\n<li>customer _id</li>\n<li>currency (e.g. EUR, USD)</li>\n<li>list of products (code, quantity and price required for each)</li>\n</ul>\n<p>Idempotent request identifier: You can send a uuid for each customer object to track the create customer request.</p>\n<p>Unique identifier: Once the the order is created in iStockist, you'll get back an _id in the response which you can use to track the order in iStockist.</p>\n<p>The order object:</p>\n<h2 id=\"attributes\">ATTRIBUTES</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uuid (string)</td>\n<td>NO</td>\n<td>Unique identifier for the object. Created by the application posting the order to support idempotent requests. If you are creating new orders, it's useful to generate the uuid and send it in the order object to keep track of unique orders until they are successfully created.</td>\n</tr>\n<tr>\n<td>date (timestamp)</td>\n<td>NO</td>\n<td>The date at which the order was placed. We use <a href=\"https://tools.ietf.org/html/rfc3339\">ISO-8601</a> for dates and times. Uses the format YYYY-MM-DD. If you don't post the date, we'll use the date the object was successfully created here.</td>\n</tr>\n<tr>\n<td>customer (string)</td>\n<td>YES</td>\n<td>The unique identifier for the customer (_id).</td>\n</tr>\n<tr>\n<td>notes (string)</td>\n<td>NO</td>\n<td>Order notes</td>\n</tr>\n<tr>\n<td>orderRef (string)</td>\n<td>NO</td>\n<td>Order reference number</td>\n</tr>\n<tr>\n<td>paymentType (string)</td>\n<td>NO</td>\n<td>'invoice','cancelled','card'. Default is invoice</td>\n</tr>\n<tr>\n<td>currency (string)</td>\n<td>YES</td>\n<td>The three letter <a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217 Currency Codes</a> are used as currency codes. Our list of <a href=\"https://www.istockist.com/support/supported-currencies/\">currency codes</a></td>\n</tr>\n<tr>\n<td>status (string)</td>\n<td>NO</td>\n<td>'DELETED','VOIDED','AUTHORISED','DRAFT','PAID'</td>\n</tr>\n<tr>\n<td>deliveryStatus (number)</td>\n<td>NO</td>\n<td>The current delivery status for the order. Use the numeric code from the list of <a href=\"https://www.istockist.com/support/delivery-status-codes/\">deliveryStatus codes</a></td>\n</tr>\n<tr>\n<td>orderNumber (string)</td>\n<td>NO</td>\n<td>The billing customer reference number/purchase order number.</td>\n</tr>\n<tr>\n<td>dueDate (timestamp)</td>\n<td>NO</td>\n<td>The date payment for the invoice is due.We use <a href=\"https://tools.ietf.org/html/rfc3339\">ISO-8601</a> for dates and times. Uses the format YYYY-MM-DD.</td>\n</tr>\n<tr>\n<td>products (array)</td>\n<td>YES</td>\n<td>The list of products being ordered. Use the products object for each product.</td>\n</tr>\n<tr>\n<td>deliveryCustomer (object)</td>\n<td>NO</td>\n<td>The delivery customer/end-consumer. Use the Customer Object.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"product-object-stored-inside-products\">Product Object (stored inside products)</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code  (string)</td>\n<td>YES</td>\n<td>Unique identifier for the product</td>\n</tr>\n<tr>\n<td>quantity (integer)</td>\n<td>YES</td>\n<td>The quantity of product in the order line item.</td>\n</tr>\n<tr>\n<td>price  (number)</td>\n<td>YES</td>\n<td>Use the format #.## (2 decimal) for sending the prices</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"customer-object-stored-inside-deliverycustomer\">Customer Object (stored inside deliveryCustomer)</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>YES</td>\n<td>The customer's company name</td>\n</tr>\n<tr>\n<td>code (string)</td>\n<td>NO</td>\n<td>The customer's company code</td>\n</tr>\n<tr>\n<td>vatNumber (string)</td>\n<td>NO</td>\n<td>The customer's company vat number</td>\n</tr>\n<tr>\n<td>contacts (object)</td>\n<td>YES</td>\n<td>The customer's contact person for the order</td>\n</tr>\n<tr>\n<td>addresses (object)</td>\n<td>YES</td>\n<td>The customer address for the order.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"contact-object-stored-inside-contacts\">Contact Object (stored inside contacts)</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email (string)</td>\n<td>YES</td>\n<td>The contact person's email. This is the unique identifier for the contact.</td>\n</tr>\n<tr>\n<td>firstName (string)</td>\n<td>NO</td>\n<td>The contact person's first name</td>\n</tr>\n<tr>\n<td>lastName (string)</td>\n<td>NO</td>\n<td>The contact person's last name</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"address-object-stored-inside-addresses\">Address Object (stored inside addresses)</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>NO</td>\n<td>The address name or description</td>\n</tr>\n<tr>\n<td>address (string)</td>\n<td>YES</td>\n<td>Address line (Street address/PO Box/Company name/Apartment/Suite/Unit/Building).</td>\n</tr>\n<tr>\n<td>country (string)</td>\n<td>YES</td>\n<td>The ISO 2 digit country code. <a href=\"https://www.istockist.com/support/countries-iso-country-codes/\">List of country codes</a></td>\n</tr>\n<tr>\n<td>city  (string)</td>\n<td>YES</td>\n<td>City/District/Suburb/Town/Village.</td>\n</tr>\n<tr>\n<td>state (string)</td>\n<td>NO</td>\n<td>State/County/Province/Region.</td>\n</tr>\n<tr>\n<td>zipCode (string)</td>\n<td>NO</td>\n<td>Zip/Postal Code.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","orders"],"host":["api","istockist","com"],"query":[],"variable":[]}},"response":[{"id":"fbeb3366-0719-46d0-8754-51a8ed565752","name":"Create a Sales order - Full Definition","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"authorization","value":"Basic auth"}],"body":{"mode":"raw","raw":"{\r\n        \"uuid\":\"000order-0000-0000-0000-000000000002\",\r\n        \"date\":\"2017-08-18\",\r\n        \"customer\":\"599c37fae7d0178808549fb2\",\r\n        \"notes\":\"note TP1 teste 1\",\r\n        \"orderRef\":\"ref TP1 teste 1\",\r\n        \"paymentType\":\"invoice\",\r\n        \"currency\":\"EUR\",\r\n        \"status\":\"AUTHORISED\",\r\n        \"deliveryStatus\":1,\r\n        \"orderNumber\":\"PO123\",\r\n        \"dueDate\":\"2017-08-28\",\r\n        \"products\":[\r\n                {\r\n                        \"code\":\"b2b-2-00004\",\r\n                        \"quantity\":10,\r\n                        \"price\":2.45\r\n                }\r\n        ],\r\n        \"deliveryCustomer\":{\r\n                \"name\":\"Temystocles DCT1\",\r\n                \"code\":\"code DCT1\",\r\n                \"vatNumber\":\"VN1199999\",\r\n                \"contact\":{\r\n                        \"email\":\"temystocles+dct1@productfitter.com\",\r\n                        \"firstName\":\"Temystocles dct1\",\r\n                        \"lastName\":\"Medeiros dct1\"\r\n                },\r\n                \"address\":{\r\n                        \"name\":\"The house\",\r\n                        \"address\":\"Street 123 dct1\",\r\n                        \"country\":\"IE\",\r\n                        \"state\":\"dublin\",\r\n                        \"city\":\"Dublin\",\r\n                        \"ZIPCode\":\"ZC-2222\"\r\n                }\r\n        }\r\n}"},"url":"https://api.istockist.com/api/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"uuid\": \"000order-0000-0000-0000-000000000002\",\n    \"date\": \"2017-08-18\",\n    \"customer\": \"599c37fae7d0178808549fb2\",\n    \"notes\": \"note TP1 teste 1\",\n    \"orderRef\": \"ref TP1 teste 1\",\n    \"paymentType\": \"invoice\",\n    \"currency\": \"EUR\",\n    \"status\": \"AUTHORISED\",\n    \"deliveryStatus\": 1,\n    \"orderNumber\": \"PO123\",\n    \"dueDate\": \"2017-08-28\",\n    \"products\": [\n        {\n            \"code\": \"b2b-2-00004\",\n            \"quantity\": 10,\n            \"price\": 2.45\n        }\n    ],\n    \"deliveryCustomer\": {\n        \"name\": \"Temystocles DCT1\",\n        \"code\": \"code DCT1\",\n        \"vatNumber\": \"VN1199999\",\n        \"contact\": {\n            \"email\": \"temystocles+dct1@productfitter.com\",\n            \"firstName\": \"Temystocles dct1\",\n            \"lastName\": \"Medeiros dct1\"\n        },\n        \"address\": {\n            \"name\": \"The house\",\n            \"address\": \"Street 123 dct1\",\n            \"country\": \"IE\",\n            \"state\": \"dublin\",\n            \"city\": \"Dublin\",\n            \"ZIPCode\": \"ZC-2222\"\n        },\n        \"_id\": \"599c39b90aa4657109aad684\"\n    },\n    \"_id\": \"599c39b90aa4657109aad688\",\n    \"number\": \"PO00026\"\n}"}],"_postman_id":"d71b46fe-5248-4838-84d8-e00e458dc89c"},{"name":"List all sales orders","id":"75110cd3-8638-4c38-8efd-5a487fdc97c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{customer_key}}"},{"key":"password","value":"{{customer_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.istockist.com/api/v1/orders?from=2022-03-01&to=2022-03-28","description":"<p>Returns a list of sales orders created. The orders are returned in sorted order, with the most recent orders appearing first.</p>\n<p>ARGUMENTS</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>TBA</td>\n<td>optional</td>\n<td>filters to be added in coming weeks</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","orders"],"host":["api","istockist","com"],"query":[{"key":"from","value":"2022-03-01"},{"key":"to","value":"2022-03-28"}],"variable":[]}},"response":[],"_postman_id":"75110cd3-8638-4c38-8efd-5a487fdc97c0"}],"id":"0793d24a-38e7-4d81-8a70-623691f54c6f","description":"<p>To make a sales order, you create an order object. You can retrieve and update individual sales orders as well as list all sales orders. </p>\n<p>The order object:</p>\n<h2 id=\"attributes\">ATTRIBUTES</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customer</td>\n<td>string</td>\n<td>Yes</td>\n<td>The unique identifier for the customer (customer._id)Generated by iStockist</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>Yes</td>\n<td>The three letter <a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217 Currency Codes</a> are used as currency codes. Our list of <a href=\"https://www.istockist.com/support/supported-currencies/\">currency codes</a></td>\n</tr>\n<tr>\n<td>products</td>\n<td>array</td>\n<td>Yes</td>\n<td>The list of products being ordered. Use the products object for each product.</td>\n</tr>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>No</td>\n<td>Unique identifier for the object. Generated by iStockist</td>\n</tr>\n<tr>\n<td>uuid</td>\n<td>string</td>\n<td>No</td>\n<td>If you are creating a new order object, you can generate a uuid for each object and send it as part of the request. You will get back the uuid to track the idempotent request, and the _id as the unique identifier to track the order.</td>\n</tr>\n<tr>\n<td>date</td>\n<td>timestamp</td>\n<td>No</td>\n<td>The date at which the order was placed. Uses the format YYYY-MM-DD. We use <a href=\"https://tools.ietf.org/html/rfc3339\">ISO-8601</a> for dates and timestamps</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>string</td>\n<td>No</td>\n<td>Order notes</td>\n</tr>\n<tr>\n<td>orderRef</td>\n<td>string</td>\n<td>No</td>\n<td>Order reference number</td>\n</tr>\n<tr>\n<td>paymentType</td>\n<td>string</td>\n<td>No</td>\n<td>'invoice','cancelled','card'. Default is invoice</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>No</td>\n<td>'DELETED','VOIDED','AUTHORISED','DRAFT','PAID'</td>\n</tr>\n<tr>\n<td>deliveryStatus</td>\n<td>number</td>\n<td>No</td>\n<td>Use the numeric code from the list of <a href=\"https://www.istockist.com/support/delivery-status-codes/\">deliveryStatus codes</a></td>\n</tr>\n<tr>\n<td>orderNumber</td>\n<td>string</td>\n<td>No</td>\n<td>The billing customer reference number/purchase order number.</td>\n</tr>\n<tr>\n<td>dueDate</td>\n<td>date</td>\n<td>No</td>\n<td>The date payment for the invoice is due. Uses the format YYYY-MM-DD. We use <a href=\"https://tools.ietf.org/html/rfc3339\">ISO-8601</a> for dates and timestamps</td>\n</tr>\n<tr>\n<td>deliveryCustomer</td>\n<td>object</td>\n<td>No</td>\n<td>The delivery customer/end-consumer. Use the Customer Object.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"orderproducts\">order.products</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier for the product</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>integer</td>\n<td>Yes</td>\n<td>The quantity of product in the order line item.</td>\n</tr>\n<tr>\n<td>price</td>\n<td>number</td>\n<td>Yes</td>\n<td>Use the format #.## (2 decimal) for sending the prices</td>\n</tr>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>No</td>\n<td>The third-party identifier for an order line created via the API.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"orderdeliverycustomer\">order.deliveryCustomer</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Yes</td>\n<td>The customer's company name</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>Yes</td>\n<td>The customer's company code</td>\n</tr>\n<tr>\n<td>contacts</td>\n<td>array</td>\n<td>Yes</td>\n<td>A list of contacts for the customer</td>\n</tr>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>No</td>\n<td>Unique identifier for the object. Generated by iStockist</td>\n</tr>\n<tr>\n<td>addresses</td>\n<td>array</td>\n<td>No</td>\n<td>A list of addresses for the customer</td>\n</tr>\n<tr>\n<td>vatNumber</td>\n<td>string</td>\n<td>No</td>\n<td>The customer's company vat number</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"ordercontacts\">order.contacts</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Yes</td>\n<td>The contact person's email. This is the unique identifier for the contact.</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>string</td>\n<td>No</td>\n<td>The contact person's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string</td>\n<td>No</td>\n<td>The contact person's last name</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h1 id=\"orderaddresses\">order.addresses</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>Yes</td>\n<td>Address line (Street address/PO Box/Company name/Apartment/Suite/Unit/Building).</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>Yes</td>\n<td>The ISO 2 digit country code. <a href=\"https://www.istockist.com/support/countries-iso-country-codes/\">List of country codes</a></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>Yes</td>\n<td>City/District/Suburb/Town/Village.</td>\n</tr>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>No</td>\n<td>Unique identifier for the object. Generated by iStockist</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>No</td>\n<td>The address name or description</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>No</td>\n<td>State/County/Province/Region.</td>\n</tr>\n<tr>\n<td>zipCode</td>\n<td>string</td>\n<td>No</td>\n<td>Zip/Postal Code.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>number</td>\n<td>No</td>\n<td>1 = Billing, 2 = Delivery. Delivery is the default type of address.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"0793d24a-38e7-4d81-8a70-623691f54c6f"}],"event":[{"listen":"prerequest","script":{"id":"ed3e6e7f-9c1e-4418-a0e4-c395d1ac028d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c649b6d3-a483-4a4d-902a-323c6fb7f110","type":"text/javascript","exec":[""]}}]}