{"info":{"_postman_id":"ee74cddb-31af-42ea-8568-2ab9ed4da8ce","name":"Dropp - api","description":"<html><head></head><body><p>Integrating with Dropp involves modifying your online store to allow the customer to choose a Dropp location and making a POST request to our API in to create the order in our system.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>In order to make requests to the API, a secret API key must be provided. The following API endpoints are intended for server-to-server communication only, and authorization is requested by adding an Authorization: Basic YOUR-TOKEN header to requests.</p>\n<p>To get started on production environment you can get your API key here: <a href=\"https://dropp.is/stofna-adgang\">https://dropp.is/stofna-adgang</a></p>\n<p>To get API key and storeid for staging environment, please contact <a href=\"https://mailto:dropp@dropp.is\">dropp@dropp.is</a></p>\n<h1 id=\"environment\">Environment</h1>\n<p>Staging environment: <a href=\"https://stage.dropp.is\">https://stage.dropp.is</a><br>Production environment: <a href=\"https://api.dropp.is\">https://api.dropp.is</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Environment","slug":"environment"}],"owner":"1057001","collectionId":"ee74cddb-31af-42ea-8568-2ab9ed4da8ce","publishedId":"SzKPU13n","public":true,"customColor":{"top-bar":"00007D","right-sidebar":"303030","highlight":"00007D"},"publishDate":"2020-02-13T14:09:17.000Z"},"item":[{"name":"Locations","item":[{"name":"Get locations by store","id":"7697b8c8-c725-45a1-abe1-79374647db43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://stage.dropp.is/dropp/api/v1/dropp/locations?store={storeid}","description":"<p>Get all Dropp locations for a given store.</p>\n<ul>\n<li>Required parameters:<ul>\n<li>storeid - The storeid given on signup.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","dropp","locations"],"host":["stage","dropp","is"],"query":[{"key":"store","value":"{storeid}"}],"variable":[]}},"response":[],"_postman_id":"7697b8c8-c725-45a1-abe1-79374647db43"},{"name":"Get zipcodes for home delivery and Flytjandi","id":"f94c1417-0a39-457e-bd95-4efa53f645af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://stage.dropp.is/dropp/api/v1/dropp/location/deliveryzips","description":"<p>Functions that returns two arrays of zip codes and info.</p>\n<ul>\n<li>codes<ul>\n<li>Zip codes where home delivery is available</li>\n</ul>\n</li>\n<li>flytjandicodes<ul>\n<li>Zip codes where Flytjandi is available</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  \"status\": 0,\n  \"message\": \"\",\n  \"codes\": [\n    {\n      \"code\": 101,\n      \"town\": \"Reykjavík\",\n      \"capital\": true\n    },\n    {\n      \"code\": 102,\n      \"town\": \"Reykjavík\",\n      \"capital\": true\n    },\n...\n ],\n\"flytjandicodes\": [\n    {\n      \"code\": 190,\n      \"town\": \"Vogum\"\n    },\n    {\n      \"code\": 191,\n      \"town\": \"Vogum\"\n    },\n...\n ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","dropp","location","deliveryzips"],"host":["stage","dropp","is"],"query":[],"variable":[]}},"response":[],"_postman_id":"f94c1417-0a39-457e-bd95-4efa53f645af"},{"name":"Framendi /  kort","id":"307289e1-1464-4cb9-bfc2-a4bc4b26351b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"app.dropp.is/dropp-locations.min.js?data-store-id=:data-store-id&data-env=stage","description":"<p>Þið getið séð hvernig þetta lítur út á <a href=\"http://www.elko.is\">www.elko.is</a>, <a href=\"http://www.literalstreetart.com\">www.literalstreetart.com</a> og <a href=\"http://www.hurrareykjavik.is\">www.hurrareykjavik.is</a>.<br />Við getum stillt litina á kortinu þannig að þeir passi við síðuna ykkar (þetta er t.d. blátt hjá Elko og<br />svart hjá Húrra Reykjavík).</p>\n<p>Það þarf að setja þetta script inn á heimasíðuna:</p>\n<p>&lt; script type=\"application/javascript\" src=\"//app.dropp.is/dropp-<br />locations.min.js\" data-store-id=\"...þið fáið store-id í tölvupósti þegar þið stofnið aðgang á dropp.is...&amp;data-env=stage\" async&gt;&lt; /script&gt;</p>\n<p>&amp;data-env=stage er aðeins inni á meðan stage er notað, það er svo tekið út þegar talað er við raun kerfi</p>\n<p>Svo þarf að setja takka, t.d. \"Velja afhendingarstað\", og kalla í þetta fall þegar ýtt er á takkann:<br />chooseDroppLocation()<br />.then(location =&gt; {<br />// location is either null (if the user dismissed the modal),<br />// or a location object with an UUID as its id.<br />})<br />.catch(error =&gt; {<br />// The modal may throw errors, for example if it cannot display locations.<br />});</p>\n<p>Fallið skilar svo location-id sem þarf að vista og senda með pöntuninni í gegnum vefþjónustuna<br />svo þið vitið hvaða staður var valinn.</p>\n","urlObject":{"path":["dropp-locations.min.js"],"host":["app","dropp","is"],"query":[{"key":"data-store-id","value":":data-store-id"},{"key":"data-env","value":"stage"}],"variable":[]}},"response":[],"_postman_id":"307289e1-1464-4cb9-bfc2-a4bc4b26351b"}],"id":"ae684a93-7be4-4d3f-bb13-3df5c7842724","_postman_id":"ae684a93-7be4-4d3f-bb13-3df5c7842724","description":""},{"name":"Orders","item":[{"name":"Get new barcode","id":"22011202-294a-4f33-94e6-8f7db7136623","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/barcode/","description":"<p>Generates new unique barcode that can be used for orders in POST call</p>\n<p>Example response:\n{\n    \"barcode\": \"DR-57EHFMCEh\"\n}</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders","barcode",""],"host":["stage","dropp","is"],"query":[],"variable":[]}},"response":[],"_postman_id":"22011202-294a-4f33-94e6-8f7db7136623"},{"name":"POST new order to Dropp","id":"b6d150cb-2be5-4374-bc8a-3b9d03b5700a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}"},{"key":"Content-Type","value":"application/json;charset=UTF-8"}],"body":{"mode":"raw","raw":"{\n\t\"locationId\": \"d0b62bfe-b8c4-49b4-9b68-a1b3abf2b4a6\",\n\t\"barcode\": \"DR1234567890\",\n    \"value\": 10000.0,\n\t\"products\": [{\n\t\t\"name\": \"Atgeir\",\n\t\t\"barcode\": \"A123\"\n\t}],\n\t\"customer\": {\n\t\t\"name\": \"Egill Skallagrímsson\",\n\t\t\"emailAddress\": \"egill@skallagrimsson.is\",\n\t\t\"socialSecurityNumber\": \"010101-0101\",\n\t\t\"address\": \"Borg á Mýrum\",\n\t\t\"phoneNumber\": \"777 7777\",\n\t\t\"zipcode\":310,\n\t\t\"town\":\"Borgarnes\"\n\t}\n}"},"url":"https://stage.dropp.is/dropp/api/v1/orders/","description":"<p>Creates an order and associated product(s) in the Dropp system, returning the created order and its product(s). All product and customer attributes are required. The locationId is the location selected by your customer. barcode is a unique order Id, printed on the package. Returns an order with the provided attributes, in addition to an id for the order in our systems, and the order's status, which can be \"initial\" (order created &amp; ready to be picked up), \"transit\" (package in transit to delivery location), \"consignment\" (package at delivery location), \"delivered\" (customer has picked up the package), \"cancelled\" (The order has been cancelled) or \"lost\" (The order is marked lost by customer service).</p>\n<ul>\n<li><p>Authorization is required.</p>\n</li>\n<li><p>Required parameters:</p>\n<ul>\n<li><p>locationId – The location selected by your customer.</p>\n<ul>\n<li>Fixed locationId for home delivery: 9ec1f30c-2564-4b73-8954-25b7b3186ed3</li>\n<li>Fixed locationId for Samskip is: a178c25e-bb35-4420-8792-d5295f0e7fcc</li>\n</ul>\n</li>\n<li><p>barcode – A unique order Id printed on the package, used by us to identify the package. This is not an individual product's barcode. Should only contain strings and number. If null a barcode is generated and returned in the response</p>\n</li>\n<li><p>products (array of objects) – Product names and unique product barcodes. Optional parameter is quantity (int) number of each item.</p>\n</li>\n<li><p>name</p>\n</li>\n<li><p>barcode</p>\n</li>\n<li><p>value - The total price including VAT (used for claims management). Excluding delivery fee</p>\n</li>\n</ul>\n</li>\n<li><p>Optional parameters:</p>\n<ul>\n<li>daydelivery (boolean) - If true and locationId is home delivery the homedelivery is marked as a day delivery (9-16)</li>\n<li>comment (string) - If there are any comments with the delivery</li>\n<li>returnorder (boolean) - If true a return order is also generated and the barcode for the return order is in the response</li>\n</ul>\n</li>\n<li><p>customer (object)<br />  name<br />  emailAddress (optional)<br />  socialSecurityNumber (optional)<br />  address<br />  phoneNumber<br />  zipcode<br />  town</p>\n</li>\n</ul>\n<p>Example response:<br />{<br />\"id\": \"de3128aa-acf6-42c8-a5f3-3501eb23133e\",<br />\"barcode\": \"ORDERAB123\",<br />\"locationId\": \"d0b62bfe-b8c4-49b4-9b68-a1b3abf2b4a6\",<br />\"products\": [{\"name\": \"Atgeir\", \"barcode\": \"A123\"}],<br />\"customer\": {\"name\": \"Egill Skallagrímsson\", \"emailAddress\": \"<a href=\"https://mailto:egill@skallagrimsson.is\">egill@skallagrimsson.is</a>\", \"socialSecurityNumber\": \"010101-0101\", \"address\": \"Borg á Mýrum\", \"phoneNumber\": \"777 7777\",\"zipcode\":310,\"town\":\"Borgarnes\"},<br />\"status\": \"initial\",<br />\"createdAt\": \"2019-06-01T00:00:00.000Z\",<br />\"updatedAt\": \"2019-06-01T00:00:00.000Z\"<br />}</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders",""],"host":["stage","dropp","is"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6d150cb-2be5-4374-bc8a-3b9d03b5700a"},{"name":"GET order","id":"16e89bf8-c8a8-49c5-88f4-4e11a83507c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/:orderId","description":"<p>Returns an order and its product(s).</p>\n<p>Authorization is required.<br />No parameters required.</p>\n<p>Example response:<br />{<br />\"id\": \"de3128aa-acf6-42c8-a5f3-3501eb23133e\",<br />\"barcode\": \"ORDERAB123\",<br />\"locationId\": \"d0b62bfe-b8c4-49b4-9b68-a1b3abf2b4a6\",<br />\"products\": [{\"name\": \"Atgeir\", \"barcode\": \"A123\"}],<br />\"customer\": {\"name\": \"Egill Skallagrímsson\", \"emailAddress\": \"<a href=\"mailto:egill@skallagrimsson.is\">egill@skallagrimsson.is</a>\", \"socialSecurityNumber\": \"010101-0101\", \"address\": \"Borg á Mýrum\", \"phoneNumber\": \"777 7777\"},<br />\"status\": \"initial\",<br />\"createdAt\": \"2019-06-01T00:00:00.000Z\",<br />\"updatedAt\": \"2019-06-01T00:00:00.000Z\"<br />}</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders",":orderId"],"host":["stage","dropp","is"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"type":"string","value":"","key":"orderId"}]}},"response":[],"_postman_id":"16e89bf8-c8a8-49c5-88f4-4e11a83507c7"},{"name":"PATCH order","id":"e8be8cd6-3ff4-4f37-a47f-4f86d0508370","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/:orderId","description":"<p>Updates an order and returns an empty response. Please note that the order may only be updated while its status is \"initial\".</p>\n<p>Authorization is required.</p>\n<p>Allowed parameters (at least one required):\n    -barcode\n    -locationId\n    -customer\n    -products</p>\n<p>Example response:\n{}</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders",":orderId"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"string","value":"","key":"orderId"}]}},"response":[],"_postman_id":"e8be8cd6-3ff4-4f37-a47f-4f86d0508370"},{"name":"DELETE order","id":"03d51c46-e998-4261-abcb-3d0c9f536120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Auth","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/:orderId","description":"<p>Deletes an order and returns an empty response. Can only be performed before collection, after this the order must be recalled.</p>\n<p>Example response:\n{}</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders",":orderId"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"string","value":"","key":"orderId"}]}},"response":[],"_postman_id":"03d51c46-e998-4261-abcb-3d0c9f536120"},{"name":"Get PDF","id":"32718e87-34c3-4b68-8e66-ef6149e4f5e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/pdf/:orderid","description":"<p>Returns byte[] with pdf for order</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders","pdf",":orderid"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"any","value":null,"key":"orderid"}]}},"response":[],"_postman_id":"32718e87-34c3-4b68-8e66-ef6149e4f5e7"},{"name":"Get PDF for return order","id":"71ca3536-21fe-4584-84a3-da4cea0e1805","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/returnpdf/:barcode","description":"<p>Returns byte[] with pdf for return order</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders","returnpdf",":barcode"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"any","value":null,"key":"barcode"}]}},"response":[],"_postman_id":"71ca3536-21fe-4584-84a3-da4cea0e1805"},{"name":"Add extra barcode","id":"cc0cafd2-11d1-4508-beba-617ba42c96c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/extrapdf/:orderid","description":"<p>If a shipment contains more than one package each package needs a unique barcode.  </p>\n<p>This function returns byte[] with pdf for the extra barcode.</p>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders","extrapdf",":orderid"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"any","value":null,"key":"orderid"}]}},"response":[],"_postman_id":"cc0cafd2-11d1-4508-beba-617ba42c96c0"},{"name":"Delete extra order","id":"a37fdf40-a16c-41cf-882f-16ba809c14db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {YOUR-TOKEN}","type":"text"}],"url":"https://stage.dropp.is/dropp/api/v1/orders/deleteextraorder/:orderid/:barcode/","description":"<p>To delete an extra order that has already been created.</p>\n<ul>\n<li>Required parameters:<ul>\n<li>orderid - The id of the main order</li>\n<li>barcode - The barcode of the extra order to delete</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","orders","deleteextraorder",":orderid",":barcode",""],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"any","value":null,"key":"orderid"},{"type":"any","value":null,"key":"barcode"}]}},"response":[],"_postman_id":"a37fdf40-a16c-41cf-882f-16ba809c14db"},{"name":"Tracking","id":"5887491e-6a8c-476b-b340-27707fcc961d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://stage.dropp.is/dropp/api/v1/dropp/tracking/json/:barcode/:language","description":"<p>Returns json of tracking of the order, latest object first.</p>\n<p>Same result as on <a href=\"http://www.dropp.is\">www.dropp.is</a> where customer can track orders</p>\n<ul>\n<li>Required parameters:<ul>\n<li>barcode - The barcode of the order</li>\n<li>language - is or en, is for Icelandic en for english</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["dropp","api","v1","dropp","tracking","json",":barcode",":language"],"host":["stage","dropp","is"],"query":[],"variable":[{"type":"any","value":"","key":"barcode"},{"type":"any","value":"","key":"language"}]}},"response":[],"_postman_id":"5887491e-6a8c-476b-b340-27707fcc961d"}],"id":"dc59142c-8626-496f-9958-1cf6e46f6cdb","_postman_id":"dc59142c-8626-496f-9958-1cf6e46f6cdb","description":""}],"event":[{"listen":"prerequest","script":{"id":"e85e840e-ba95-4c8c-b0b2-e2a8a44cffa9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d0f58c22-88cc-4b67-85b4-cf8286002d7e","type":"text/javascript","exec":[""]}}]}