{"info":{"_postman_id":"20862753-a46a-4dc9-a38a-9c6760c464de","name":"KeyNest API - last updated 23/11/2020","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5456795","collectionId":"20862753-a46a-4dc9-a38a-9c6760c464de","publishedId":"TVmP8bLe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4FB28F"},"publishDate":"2020-12-03T10:26:17.000Z"},"item":[{"name":"Get Started","item":[],"id":"ea2b5223-5885-4fd8-808d-89bb11b22d64","description":"<h1 id=\"api-overview\">API overview</h1>\n<p>Welcome to KeyNest API documenation. This page is for developers working for our partners and clients who would like to integrate KeyNest into their platform.</p>\n<p>This is a rest API. All requests need to be HTTPS. This API is subject to our standard T&amp;Cs.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You need to use an API Key to authenticate API calls. To get your API key:</p>\n<ol>\n<li>Create an account <a href=\"https://secure.keynest.com/Register\">here</a>.</li>\n<li>Request the API access by calling our customer service or emailing <a href=\"mailto:support@keynest.com\">support@keynest.com</a>.</li>\n<li>Once our support team has granted you API access, you can generate the API key on your profile section.</li>\n</ol>\n<p><img src=\"https://lucasrsantos.000webhostapp.com/images/APIkey%20and%20Webhook.PNG\" alt=\"alt text\" /></p>\n<h1 id=\"getting-started\">Getting Started</h1>\n<h2 id=\"adding-new-keys-and-booking-codes\">Adding new keys and booking codes</h2>\n<p>For a new key, you can use the <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#fdd95688-c7f9-43ef-bcc6-c2758b6bc020\">New key with collection code</a> method:</p>\n<ul>\n<li>You will receive a dropoff code + a collection code</li>\n<li>At the first dropoff, the shopkeeper will use the dropoff code to attach one of our fobs to the key. This fob remains on the key and it allows the key to be dropped off without the need for a dropoff code for the 2nd time onwards.</li>\n</ul>\n<p>For a key that has already been created in KeyNest, use the <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#0d834fa6-d7a8-fbb8-458e-ef768f7bd221\">Get collection code</a> method.</p>\n<h2 id=\"finding-the-relevant-information\">Finding the relevant information</h2>\n<p>You will need a KeyId to call almost all of our endpoints. It will be returned to you after using the  <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#fdd95688-c7f9-43ef-bcc6-c2758b6bc020\">New key with collection code</a> method but it can also be found using the <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#a22443e7-0af8-40ab-b7b1-6be12b77ce27\">List all my keys</a> method.</p>\n<p>The StoreId is also important when trying to find the best suitable store for your calls. The list of all of our stores can be found <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#a79e647e-c4ef-0075-70fe-6d0ceb660ec6\">here</a>.</p>\n<p>Any other questions? Not sure where to start? You can get in touch with our friendly support team <a href=\"mailto:support@keynest.com\">support@keynest.com</a> or our Product manager <a href=\"mailto:lucas@keynest.com\">lucas@keynest.com</a>.</p>\n<h2 id=\"api-throttling\">Api throttling</h2>\n<p>Keynest uses Api throttling for all the end points, the limit is 25 requests per minute.</p>\n","event":[{"listen":"prerequest","script":{"id":"20ed243b-2b75-456f-9c52-ab7eed111bfc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7da993a3-0b3e-4de8-905e-8eddf2948657","type":"text/javascript","exec":[""]}}],"_postman_id":"ea2b5223-5885-4fd8-808d-89bb11b22d64"},{"name":"Fields description","item":[],"id":"4053439e-2527-4dd9-83ef-a4dfde1408a6","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>API key</td>\n<td>To have API access, you need to contact our support team on +44203 633 4599. After you have API access, you can generate the API key on your profile section.</td>\n</tr>\n<tr>\n<td>KeyId</td>\n<td>Every key has a unique KeyId.The KeyId can be found using the \"List all my keys\" request. The KeyId has two formats: a numerical one or an alphanumeric encrypted format. After 01/01/2020, we will only use the alphanumeric one on our responses and endpoints.</td>\n</tr>\n<tr>\n<td>KeyName</td>\n<td>Name for this key.</td>\n</tr>\n<tr>\n<td>PropertyId</td>\n<td>Property ID your own reference.</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>Every KeyNest store has a unique Store ID. You can find all the Store IDs using the Store List request.</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>Please enter the name of the person who is expected to collect the keys</td>\n</tr>\n<tr>\n<td>IsPermanentCode</td>\n<td>A permanent is a code that can be used multiple times and does not have an expiry date. If you wish to create a permanent code please enter \"true\". If not, please enter \"false\".</td>\n</tr>\n<tr>\n<td>ValidFrom</td>\n<td>Date and time that the code is valid from.</td>\n</tr>\n<tr>\n<td>ValidTo</td>\n<td>Date and time that the valid is valid until.</td>\n</tr>\n<tr>\n<td>Status</td>\n<td>Full status of the key where we specify the additional available. For example, if the key is in the KeyNest Vauxhall - Food and Wine, we will display the following information. \"Status\": \"In Store (Vauxhall - Food and Wine)\",</td>\n</tr>\n<tr>\n<td>StatusType</td>\n<td>A machine-readable parameter that only has two options: \"In Use\" and \"In Store\".</td>\n</tr>\n</tbody>\n</table>\n</div><p>Please click <a href=\"https://lucasrsantos.000webhostapp.com/Api%20field%20descriptions.pdf\">here</a>. to download the list of all field descriptions. </p>\n","event":[{"listen":"prerequest","script":{"id":"ea81bced-40ca-4a15-88ec-a41b5972e826","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d4e5f86b-909e-41f9-8988-69bbe9f9cad3","type":"text/javascript","exec":[""]}}],"_postman_id":"4053439e-2527-4dd9-83ef-a4dfde1408a6"},{"name":"Endpoints","item":[{"name":"List all my keys","id":"d51d9f56-fbc7-4da4-b627-138f7193f2ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{Your Api Key}}","description":""}],"url":"https://api.keynest.com/api/v2/Key/KeyList","description":"<p>This endpoint return the list of all of your keys, including details of each key and their current status.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","KeyList"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"680708b5-0b8d-4887-9df5-1a950ed59a3a","name":"List all my keys","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{Your Api Key}}","description":"\n"}],"url":"https://api.keynest.com/api/v2/Key/KeyList"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"10527","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 27 Feb 2019 09:40:40 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\r\n    \"ResponseCode\": \"200\",\r\n    \"Status\": \"Key List.\",\r\n    \"ResponseMessage\": \"Success\",\r\n    \"ResponsePacket\": {\r\n        \"KeyList\": [\r\n            {\r\n                \"KeyId\": \"ED2856B0E2B83382\",\r\n                \"KeyName\": \"KN - 345\",\r\n                \"PropertyID\": null,\r\n                \"PropertyPostcode\": null,\r\n                \"KeyNotes\": \"guest set\",\r\n                \"SubscriptionPlan\": \"pay as you go\",\r\n                \"StatusType\": \"Waiting for drop off\",\r\n                \"CurrentOrLastStoreID\": null,\r\n                \"LastMovement\": null\r\n            },\r\n            {\r\n                \"KeyId\": \"2E08F3F355E8D13B\",\r\n                \"KeyName\": \"Queen's Park key\",\r\n                \"PropertyID\": null,\r\n                \"PropertyPostcode\": null,\r\n                \"KeyNotes\": null,\r\n                \"SubscriptionPlan\": \"pay as you go\",\r\n                \"StatusType\": \"In Use\",\r\n                \"CurrentOrLastStoreID\": 1325,\r\n                \"LastMovement\": \"2019-11-09T10:18:54.89\"\r\n            },\r\n            {\r\n                \"KeyId\": \"77E7461FDA45704F\",\r\n                \"KeyName\": \"Home keys\",\r\n                \"PropertyID\": \"KN 123\",\r\n                \"PropertyPostcode\": \"TW14 9LJ\",\r\n                \"KeyNotes\": null,\r\n                \"SubscriptionPlan\": \"Monthly\",\r\n                \"StatusType\": \"Waiting for drop off\",\r\n                \"CurrentOrLastStoreID\": null,\r\n                \"LastMovement\": null\r\n            }\r\n         \r\n        ]\r\n    },\r\n    \"Errors\": []\r\n}"}],"_postman_id":"d51d9f56-fbc7-4da4-b627-138f7193f2ba"},{"name":"List of All KeyNests","id":"c0e5db1c-a4ff-4a88-9cba-1219a5a61268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Country\": \"United Kingdom\"\r\n    \r\n}\r\n"},"url":"https://api.keynest.com/api/v2/KeyStore/StoreListByCountry","description":"<p>This endpoint will return the list of all the live KeyNest stores which can be used right now. It includes their opening times and all the information needed to direct a guest to that store.</p>\n<p>If you do not specify any of the parameters below, we will return the entire list of stores. Optionally you can also specify the Country, City, StoreId and StoreName to narrow your search.</p>\n<p>To include InPost lockers in the results, please add the paramter <code>IncludeIPLockers</code> = true. </p>\n<h2 id=\"storeopeningtimingsdetails\">StoreOpeningTimingsDetails:</h2>\n<ul>\n<li><p>Day_of_week = a number from 0–6, corresponding to the days of the week, starting on Monday. For example, 1 means Tuesday.</p>\n</li>\n<li><p>start_minute_of_day = the opening hour in minutes. For example, 420 means 7 am. (7*60)</p>\n</li>\n<li><p>end_minute_of_day = the closing hour in minutes. For example, 1320 means 10 pm. (22*60)</p>\n</li>\n</ul>\n<p>On the right you will see an example of a store opened Mon-Sun: 7.30am-10.30pm</p>\n<h2 id=\"additonal-information\">Additonal information</h2>\n<ul>\n<li><p>If the store is closed for a temporary period of time, we will include these dates in the <code>closeDates</code> parameter. </p>\n</li>\n<li><p>When the store is closed permanently, the store will no longer be avaialble as a result of your search.</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Country</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>City</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>StoreName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>IncludeIPLockers</td>\n<td>True/False</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p>Countries available:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Country</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>United Kingdom</td>\n</tr>\n<tr>\n<td>Austria</td>\n</tr>\n<tr>\n<td>Canada</td>\n</tr>\n<tr>\n<td>France</td>\n</tr>\n<tr>\n<td>Germany</td>\n</tr>\n<tr>\n<td>Ireland</td>\n</tr>\n<tr>\n<td>Italy</td>\n</tr>\n<tr>\n<td>Netherlands</td>\n</tr>\n<tr>\n<td>Portugal</td>\n</tr>\n<tr>\n<td>Spain</td>\n</tr>\n<tr>\n<td>Switzerland</td>\n</tr>\n<tr>\n<td>USA</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","KeyStore","StoreListByCountry"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"18a8ec1f-16f0-4d6f-b7f3-d387335de0f9","name":"Store List by Country","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Country\": \"France\", \r\n    \"City\":\"paris\"\r\n}\r\n"},"url":"https://api.keynest.com/api/v2/KeyStore/StoreListByCountry"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n                \"StoreId\": 1521,\n                \"StoreName\": \"Ternes - Aux Fleurs de France\",\n                \"StoreTime\": \"Tous les jours de 9h à 22h\",\n                \"StoreDescription\": \"Fleuriste très bien situé, proposant créations florales variées, idéal pour échanger vos clés avec vos invités, clients, prestataires de services et votre personnel. \",\n                \"StoreStreetAddress\": \"Place des Ternes 75017 Paris\",\n                \"Latitude\": 48.8779495639956,\n                \"Longtiude\": 2.2980675502624308,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0\n            },  \n{            \n            \t\"StoreId\": 2954,\n                \"StoreName\": \"Charles Michels - Thuva Multiservices\",\n                \"StoreTime\": \"Tous les jours de 11h à 20h\",\n                \"StoreDescription\": \"Ce relais est ouvrable sur demande, veuillez nous appeler au 01 84 60 25 00 ou nous envoyer un mail à france@keynest.com, nous serons ravis de rendre ce relais disponible pour vos échanges de clés.\",\n                \"StoreStreetAddress\": \"2 Rue de la rosière 75015 Paris\",\n                \"Latitude\": 48.8449432,\n                \"Longtiude\": 2.2893759999999475,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0\n            },"}],"_postman_id":"c0e5db1c-a4ff-4a88-9cba-1219a5a61268"},{"name":"Nearest KeyNest","id":"763aff76-13fc-431e-8d8f-3c63261d172a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"address","value":"{{Address}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"address\":\"246-248 Great Portland St, Fitzrovia, London W1W 5QY\"\r\n}"},"url":"https://api.keynest.com/api/v2/KeyStore/NearestStoreList","description":"<p>This endpoint will return the list of the five closest KeyNest stores (excluding lockers). </p>\n<p>You can either specify the Address or Latitude and Longitude (together). If you don't specify any or both, we will return an error message. </p>\n<p>To include InPost lockers in the results, please add the paramter IncludeIPLockers = true. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Address</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Latitude</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Longitude</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>IncludeIPLockers</td>\n<td>True/False</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p>How opening times work:</p>\n<p>Day_of_week = a number from 0–6, corresponding to the days of the week, starting on Monday. For example, 1 means Tuesday.</p>\n<p>start_minute_of_day = the opening hour in minutes. For example, 420  means 7 am.  (7*60)    </p>\n<p>end_minute_of_day  = the closing hour in minutes. For example, 1320 means 10 pm. (22*60)</p>\n","urlObject":{"protocol":"https","path":["api","v2","KeyStore","NearestStoreList"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"0dd4f3d2-6c22-4cf5-b0fe-7274bc7f871f","name":"Store List copy","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"W10 4LG\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/KeyStore/List"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"name":"content-length","key":"content-length","value":"318550","description":"The length of the response body in octets (8-bit bytes)"},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"name":"date","key":"date","value":"Wed, 22 May 2019 10:55:31 GMT","description":"The date and time that the message was sent"},{"name":"expires","key":"expires","value":"-1","description":"Gives the date/time after which the response is considered stale"},{"name":"pragma","key":"pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":"A name for the server"},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":"Custom header"},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"OK\",\n    \"Status\": \"Success\",\n    \"ResponseMessage\": \"Store List.\",\n    \"ResponsePacket\": {\n        \"StoreList\": [\n            {\n                \"StoreId\": 1325,\n                \"StoreName\": \"Queen's Park - Food Wise Food & Wine\",\n                \"StoreTime\": \"Every day:Open 24 hours\",\n                \"StoreDescription\": \"24/7 convenience store offering a wide range of fresh products and drinks. Great place to hold a spare set of keys in case you need someone to access them out of hours. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"61 Salusbury Road, London, NW6 6NJ\",\n                \"Latitude\": 51.5349843158937,\n                \"Longtiude\": -0.204702449073807,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.29,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 2445,\n                \"StoreName\": \"Kensal Green - Ganapati Food and Wine \",\n                \"StoreTime\": \"Every day:07:00 - 22:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"26 Kilburn Lane, W104AA\",\n                \"Latitude\": 51.5295819053788,\n                \"Longtiude\": -0.215767204893496,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.33,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 1318,\n                \"StoreName\": \"Westbourne Park - Butler Newsagent\",\n                \"StoreTime\": \"Every day:07:00 - 23:30\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"16 Great Western Road, London, W9 3NN\",\n                \"Latitude\": 51.523438,\n                \"Longtiude\": -0.202071599999954,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1410\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.56,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 2424,\n                \"StoreName\": \"Kensal Rise - Nash Supermarket\",\n                \"StoreTime\": \"Mon - Sat:07:00 - 23:00,Sun:07:00 - 21:00,25/12: 10:00-18:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"2 Kings Parade, Okehampton Rd, London NW10 3ED\",\n                \"Latitude\": 51.5381511,\n                \"Longtiude\": -0.21991509999998,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1260\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.68,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 3313,\n                \"StoreName\": \"Ladbroke Grove - Highlife Supermarket\",\n                \"StoreTime\": \"Mon - Sat:08:00 - 23:00,Sun:09:00 - 22:00,25/12: Closed<br>24/12,26/12-01/01: 12:00-18:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"292 Portobello Road, London, W10 5TE, UK\",\n                \"Latitude\": 51.5195452,\n                \"Longtiude\": -0.207587600000011,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"540\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.77,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 30,\n                \"StoreName\": \"Ladbroke Grove - West 9 Food & Wine\",\n                \"StoreTime\": \"Every day:07:00 - 23:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"175 Ladbroke Grove, London W10 6HJ\",\n                \"Latitude\": 51.5181549786553,\n                \"Longtiude\": -0.210642059507109,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.87,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 132,\n                \"StoreName\": \"Kilburn High Road - RST Wine Mart\",\n                \"StoreTime\": \"Mon - Thu:11:00 - 20:00,Fri - Sat:11:00 - 22:00,Sun:11:00 - 20:00,Monday : store closed ,25/12 & 26/12: 12:00-17:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"232 Belsize Road, London NW6 4BT\",\n                \"Latitude\": 51.5386038,\n                \"Longtiude\": -0.190681400000017,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1320\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"660\",\n                        \"EndMinuteOfDay\": \"1200\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.87,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 90,\n                \"StoreName\": \"Kilburn - Round the Clock\",\n                \"StoreTime\": \"Every day:Open 24 hours\",\n                \"StoreDescription\": \"24/7 convenience store offering a wide range of fresh products and drinks. Great place to hold a spare set of keys in case you need someone to access them out of hours. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"261 Kilburn High Road, NW6 7JR\",\n                \"Latitude\": 51.5432539444483,\n                \"Longtiude\": -0.199825654613733,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"0\",\n                        \"EndMinuteOfDay\": \"1439.98333333333\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.87,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 1361,\n                \"StoreName\": \"Westbourne Park - Keyham Local \",\n                \"StoreTime\": \"Mon - Fri:07:00 - 23:00,Sat - Sun:08:00 - 23:00,25/12,26/12,27/12,28/12,01/01: 10:00-18:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"1/2 Keyham House, Westbourne Park Road, W25UH\",\n                \"Latitude\": 51.5190921,\n                \"Longtiude\": -0.197668499999963,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"420\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"480\",\n                        \"EndMinuteOfDay\": \"1380\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.91,\n                \"CloseDates\": []\n            },\n            {\n                \"StoreId\": 128,\n                \"StoreName\": \"Maida Vale - Supersave Food Store \",\n                \"StoreTime\": \"Mon - Sat:07:30 - 22:30,Sun:08:30 - 22:30,25/12,26/12 & 01/01: 11:00-20:00\",\n                \"StoreDescription\": \"Very friendly convenience store offering a wide range of fresh products and drinks. Perfect store to exchange keys with Airbnb guests,cleaners and staff.\",\n                \"StoreStreetAddress\": \"292 Elgin Avenue, W9 1JS, London\",\n                \"Latitude\": 51.5299536,\n                \"Longtiude\": -0.185554300000035,\n                \"StoreOpeningTimingsDetails\": [\n                    {\n                        \"DayOfWeek\": 0,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 1,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 2,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 3,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 4,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 5,\n                        \"StartMinuteOfDay\": \"450\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    },\n                    {\n                        \"DayOfWeek\": 6,\n                        \"StartMinuteOfDay\": \"510\",\n                        \"EndMinuteOfDay\": \"1350\"\n                    }\n                ],\n                \"DistanceToStoreInMiles\": 0.93,\n                \"CloseDates\": []\n            }\n        ]\n    },\n    \"Errors\": []\n}"}],"_postman_id":"763aff76-13fc-431e-8d8f-3c63261d172a"},{"name":"New key with collection code","event":[{"listen":"test","script":{"id":"0cd2b57e-f185-426f-bcc7-562c55ffd8b8","exec":[""],"type":"text/javascript"}}],"id":"c1fcc00b-518f-486b-8ec5-de32145be241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyName\": \"API Key Test\",                          \r\n    \"PropertyId\":\"KN 123\",                                            \r\n    \"PropertyPostCode\": \"Tw14 9LJ\",                                    \r\n    \"StoreId\": 5,                                                               \r\n    \"ExpectedCollectionUserName\": \"Harry\",                           \r\n    \"IsPermanentCode\": false,                                          \r\n    \"ValidFrom\": \"2019-03-13T10:37:39.9989584+05:30\",                 \r\n    \"ValidTo\": \"2019-03-20T10:37:39.9989584+05:30\"                    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Key/CreateKeyWithDropOffAndCollectionCode","description":"<p>For adding a new key, you can use this endpoint:</p>\n<ol>\n<li>You will receive a dropoff code + a collection code</li>\n<li>At the first dropoff, the shopkeeper will use the dropoff code to attach one of our fobs to the key. This fob remains on the key and it allows the key to be dropped off without the need for a dropoff code for the 2nd time onwards.</li>\n</ol>\n<p>For a key that already has a KeyNest fob attached, use the <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#0d834fa6-d7a8-fbb8-458e-ef768f7bd221\">Get collection code</a> method.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyName</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>PropertyId</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>PropertyPostCode</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>IsPermanentCode</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ValidFrom</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ValidTo</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","Key","CreateKeyWithDropOffAndCollectionCode"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"16fa3d9d-4976-48d0-a05f-de8e360d2ef8","name":"New key with collection code","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyName\": \"API Key Test V\",                          \r\n    \"PropertyId\":\"KN 123\",                                            \r\n    \"PropertyPostCode\": \"Tw14 9LJ\",                                    \r\n    \"StoreId\": 5,                                                                 \r\n    \"ExpectedCollectionUserName\": \"Harry\",                           \r\n    \"IsPermanentCode\": false,                                          \r\n    \"ValidFrom\": \"2019-03-13T10:37:39.9989584+05:30\",                 \r\n    \"ValidTo\": \"2019-03-20T10:37:39.9989584+05:30\"                    \r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Key/CreateKeyWithDropOffAndCollectionCode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-length","key":"content-length","value":"559","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:41:52 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"Key Details saved successfully.\",\"ResponsePacket\":{\"KeyName\":\"API Demo Key\",\"KeyId\":\"ED2856B0E2B83382\",\"PropertyId\":\"KN 123\",\"DropOffCode\":\"789348\",\"CollectionCode\":\"935899\",\"Store\":{\"Id\":5,\"Name\":\"Hampstead Heath - London Food and Wine\",\"Address\":\"59 South End Rd, NW3 2QB\",\"PostCode\":null,\"Storetime\":\"Mon-Fri: 7am-10pm<br>Sat-Sun:8am-10pm\",\"Latitude\":51.5557428715556,\"Longtiude\":-0.16659356931154434},\"ValidFrom\":\"2019-03-13T05:07:39.9989584+00:00\",\"ValidTo\":\"2019-03-14T05:07:39.9989584+00:00\"},\"Errors\":[]}"}],"_postman_id":"c1fcc00b-518f-486b-8ec5-de32145be241"},{"name":"Get collection code","id":"6f5953b8-0064-4002-8969-966572ddcd1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\",   Mandatory*                         Description: Unique KeyId of the key you wish to delete. The KeyId can be found using the \"List all my keys\" request.\n    \"StoreId\": 5, Mandatory*                                          Description: Every KeyNest store has a unique Store ID. Please enter the Store ID here. You can find all the Store IDs using the Store List request.\n    \"ExpectedCollectionUserName\": \"John\",                             Description: Please enter the name of the person who is expected to collect the key.\n    \"ExpectedCollectionUserEmail\": \"john@gmail.com\"                   Description: Please enter the email  of the person who is expected to collect the key. KeyNest will automatically send an email with the collection code.\n    \"IsPermanentCode\": false,                                         Description: If you wish to create a permanent code please enter \"true\". If not, please enter \"false\". A permanent is a code that can be used multiple times and does not have an expiry date. \n    \"ValidFrom\": \"\",                                                  Description: Please enter the date and time that the code is valid from.\n    \"ValidTo\": \"\"                                                     Description: Please enter the date and time that the valid is valid until.\n    }\n    \n    "},"url":"https://api.keynest.com/api/v2/Key/CreateKeyCollectionCode","description":"<p>Please use this endpoint to book a collection code.</p>\n<p>Requests without the StoreId: </p>\n<ul>\n<li>if the StoreId is not specified in request body, KeyNest will identify the Store where the key has been dropped off at the last movement and use the StoreId for the request.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserEmail</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>IsPermanentCode</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ValidFrom</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ValidTo</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","Key","CreateKeyCollectionCode"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"3e4b8a40-f6fa-45a6-ac5c-7fc3eab8f94a","name":"Get collection code","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\",   Mandatory*                         Description: Unique KeyId of the key you wish to delete. The KeyId can be found using the \"List all my keys\" request.\n    \"StoreId\": 5, Mandatory*                                          Description: Every KeyNest store has a unique Store ID. Please enter the Store ID here. You can find all the Store IDs using the Store List request.\n    \"ExpectedCollectionUserName\": \"\",                                 Description: Please enter the name of the person who is expected to collect the key.\n    \"ExpectedCollectionUserEmail\": \"\",                                Description: Please enter the email  of the person who is expected to collect the key. KeyNest will automatically send an email if the collection code.\n    \"IsPermanentCode\": false, Mandatory*                              Description: If you wish to create a permanent code please enter \"true\". If not, please enter \"false\". A permanent is a code that can be used multiple times and does not have an expiry date. \n    \"ValidFrom\": \"\",                                                  Description: Please enter the date and time that the code is valid from.\n    \"ValidTo\": \"\"                                                     Description: Please enter the date and time that the valid is valid until.\n    }\n    \n    "},"url":"https://api.keynest.com/api/v2/Key/CreateKeyCollectionCode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"313","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:25:21 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"200\",\n    \"Status\": \"Success\",\n    \"ResponseMessage\": \"Key collection code saved successfully.\",\n    \"ResponsePacket\": {\n        \"KeyName\": \"Test Sacco Bistrot\",\n        \"KeyId\": \"90DADA77BED04493\",\n        \"CollectionCode\": \"507479\",\n        \"ValidFrom\": null,\n        \"ValidTo\": null\n        \n    },\n    \"Errors\": []\n}"}],"_postman_id":"6f5953b8-0064-4002-8969-966572ddcd1e"},{"name":"Retrieve drop off code","id":"cf87df6a-d7c1-4a38-b914-fd9fb1c9a078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\" Description: Unique KeyId of the key you wish to know the DropOff code. The KeyId can be found using the \"List all my keys\" request. \n}"},"url":"https://api.keynest.com/api/v2/Key/GetDropOffCode","description":"<p>This endpoint will return the drop off code for a specific key which has already been created in KeyNest.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","GetDropOffCode"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"1c207d36-316b-4727-b514-019566bc6dd1","name":"Retrieve drop off code","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\"\n}"},"url":"https://api.keynest.com/api/v2/Key/GetDropOffCode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"435","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 27 Feb 2019 09:56:09 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"Keycode details found successfully.\",\"ResponsePacket\":{\"KeyName\":\"Demo Key \",\"KeyId\":\"90DADA77BED04493\",\"DropOffCode\":\"145215\",\"Store\":{\"Id\":5,\"Name\":\"Hampstead Heath - London Food and Wine\",\"Address\":\"59 South End Rd, NW3 2QB\",\"PostCode\":null,\"Storetime\":\"Mon-Fri: 7am-10pm<br>Sat-Sun:8am-10pm\",\"Latitude\":51.5557428715556,\"Longtiude\":-0.16659356931154434}},\"Errors\":[]}"}],"_postman_id":"cf87df6a-d7c1-4a38-b914-fd9fb1c9a078"},{"name":"Delete a key","id":"71ea990c-8248-4d1d-934d-741b2f9760e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\"  Description: Unique KeyId of the key you wish to delete. The KeyId can be found using the \"List all my keys\" request. \n}"},"url":"https://api.keynest.com/api/v2/Key/DeleteKey","description":"<p>Please use this endpoint to delete a key.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","DeleteKey"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"6a6d1bfe-589d-481b-9e20-e0a1bc8bbdc0","name":"Delete a key","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\"\n}"},"url":"https://api.keynest.com/api/v2/Key/DeleteKey"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"373","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 27 Feb 2019 10:28:14 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"The key is deleted and drop off code discarded\",\"ResponsePacket\":{\"Status\":\"Your key42318 has been deleted. If your key already has a KeyNest fob on, you’re welcome to keep the fob as a thank you from KeyNest, but as it has been deactivated you will not be able to use it again at any of our stores.\"},\"Errors\":[]}"}],"_postman_id":"71ea990c-8248-4d1d-934d-741b2f9760e7"},{"name":"Delete collection code","id":"4a51fd84-9fab-47f8-a7ef-c12a2a39e076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"CollectionCode\": 924187 Description: Please enter the collection code you want to delete.\n   \n}\n\n"},"url":"https://api.keynest.com/api/v2/Key/CancelCollectionCode\n","description":"<p>Please use this endpoint to delete a collection code. </p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","CancelCollectionCode\n"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"ea7f0ffd-d60f-475e-9d1c-47b83cfccf04","name":"Delete collection code","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"CollectionCode\": 924187\n   \n}\n\n"},"url":"https://api.keynest.com/api/v2/Key/CancelCollectionCode\n"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"256","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 27 Feb 2019 10:08:18 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"The Collection code for this key is discarded\",\"ResponsePacket\":{\"Status\":\"Your key code924187 has been deleted.\"},\"Errors\":[]}"}],"_postman_id":"4a51fd84-9fab-47f8-a7ef-c12a2a39e076"},{"name":"Get Key Status","id":"a79c7178-1404-48d0-88a1-6b66244b6dbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"90DADA77BED04493\" Description: Unique KeyId of the key you wish to delete. The KeyId can be found using the \"List all my keys\" request. \r\n }\r\n   \r\n"},"url":"https://api.keynest.com/api/v2/Key/GetKeyStatus","description":"<p>Use this endpoint to identify the current key status. We have three different status:</p>\n<p>-Waiting for dropoff: </p>\n<p>This status means that the key has been created but it has not been dropped off before. </p>\n<p>-In Store:</p>\n<p>This status means that the key <b>is</b> currently in one of our KeyNest stores. </p>\n<p>-In Use:</p>\n<p>This status means that the key has been collected from one of our KeyNest stores.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","GetKeyStatus"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"6897c02b-d209-4f62-8067-bb45dc500d66","name":"Get Key Status","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}","warning":""},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"90DADA77BED04493\"\r\n }\r\n   \r\n"},"url":"https://api.keynest.com/api/v2/Key/GetKeyStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"name":"content-length","key":"content-length","value":"552","description":"The length of the response body in octets (8-bit bytes)"},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"name":"date","key":"date","value":"Fri, 22 Feb 2019 09:17:46 GMT","description":"The date and time that the message was sent"},{"name":"expires","key":"expires","value":"-1","description":"Gives the date/time after which the response is considered stale"},{"name":"pragma","key":"pragma","value":"no-cache","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":"A name for the server"},{"name":"vary","key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":"Custom header"},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"This key is not in the office\",\"ResponsePacket\":{\"PropertyName\":\"Home Key\",\"KeyId\":\"90DADA77BED04493\",\"Status\":\"In Use (john)\",\"StatusType\":\"In Use\",\"FullStatus\":\"The last person to collect this key was john, at 16:23 on 06/02/2019 .john did not specify when he would be returning the keys.If you need this set of keys, please contact john.\",\"PropertyId\":\"\",\"Store\":{\"Id\":109,\"Name\":\"KeyNest HQ\",\"Address\":null,\"PostCode\":\"\",\"Storetime\":null,\"Latitude\":0.0,\"Longtiude\":0.0},\"KeyUser\":{\"Name\":\"john\",\"Company\":\"\",\"MobileNumber\":\"\",\"KeyCollectionDateTime\":\"16:23 on 06/02/2019 \",\"ExpectedReturnDate\":\"john did not specify when he would be returning the keys.\"}},\"Errors\":[]}"}],"_postman_id":"a79c7178-1404-48d0-88a1-6b66244b6dbb"},{"name":"Get collection code Status","id":"c6667fef-ef60-4276-8d8d-31bb9c88844e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"90DADA77BED04493\", Description: Unique KeyId of the key you wish to delete. The KeyId can be found using the \"List all my keys\" request. \r\n    \"CollectionCode\": 922697 Description: Collection code that you want to check the status. \r\n}\r\n"},"url":"https://api.keynest.com/api/v2/Key/GetKeyCodeStatus","description":"<p>Please use this endpoint to find out if a code is valid or not.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","GetKeyCodeStatus"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"a995385a-4313-40af-bb4e-9226a3332e27","name":"Get collection code Status","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"90DADA77BED04493\",\r\n    \"CollectionCode\": 508609\r\n}\r\n"},"url":"https://api.keynest.com/api/v2/Key/GetKeyCodeStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"274","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:32:16 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\" \",\"ResponsePacket\":{\"KeyId\":\"90DADA77BED04493\",\"Status\":\"Valid\",\"IsPermanent\":false,\"ValidFrom\":\"2019-03-15T11:40:39.9989584\",\"ValidTo\":\"2019-03-15T12:00:39.9989584\"},\"Errors\":[]}"}],"_postman_id":"c6667fef-ef60-4276-8d8d-31bb9c88844e"},{"name":"Get Key Valid Codes","id":"56d9a89b-0f98-4a0c-8bc7-5bfbaab47783","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"9E7725FA87411A97A\" \r\n }\r\n   \r\n"},"url":"https://api.keynest.com/api/v2/Key/GetValidCodes","description":"<p>Use this endpoint to identify the collection codes that are valid currently.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","GetValidCodes"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"b65b1579-d934-4cff-8ea0-6ac04cfe7295","name":"Get Key Valid Codes","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyId\": \"9E7725FA87411A97A\" \r\n }\r\n   \r\n"},"url":"https://api.keynest.com/api/v2/Key/GetValidCodes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"265"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 11 Sep 2020 15:44:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"200\",\n    \"Status\": \"Success\",\n    \"ResponseMessage\": \" \",\n    \"ResponsePacket\": {\n        \"ValidCodes\": [\n            {\n                \"Code\": \"854156\",\n                \"IsPermanent\": false,\n                \"ValidFrom\": \"2020-09-11T18:43:00\",\n                \"ValidTo\": null\n            },\n            {\n                \"Code\": \"316228\",\n                \"IsPermanent\": true,\n                \"ValidFrom\": null,\n                \"ValidTo\": null\n            }\n        ]\n    },\n    \"Errors\": []\n}"}],"_postman_id":"56d9a89b-0f98-4a0c-8bc7-5bfbaab47783"},{"name":"Update key details","id":"1dace26a-0924-4a3c-a90a-6593f35b05ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"KeyId\": \"AC61448694EF0C47\",\n\t\"KeyName\": \"Demo keys\",\n\t\"Address\": \"27 Birnam Street\",\n\t\"PropertyId\": \"KN123\",\n\t\"Notes\":\"Guest set\"\n\t\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Key/UpdateKeyDetails","description":"<p>You can use this endpoint to update your key details.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>KeyName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Address</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>PropertyId</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Notes</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","Key","UpdateKeyDetails"],"host":["api","keynest","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"b77ecb44-bbd8-4dae-9899-a20ac19ae853","name":"Update key details","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"b63c5507cc624ebdbb676cab7ea3529e","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"KeyId\": \"AC61448694EF0C47\",\n\t\"KeyName\": \"Demo keys\",\n\t\"Address\": \"27 Birnam Street\",\n\t\"PropertyId\": \"KN123\",\n\t\"Notes\":\"Guest set\"\n\t\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.keynest.com/api/v2/Key/UpdateKeyDetails","protocol":"https","host":["api","keynest","com"],"path":["api","v2","Key","UpdateKeyDetails"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"225"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 20 Mar 2020 18:53:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"200\",\n    \"Status\": \"Success\",\n    \"ResponseMessage\": \"The key details are updated\",\n    \"ResponsePacket\": {\n        \"Status\": \"Your key details are Updated.\"\n    },\n    \"Errors\": []\n}"}],"_postman_id":"1dace26a-0924-4a3c-a90a-6593f35b05ad"},{"name":"New key for InPost locker","event":[{"listen":"test","script":{"id":"7704c369-f56c-4f46-8c50-670ff4ef93cd","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token\", jsonData.token);"],"type":"text/javascript"}}],"id":"48e5c90d-ef32-45fb-bbea-0c1458614a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{ Your Api Key }}"}],"body":{"mode":"raw","raw":"{  \r\n  \"KeyId\": \"C02DA946A7F44FF7\",                          \r\n   \"StoreId\": 4429                                   \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Key/GetInPostLockerCodes","description":"<p>Please find below the information regarding how InPost locker codes work.<br /></p>\n<p>When you add a key for an InPost locker, you will receive three codes that you <b>MUST</b> use in the order in which they are displayed below:<br /></p>\n<p><b>1. CurrentDropOffCode</b>: This code is the first dropoff code that you need to use. To do so, please select \"SEND A PARCEL\" on the locker screen and enter the code. <br /></p>\n<p><b>2. CollectionCode</b>: This is the code that needs to be used to collect the CurrentDropOffCode. To do so, please click on \"COLLECT A PARCEL\" on the locker screen, enter the number 07777777777 for the UK or 3333 333333 for Italy, enter the six-digit collection code.<br /></p>\n<p><b>3. FutureDropOffCode</b>: This code should only be used after the CollectionCode above has been used. \n<br /></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyName</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>PropertyId</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","Key","GetInPostLockerCodes"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"44c2ddf2-94d1-4ddd-b98f-fba6194f263c","name":"New key for InPost locker","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n   \"KeyName\": \"InPost Key\",                          \r\n   \"StoreId\": 4429                                     \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Key/CreateInPostLockerKey"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-length","key":"content-length","value":"559","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:41:52 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\r\n  \"ResponseCode\": \"200\",\r\n  \"Status\": \"Success\",\r\n  \"ResponseMessage\": \"Key Details saved successfully.\",\r\n  \"ResponsePacket\": {\r\n    \"KeyName\": \" InPost Key\",\r\n    \"KeyId\": \"ED2856B0E2B83382\",\r\n    \"Codes\": {\r\n                \"CurrentDropOffCode\": \"989440\",      \r\n                \"CollectionCode\": \"497943\",           \r\n                \"FutureDropOffCode\": \"8758744\"\r\n            },\r\n     \"Store\": {\r\n      \"Id\": 4429,\r\n      \"Name\": \" Yate - Morrisons Store - InPost Locker\",\r\n      \"Address\": \"59 South End Rd, NW3 2QB\",\r\n      \"PostCode\": null,\r\n      \"Storetime\": \"Every day : Open 24 hours\",\r\n      \"Latitude\": 51.5557428715556,\r\n      \"Longtiude\": -0.16659356931154434\r\n    },\r\n },\r\n  \"Errors\": []\r\n     \r\n}\r\n"}],"_postman_id":"48e5c90d-ef32-45fb-bbea-0c1458614a31"},{"name":"Get InPost locker codes","id":"f715db4b-01cb-4fe3-a006-2dadf61cac74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{ Your Api Key }}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\"\n    \"StoreId\": 4429, \n}\n\n    \n    "},"url":"https://api.keynest.com/api/v2/Key/GetInPostLockerCodes","description":"<p>Once the key has been created, this endpoint allows you to retrieve the next codes that can be used to collect it / drop it off.</p>\n<p>There are three possible situations</p>\n<ol>\n<li><p>If the key has never been dropped off yet, this endpoint will return the same three codes already displayed on the the endpoint <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU#cb5aa224-dad5-443a-bdd2-1eb7f1d7e7ab\">New key for InPost locker</a>.</p>\n</li>\n<li><p>If the key is already stored in the the locker, this endpoint will return two codes: the next collection code and the dropoff to be use after that (FutureDropOffCode).</p>\n</li>\n<li><p>If the keys have already been collected, this endpoint will return three codes: the current drop off code, the collection code and the next drop off code to be used after that (FutureDropOffCode).</p>\n</li>\n</ol>\n<p>Please note, InPost lockers are unable to generate a collection code before the previous one has been used. Therefore, this endpoint will always return the next collection code to be used each time you call it. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserEmail</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","Key","GetInPostLockerCodes"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"4d509e5c-8cb4-4690-b274-d18f40b84bc2","name":"Get InPost locker codes","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"e345adb5df47411287913ee8ca87820e"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"KeyId\": \"90DADA77BED04493\"\n    \"StoreId\": 4429, \n}\n\n    \n    "},"url":"https://api.keynest.com/api/v2/Key/CreateKeyCollectionCode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"241"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=48fc7157821b5b458035d5e7290873c4f41d0386c13c2f137346438ffc9ed41a;Path=/;HttpOnly;Domain=api.keynest.com"},{"key":"Date","value":"Thu, 03 Sep 2020 02:43:04 GMT"}],"cookie":[],"responseTime":null,"body":"\n{\n  \"ResponseCode\": \"200\",\n  \"Status\": \"Success\",\n  \"ResponseMessage\": \"Key Details saved successfully.\",\n  \"ResponsePacket\": {\n    \"KeyName\": \" InPost Key\",\n    \"KeyId\": \"ED2856B0E2B83382\",\n    \"StatusType\":  \"In Store\",\n    \"Codes\": {               \n                \"CollectionCode\": \"497943\",                      \n                \"FutureDropOffCode\": \"8758744\"\n             },\n     \"Store\": {\n      \"Id\": 4429,\n      \"Name\": \" Yate - Morrisons Store - InPost Locker\",\n      \"Address\": \"59 South End Rd, NW3 2QB\",\n      \"PostCode\": null,\n      \"Storetime\": \"Every day : Open 24 hours\",\n      \"Latitude\": 51.5557428715556,\n      \"Longtiude\": -0.16659356931154434\n    },\n },\n  \"Errors\": []\n     \n}\n\n\n    {\n  \"ResponseCode\": \"200\",\n  \"Status\": \"Success\",\n  \"ResponseMessage\": \"Key Details saved successfully.\",\n  \"ResponsePacket\": {\n    \"KeyName\": \" InPost Key\",\n    \"KeyId\": \"ED2856B0E2B83382\",\n    \"StatusType\":  \"In Use\", \n    \"Codes\": {\n                \"CurrentDropOffCode\": \"893798\",\n                \"CollectionCode\": \"497943\",                      \n                \"FutureDropOffCode\": \"8758744\"\n            },\n     \"Store\": {\n      \"Id\": 4429,\n      \"Name\": \" Yate - Morrisons Store - InPost Locker\",\n      \"Address\": \"59 South End Rd, NW3 2QB\",\n      \"PostCode\": null,\n      \"Storetime\": \"Every day : Open 24 hours\",\n      \"Latitude\": 51.5557428715556,\n      \"Longtiude\": -0.16659356931154434\n    },  \n  },\n  \"Errors\": []\n     \n}\n"}],"_postman_id":"f715db4b-01cb-4fe3-a006-2dadf61cac74"},{"name":"Single Key Exchange","event":[{"listen":"test","script":{"id":"e02c486c-f3f8-43c7-bc95-111365e37950","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token\", jsonData.token);"],"type":"text/javascript"}}],"id":"ee69a75b-8572-4fc7-900c-f1c562b7d6d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/SingleKeyExchange","description":"<p>When adding a key using this endpoint, you will receive a drop-off code + a collection code. </p>\n<h2 id=\"keynest-stores\">KeyNest Stores</h2>\n<ul>\n<li><p>if you’re dropping off your keys at one of our regular stores, the staff will enter the drop-off code and attach one of our fobs. The keys will then be scanned and stored securely.</p>\n</li>\n<li><p>Anyone can then collect the key by sharing the collection code with the staff at our KeyNest store.</p>\n</li>\n</ul>\n<h2 id=\"inpost-lockers\">InPost Lockers</h2>\n<ul>\n<li><p>If you’re using one of our automated lockers, you can drop off your keys by entering the drop-off code into the locker. Please select \"SEND A PARCEL\" on the locker screen and enter the code. <br /></p>\n</li>\n<li><p>Anyone can then collect the keys by entering the collection code into the locker. Please click on \"COLLECT A PARCEL\" on the locker screen, enter the number 07777777777 for the UK or 3333 333333 for Italy, enter the six-digit collection code.<br /></p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KeyName</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>StoreId</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>ExpectedCollectionUserName</td>\n<td>String</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","SingleKeyExchange"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"83cf373d-2042-4d26-8d12-9b358876de65","name":"Single Key Exchange","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"KeyName\": \"API Key Test\",                          \r\n    \"StoreId\":4429,                                                                        \r\n    \"ExpectedCollectionUserName\": \"Harry\"                        \r\n                \r\n}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/SingleKeyExchange"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-length","key":"content-length","value":"559","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:41:52 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\r\n\"Status\":\"Success\",\"ResponseMessage\":\"Key Details saved successfully.\",\r\n\"ResponsePacket\":{\r\n    \"KeyName\":\"API Demo Key\",\r\n    \"KeyId\":\"ED2856B0E2B83382\",\r\n    \"DropOffCode\":\"789348\",\r\n    \"CollectionCode\":\"935899\",\r\n    \"Store\": {\r\n      \"Id\": 4429,\r\n      \"Name\": \" Yate - Morrisons Store - InPost Locker\",\r\n      \"Address\": \"59 South End Rd, NW3 2QB\",\r\n      \"PostCode\": null,\r\n      \"Storetime\": \"Every day : Open 24 hours\",\r\n      \"Latitude\": 51.5557428715556,\r\n      \"Longtiude\": -0.16659356931154434\r\n    },},\"Errors\":[]}"}],"_postman_id":"ee69a75b-8572-4fc7-900c-f1c562b7d6d8"},{"name":"Share codes via email","event":[{"listen":"test","script":{"id":"3b676344-ee75-4080-9765-d4d6fe2ca076","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"token\", jsonData.token);"],"type":"text/javascript"}}],"id":"3cd61ef5-8429-4935-8a6c-c93f09276120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"}],"body":{"mode":"raw","raw":"{\r\n    \"CodeType\": \"Collection\",\r\n    \"Code\": \"7346436\",\r\n    \"Email\": \"lucas@keynest.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/key/ShareCode","description":"<p>You can use this endpoint if you want KeyNest to send the drop-off or collection information to someone.  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CodeType</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Code</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Email</td>\n<td>String</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>The options for CodeType are \"DropOff\" or \"Collection\". </p>\n","urlObject":{"protocol":"https","path":["api","v2","key","ShareCode"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"004bc0f6-4eda-4d93-a4a0-4cfabbccc4e3","name":"Share Code","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{Your Api Key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"CodeType\": \"Collection\",\r\n    \"Code\": \"7346436\",\r\n    \"Email\": \"lucas@keynest.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/ShareCode"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"content-length","key":"content-length","value":"559","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Fri, 15 Mar 2019 11:41:52 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"Microsoft-IIS/10.0","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""},{"name":"x-powered-by","key":"x-powered-by","value":"ASP.NET","description":""}],"cookie":[],"responseTime":null,"body":"{\"ResponseCode\":\"200\",\"Status\":\"Success\",\"ResponseMessage\":\"Email sent successfully.\",\"ResponsePacket\":{},\"Errors\":[]}"}],"_postman_id":"3cd61ef5-8429-4935-8a6c-c93f09276120"}],"id":"cb41a97c-530b-4efa-8ff6-45fefd9a03ba","event":[{"listen":"prerequest","script":{"id":"6b8125d3-d0a3-46b9-b6ae-16ef0dd2b48e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"25676d16-32f9-47f8-9e23-a69e850f0094","type":"text/javascript","exec":[""]}}],"_postman_id":"cb41a97c-530b-4efa-8ff6-45fefd9a03ba","description":""},{"name":"Webhook","item":[{"name":"Webhook","id":"0882cdc8-d90c-4cdb-ae43-e745988cf0be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{Your Webhook Url}}","urlObject":{"host":["{{Your Webhook Url}}"],"query":[],"variable":[]}},"response":[{"id":"24bcd345-0eee-415c-8de4-1e13a7329827","name":"Webhook","originalRequest":{"method":"POST","header":[],"url":"{{Your Webhook Url}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\r\n  \"CustomerId\": 1,\r\n  \"CustomerName\": \"Demo\",\r\n  \"EventName\": \"DROPPED\",\r\n  \"WhenHappened\": \"2020-11-26T15:06:54.27\",\r\n  \"StoreId\": 17,\r\n  \"StoreName\": \"Test Store\",\r\n  \"KeyName\": \"Demo key\",\r\n  \"KeyId\": \"BB2777456DBF51DCB9\",\r\n  \"Code\": null,\r\n  \"PropertyId\": null,\r\n  \"PreviousStatus\": \"In Use\",\r\n  \"CurrentStatus\": \"In Store(Test store)\",\r\n  \"CurrentUserName\": \"\",\r\n  \"CurrentUserEmail\": null,\r\n  \"CurrentUserPhoneNumber\": null,\r\n  \"CurrentUserCompany\": null,\r\n  \"HandoverMethod\": \"Keynest Store App\",\r\n  \"KeyNestAppUser\": null\r\n  \r\n}\r\n\r\n{\r\n  \"CustomerId\": 1,\r\n  \"CustomerName\": \"Demo\",\r\n  \"EventName\": \"COLLECTED\",\r\n  \"WhenHappened\": \"2020-11-26T15:06:54.27\",\r\n  \"StoreId\": 17,\r\n  \"StoreName\": \"Test store\",\r\n  \"KeyName\": \"Demo key\",\r\n  \"KeyId\": \"BB2777456DBF51DCB9\",\r\n  \"Code\": \"819180\",\r\n  \"PropertyId\": null,\r\n  \"PreviousStatus\": \"In Store(Test store)\",\r\n  \"CurrentStatus\": \"In Use\",\r\n  \"CurrentUserName\": \"\",\r\n  \"CurrentUserEmail\": null,\r\n  \"CurrentUserPhoneNumber\": null,\r\n  \"CurrentUserCompany\": null,\r\n  \"HandoverMethod\": \"Keynest Store App\",\r\n  \"KeyNestAppUser\": null\r\n  \r\n}\r\n\r\n{\r\n  \"CustomerId\": 1,\r\n  \"CustomerName\": \"Demo\",\r\n  \"EventName\": \"HANDOVER\",\r\n  \"WhenHappened\": \"2020-10-26T15:06:54.27\",\r\n  \"StoreId\": null,\r\n  \"StoreName\": \"\",\r\n  \"KeyName\": \"Demo key\",\r\n  \"KeyId\": \"BB2777456DBF51DCB9\",\r\n  \"Code\": null,\r\n  \"PropertyId\": null,\r\n  \"PreviousStatus\": \"In Use(Jack)\",\r\n  \"CurrentStatus\": \"In Use(Joseph)\",\r\n  \"CurrentUserName\": \"Joseph\",\r\n  \"CurrentUserEmail\": null,\r\n  \"CurrentUserPhoneNumber\": null,\r\n  \"CurrentUserCompany\": null,\r\n  \"HandoverMethod\": \"Keynest Website\",\r\n  \"KeyNestAppUser\": null\r\n  \r\n}\r\n\r\n{\r\n  \"CustomerId\": 1,\r\n  \"CustomerName\": \"Demo\",\r\n  \"EventName\": \"HANDOVER\",\r\n  \"WhenHappened\": \"2020-09-26T15:06:54.27\",\r\n  \"StoreId\": null,\r\n  \"StoreName\": \"\",\r\n  \"KeyName\": \"Demo key\",\r\n  \"KeyId\": \"BB2777456DBF51DCB9\",\r\n  \"Code\": null,\r\n  \"PropertyId\": null,\r\n  \"PreviousStatus\": \"In Use(Harry)\",\r\n  \"CurrentStatus\": \"In Use(Jack)\",\r\n  \"CurrentUserName\": \"Jack\",\r\n  \"CurrentUserEmail\": \"jack@keynest.com\",\r\n  \"CurrentUserPhoneNumber\": \"078345221069\",\r\n  \"CurrentUserCompany\": \"keynest\",\r\n  \"HandoverMethod\": \"Keynest Staff App\",\r\n  \"KeyNestAppUser\": \"Peter Walker\"\r\n \r\n}\r\n\r\n\r\n{\r\n  \"CustomerId\": 1,\r\n  \"CustomerName\": \"Demo\",\r\n  \"EventName\": \"COLLECTED\",\r\n  \"WhenHappened\": \"15/11/2019 17:38:38\",\r\n  \"StoreId\": 2654518,\r\n  \"StoreName\": \"KeyNest HQ\",\r\n  \"KeyName\": \"Demo key\",\r\n  \"KeyId\": \"8578850E3423B74E\",\r\n  \"Code\": null,\r\n  \"PropertyId\": \"\",\r\n  \"PreviousStatus\": \"In Store(KeyNest HQ)\",\r\n  \"CurrentStatus\": \"In Use(thomas koper)\",\r\n  \"CurrentUserName\": \"thomas koper\",\r\n  \"CurrentUserEmail\": \"\",\r\n  \"CurrentUserPhoneNumber\": \"07456326786\",\r\n  \"CurrentUserCompany\": \"KeyNest\",\r\n  \"HandoverMethod\": \"Keynest Office App\",\r\n  \"KeyNestAppUser\": null\r\n  \r\n}"}],"_postman_id":"0882cdc8-d90c-4cdb-ae43-e745988cf0be"}],"id":"d305ddff-a34e-42ae-b14c-749e3feaa226","description":"<p>For real-time updates our webhooks are more appropriate than the API to avoid unnecessary high volumes of API calls.</p>\n<p>We send webhooks for the following key movements: </p>\n<ol>\n<li>Keys collected and dropped off in our KeyNest Stores. </li>\n<li>Keys collected and dropped off in offices using our key management solution. </li>\n<li>When a key is handed over using the KeyNest Staff app.  </li>\n<li>User updates who has the keys on our website.</li>\n</ol>\n<p>Webhook data will be always be in JSon format [ JSON ]  </p>\n<p>To access webhook data ,main account holder who have api access need to login to <a href=\"https://secure.keynest.com\">https://secure.keynest.com</a> and update Webhook URL in Profile section.</p>\n<p><img src=\"https://lucasrsantos.000webhostapp.com/images/APIkey%20and%20Webhook.PNG\" alt=\"alt text\" /></p>\n","event":[{"listen":"prerequest","script":{"id":"fc1b59dd-43e6-4c0d-a3b5-54e8335e9025","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c87297d8-de89-478b-b251-67f393db15e3","type":"text/javascript","exec":[""]}}],"_postman_id":"d305ddff-a34e-42ae-b14c-749e3feaa226"},{"name":"Partner Onboarding ","item":[{"name":"Authorization","item":[],"id":"c8a3c95d-7108-4e67-a04b-8c94b2de21ca","description":"<ol>\n<li><p>Partner should add the button below on their site and redirect the user to the following url: <code>https://secure.keynest.com/Oauth/Authorization?client_id={client_id}&amp;redirect_uri={redirect_uri}&amp;scope=all&amp;state=Keynest</code></p>\n<blockquote>\n<p><img src=\"https://lucasrsantos.000webhostapp.com/images/Log%20in%20with%20KeyNest%20button.png\" alt=\"alt text\" /><br /> Please click <a href=\"https://www.figma.com/file/50jeZmodZmi5kemfgCrnEf/Log-in-with-KeyNest-button?node-id=1%3A34\">here</a> to see the design. </p>\n</blockquote>\n</li>\n<li><p>When user clicks on this button, he will be redirected to KeyNest Authorization page</p>\n</li>\n<li><p>User should login to KeyNest and allow the access to the partner.</p>\n</li>\n<li><p>After a host grants or denies your application access, your application must handle the authorization response. This response contains a <code>code</code> field which you can use to get an initial access token.</p>\n</li>\n</ol>\n<p>Example success redirect response, including an authorization code:</p>\n<p><code>https://{redirect_url}?code=055f536745054779a5fa310e13c5a7b5&amp;state=Keynest</code></p>\n","event":[{"listen":"prerequest","script":{"id":"a00043a2-8c33-43b1-a0e7-45ea21579fea","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0e67ca54-1e32-4186-a296-29d95c89b64f","type":"text/javascript","exec":[""]}}],"_postman_id":"c8a3c95d-7108-4e67-a04b-8c94b2de21ca"},{"name":"Obtain Initial Tokens","id":"4be29cfa-27ad-46c9-86b8-a7d017f49b73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Keynest-Client-Id","value":"c39tks7y1silrck6jzw8qwjsf","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"code\":\"055f536745054779a5fa310e13c5a7b5\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Oauth/Authorize","description":"<p>After the host grants access, exchange the authorization code for an access token and a refresh token via a server-to-server POST call.</p>\n<p>Every access token is valid for 2 days from date of release.\nIf token expires, partner need to request new token by passing refresh token to same end point.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Oauth","Authorize"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"c6fb0b19-9726-4a1e-9351-73f7dfe51be8","name":"Request token","originalRequest":{"method":"POST","header":[{"key":"X-Keynest-Client-Id","value":"c39tks7y1silrck6jzw8qwjsf","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"code\":\"055f536745054779a5fa310e13c5a7b5\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Oauth/Authorize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"327"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=9db3f02a32b1f6ccb0b1ec4a2b0d71fe64351b6d3571cc936313fc29cf6e64af;Path=/;HttpOnly;Domain=api.keynest.com"},{"key":"Date","value":"Sat, 16 May 2020 22:02:12 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"200\",\n    \"Status\": \"token generated successfully\",\n    \"ResponseMessage\": \"Success\",\n    \"ResponsePacket\": {\n        \"access_token\": \"754eedf856f6425aa8bfd8131837fdcc\",\n        \"token_expires\": \"2020-05-18T22:02:13.45Z\",\n        \"refresh_token\": \"d3c1df5b25a541a39a3589f019ffd363\"\n    },\n    \"Errors\": []\n}"}],"_postman_id":"4be29cfa-27ad-46c9-86b8-a7d017f49b73"},{"name":"Get new access token with the refresh token","id":"6f0d9e2e-f216-429f-90f7-28537e7b104b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Keynest-Client-Id","type":"text","value":"c39tks7y1silrck6jzw8qwjsf"}],"body":{"mode":"raw","raw":"{\n\t\"refresh_token\": \"d3c1df5b25a541a39a3589f019ffd363\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Oauth/Authorize","description":"<p>The refresh token never expires unless user restarts the OAuth method from the begining, at this point new code will be generated and code can be exchanged for new access token and refresh token.</p>\n","urlObject":{"protocol":"https","path":["api","v2","Oauth","Authorize"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"54dc4946-ee22-4f75-8b5f-f7798cf99180","name":"Get new access token with the refresh token","originalRequest":{"method":"POST","header":[{"key":"X-Keynest-Client-Id","type":"text","value":"c39tks7y1silrck6jzw8qwjsf"}],"body":{"mode":"raw","raw":"{\n    \"refresh_token\": \"d3c1df5b25a541a39a3589f019ffd363\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.keynest.com/api/v2/Oauth/Authorize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"328"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Sat, 16 May 2020 22:04:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"ResponseCode\": \"200\",\n    \"Status\": \"token generated successfully\",\n    \"ResponseMessage\": \"Success\",\n    \"ResponsePacket\": {\n        \"access_token\": \"458f83312fe64aec8e02ff94a8af2fcb\",\n        \"token_expires\": \"2020-05-18T22:04:29.413Z\",\n        \"refresh_token\": \"d3c1df5b25a541a39a3589f019ffd363\"\n    },\n    \"Errors\": []\n}"}],"_postman_id":"6f0d9e2e-f216-429f-90f7-28537e7b104b"},{"name":"Example: get list of keys with Client-Id & OAuth-Token","id":"7b92f213-71b8-4f93-82fb-2d65af3dd514","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Keynest-Client-Id","value":"c39tks7y1silrck6jzw8qwjsf","type":"text"},{"key":"X-Keynest-OAuth-Token","value":"1e18d2f864ae408bb34cfe3a262526c2","type":"text"}],"url":"https://api.keynest.com/api/v2/Key/KeyList","description":"<p>By passing Client id and Access token, any partner can access all the KeyNest API <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#5ce809d7-d94c-491b-b1fa-7467f3e3507c\">endpoints</a>. Please see an example for the Get list of keys request below. </p>\n","urlObject":{"protocol":"https","path":["api","v2","Key","KeyList"],"host":["api","keynest","com"],"query":[],"variable":[]}},"response":[{"id":"153f5f80-486f-42e2-b8e1-1961bc6e5b8a","name":"Get list of keys with Client-Id & OAuth-Token","originalRequest":{"method":"GET","header":[{"key":"X-Keynest-Client-Id","value":"c39tks7y1silrck6jzw8qwjsf","type":"text"},{"key":"X-Keynest-OAuth-Token","value":"1e18d2f864ae408bb34cfe3a262526c2","type":"text"}],"url":"https://api.keynest.com/api/v2/Key/KeyList"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Sat, 16 May 2020 15:30:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"ResponseCode\": \"200\",\r\n  \"Status\": \"Key List.\",\r\n  \"ResponseMessage\": \"Success\",\r\n  \"ResponsePacket\": {\r\n    \"KeyList\": [\r\n      {\r\n        \"KeyId\": \"ED2856B0E2B83382\",\r\n        \"KeyName\": \"KN - 345\",\r\n        \"PropertyID\": null,\r\n        \"PropertyPostcode\": null,\r\n        \"KeyNotes\": \"guest set\",\r\n        \"SubscriptionPlan\": \"pay as you go\",\r\n        \"StatusType\": \"In Store\",\r\n        \"CurrentOrLastStoreID\": 6,\r\n        \"LastMovement\": null\r\n      },\r\n      {\r\n        \"KeyId\": \"2E08F3F355E8D13B\",\r\n        \"KeyName\": \"Queen's Park key\",\r\n        \"PropertyID\": null,\r\n        \"PropertyPostcode\": null,\r\n        \"KeyNotes\": null,\r\n        \"SubscriptionPlan\": \"pay as you go\",\r\n        \"StatusType\": \"In Use\",\r\n        \"CurrentOrLastStoreID\": 1325,\r\n        \"LastMovement\": \"2019-11-09T10:18:54.89\"\r\n      },\r\n      {\r\n        \"KeyId\": \"77E7461FDA45704F\",\r\n        \"KeyName\": \"Home keys\",\r\n        \"PropertyID\": \"KN 123\",\r\n        \"PropertyPostcode\": \"TW14 9LJ\",\r\n        \"KeyNotes\": null,\r\n        \"SubscriptionPlan\": \"Monthly\",\r\n        \"StatusType\": \"Waiting for drop off\",\r\n        \"CurrentOrLastStoreID\": null,\r\n        \"LastMovement\": null\r\n      }\r\n    ]\r\n  },\r\n  \"Errors\": []\r\n}"}],"_postman_id":"7b92f213-71b8-4f93-82fb-2d65af3dd514"}],"id":"a372ec5e-ed77-4d68-8da5-8c4e35c5c6ca","description":"<p>Brief step-by-step overview of the onboarding process:</p>\n<p>You need to use a ClientId and an access token to authenticate API calls. To get them please follow the steps:</p>\n<ol>\n<li>Create an account <a href=\"https://secure.keynest.com/Register\">here</a>.</li>\n<li>Request the Partner access by calling our customer service or emailing <a href=\"mailto:support@keynest.com\">support@keynest.com</a>.</li>\n<li>Once our support team has granted you Parner access, you can generate the Client Id and add the redirect url on the partner section.</li>\n</ol>\n<p><img src=\"https://lucasrsantos.000webhostapp.com/images/partner%20page.PNG\" alt=\"alt text\" /></p>\n","event":[{"listen":"prerequest","script":{"id":"4eabaaa6-c071-423c-ae59-d8778acff475","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7a8ce164-e1be-4df1-84f2-01c209272cf7","type":"text/javascript","exec":[""]}}],"_postman_id":"a372ec5e-ed77-4d68-8da5-8c4e35c5c6ca"},{"name":"Error messages","item":[],"id":"af746808-dfb7-4650-b1ec-46a1f8c13a39","description":"<h2 id=\"new-key-with-collection-code-passing-a-storeid-for-an-inpost-locker\">New key with collection code passing a StoreId for an InPost locker</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{   \n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"The store that you chose is an InPost locker. Please use endpoint https://api.keynest.com/api/v2/Key/CreateInPostLockerKey to add a new key for an InPost locker\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"get-collection-code-passing-a-storeid-for-an-inpost-locker\">Get collection code passing a StoreId for an InPost locker</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{   \n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"The store that you chose is an InPost locker. Please use endpoint https://api.keynest.com/api/v2/Key/GetInPostLockerCodes to add a new key for an InPost locker\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"retrieve-drop-off-code-for-a-key-using-inpost-locker\">Retrieve drop off code for a key using InPost locker</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"The store that you chose is an InPost locker. Please use endpoint https://api.keynest.com/api/v2/Key/GetInPostLockerCodes to retrieve your current dropoff codes for the InPost locker\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"delete-collection-code\">Delete collection code</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"InPost codes can’t be deleted. For more information, please contact our customer service by emailing lucas@keynest.com\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"calls-without-an-api-key\">Calls without an API key</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"401\",\n\"Status\": \"Messages.AutheticationFail\",\n\"ResponseMessage\": \"API key not valid!\",\n\"ResponsePacket\": null,\n\"Errors\": null\n}\n</code></pre><h2 id=\"when-passing-a-parameter-in-the-wrong-format\">When passing a parameter in the wrong format</h2>\n<p>For example, \"StoreId\":\"5\" (string) instead of \"StoreId\":5 (int). </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Validation Error\",\n\"ResponsePacket\": null,\n\"Errors\": [\n    \"Request parameter are not in correct format\"\n]\n}\n</code></pre><h2 id=\"adding-new-key-without-specifying-if-there-is-a-subuser-or-not\">Adding new key without specifying if there is a SubUser or not.</h2>\n<p>Endpoints <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#fdd95688-c7f9-43ef-bcc6-c2758b6bc020\">New key with collection code</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Validation Error\",\n\"ResponsePacket\": null,\n\"Errors\": [\n    \"Sub Customer type required\"\n]\n}\n</code></pre><h2 id=\"adding-new-key-with-subuseryes-but-without-passing-the-subuser-email-or-name\">Adding new key with Subuser:\"yes\" but without passing the subuser email or name.</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Sub-User Name/Email error \",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"adding-a-new-key-with-the-same-keyname\">Adding a new key with the same KeyName:</h2>\n<p>Endpoints <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#fdd95688-c7f9-43ef-bcc6-c2758b6bc020\">New key with collection code</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"You already have a key with this name\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"adding-a-new-key-or-booking-a-code-for-an-inactive-store-or-if-storeid-is-missing\">Adding a new key or booking a code for an inactive Store or if StoreId is missing:</h2>\n<p>Endpoints - <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#fdd95688-c7f9-43ef-bcc6-c2758b6bc020\">New key with collection code</a>\nEndpoints <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#0d834fa6-d7a8-fbb8-458e-ef768f7bd221\">Get collection code</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Store is InActive\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-keyid-is-missing\">When keyId is missing:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"KeyId is not Valid\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-keyid-is-incorrect\">When KeyId is incorrect:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Key details not found.\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-storeid-is-missing-or-incorrect\">When StoreId is missing or incorrect:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Please provide StoreId \",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-trying-to-delete-a-collection-code-that-has-already-been-deleted-or-missing\">When trying to delete a collection code that has already been deleted or missing.</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"The Collection code is already deleted or not valid\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-trying-to-book-a-code-for-a-key-that-do-not-have-subscriptions\">When trying to book a code for a key that do not have subscriptions</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"The key has no subscription, Please add Monthly or Yearly by login to https://secure.keynest.com to generate code.\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-trying-to-find-the-nearest-store-without-specifying-address-or-latitude-longitude\">When trying to find the nearest store without specifying Address or latitude-longitude</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Address/longitude and latitude Required.\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-trying-to-find-the-nearest-store-specifying-both-address-and-latitude-longitude\">When trying to find the nearest store specifying both Address and latitude-longitude</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"Please choose either address or longitude,latitude.\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre><h2 id=\"when-we-dont-find-any-stores-with-the-parameters-give\">When we don't find any stores with the parameters give.</h2>\n<p>Endpoint - <a href=\"https://documenter.getpostman.com/view/4083681/S11EyMQU?version=latest#4ea59d64-519b-8075-3897-8342d2b0dbd6\">Store List</a>.</p>\n<p>For example, \"country\": \"UK\" or country: \"United Kingdom\", \"City\":\"Paris\". </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"ResponseCode\": \"400\",\n\"Status\": \"Failure\",\n\"ResponseMessage\": \"No record available.\",\n\"ResponsePacket\": null,\n\"Errors\": []\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"a9baed59-13fe-45c8-b4b2-6d4590d36949","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"406bce42-6950-4822-9f34-2bd0bc19dacd","type":"text/javascript","exec":[""]}}],"_postman_id":"af746808-dfb7-4650-b1ec-46a1f8c13a39"}],"event":[{"listen":"prerequest","script":{"id":"429bd0c2-13ea-4d9e-b926-8635e7291b3d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"55d8884a-a090-43b5-a7ac-541a3b2fae8f","type":"text/javascript","exec":[""]}}]}