{"info":{"_postman_id":"ff2cdced-2c35-4b2d-ab68-f890977c793e","name":"Localyser API Documentation","description":"<html><head></head><body><p>The Localyser API is designed for clients and partners to leverage the different functionality of our Online Reputation Management tool. </p>\n<p><strong>For Clients,</strong> you can pull all of your review data into your own CRM system or BI tool.</p>\n<p><strong>For Partners,</strong> you can deliver different review management functionality into your own dashboard.</p>\n<p><strong>Authentication:</strong> you will be provided with an API Key when an account is created for you.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3481387","collectionId":"ff2cdced-2c35-4b2d-ab68-f890977c793e","publishedId":"SzzoavV2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-26T10:04:45.000Z"},"item":[{"name":"Company","item":[{"name":"POST company","id":"fad49d01-2a6c-422e-abe7-6fd85c087bb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"companyName\": \"Your company name\",\r\n    \"companyType\": \"Your company type\",\r\n    \"status\": \"Active\",\r\n    \"package\": \"Standard\",\r\n    \"locationsLimit\": 50,\r\n    \"address1\": \"Your company adress\",\r\n    \"address2\": \"Your company additional adress\",\r\n    \"city\": \"Your company home city\",\r\n    \"state\": \"Your company state\",\r\n    \"country\": \"Your company country\",\r\n    \"zip\": 555555\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company","description":"<p>Post new company URL</p>\n<p>Fields:</p>\n<ul>\n<li><p><strong>companyName</strong> field is required, type 'string';</p>\n</li>\n<li><p><strong>companyType</strong> field is  required, type 'string', acceptable values are      \"Automotive\", \"Banks\", \"Cafes\", \"Business Services\", \"Education\", \"Electronics\", \"Fashion\", \"Fitness\", \"Healthcare\", \"Home Services\", \"Hotels\", \"Pharmacies\", \"Restaurants\", \"Spas\", \"Wellness\";</p>\n</li>\n<li><p><strong>status</strong> field is optional, type 'string', acceptable values are \"Active\" or \"Inactive\", default value is \"Active\";</p>\n</li>\n<li><p><strong>package</strong> field is optional, type 'string', acceptable values are \"Analyzer\", \"Lite\", \"Standard\", \"Premium\",\"Custom\",\"Free trial\", default value is \"Free trial\";</p>\n</li>\n<li><p><strong>locationsLimit</strong> field is optional, type 'integer';</p>\n</li>\n<li><p><strong>address1</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>address2</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>city</strong> field is optional, type 'string'; </p>\n</li>\n<li><p><strong>state</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>country</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>zip</strong> field is optional, type 'int';</p>\n</li>\n</ul>\n","urlObject":{"path":["v3","api","company"],"query":[],"variable":[]}},"response":[{"id":"5be6436c-0c31-4469-a6cb-5204f1b83135","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"companyType\" : \"Your company type\",\r\n    \"status\": \"Active\",\r\n    \"package\": \"Standard\",\r\n    \"locationsLimit\": 50,\r\n    \"address1\" : \"Your company adress\",\r\n    \"address2\" : \"Your company additional adress\",\r\n    \"city\" : \"Your company home city\",\r\n    \"state\" : \"Your company state\",\r\n    \"country\" : \"Your company country\",\r\n    \"zip\": 555555\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Company name parameter missing\"\r\n}"},{"id":"7557a4b9-7d48-4aea-bb14-8e3511e38e43","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"companyName\" : \"Your company name\",\r\n    \"companyType\" : \"Cafe\",\r\n    \"address1\" : \"Your company adress\",\r\n    \"address2\" : \"Your company additional adress\",\r\n    \"city\" : \"Your company home city\",\r\n    \"state\" : \"Your company state\",\r\n    \"country\" : \"Your company country\",\r\n    \"zip\": 555555\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.localyser.com/v2/api/company"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"companyName\": \"Your company name\",\r\n    \"status\": \"Active\",\r\n    \"package\": \"Standard\",\r\n    \"locationsLimit\":50,\r\n    \"sources\": [\"Facebook\", \"Google\", \"TripAdvisor\", \"Zomato\"],\r\n    \"companyType\": \"Cafe\"\r\n}"}],"_postman_id":"fad49d01-2a6c-422e-abe7-6fd85c087bb5"},{"name":"PATCH company","id":"8b71b2d9-8abf-4d00-b863-f3f2ea374020","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"companyName\" : \"Your company name\",\r\n    \"companyType\" : \"Your company type\",\r\n    \"sources\": [\"Facebook\", \"Google\", \"TripAdvisor\", \"Zomato\"],\r\n    \"status\": \"Active\",\r\n    \"package\": \"Standard\",\r\n    \"locationsLimit\": 60,\r\n    \"address1\" : \"Your company adress\",\r\n    \"address2\" : \"Your company additional adress\",\r\n    \"city\" : \"Your company home city\",\r\n    \"state\" : \"Your company state\",\r\n    \"country\" : \"Your company country\",\r\n    \"zip\": 555555,\r\n    \"isArchived\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company","description":"<p>Patch company URL</p>\n<p>Fields:</p>\n<ul>\n<li><p><strong>id</strong> field is required, type 'int';</p>\n</li>\n<li><p><strong>companyName</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>companyType</strong> field is  optional, type 'string', acceptable values are      \"Automotive\", \"Banks\", \"Cafes\", \"Business Services\", \"Education\", \"Electronics\", \"Fashion\", \"Fitness\", \"Healthcare\", \"Home Services\", \"Hotels\", \"Pharmacies\", \"Restaurants\", \"Spas\", \"Wellness\";</p>\n</li>\n<li><p><strong>sources</strong> field is optional, type 'array', array of sources names;</p>\n</li>\n<li><p><strong>status</strong> field is optional, type 'string', acceptable values are \"Active\" or \"Inactive\", default value is \"Active\";</p>\n</li>\n<li><p><strong>package</strong> field is optional, type 'string', acceptable values are \"Analyzer\", \"Lite\", \"Standard\", \"Premium\",\"Custom\",\"Free trial\", default value is \"Free trial\";</p>\n</li>\n<li><p><strong>locationsLimit</strong> field is optional, type 'integer';</p>\n</li>\n<li><p><strong>address1</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>address2</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>city</strong> field is optional, type 'string'; </p>\n</li>\n<li><p><strong>state</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>country</strong> field is optional, type 'string';</p>\n</li>\n<li><p><strong>zip</strong> field is optional, type 'int';</p>\n</li>\n<li><p><strong>isArchived</strong> field is optional, type 'boolean';</p>\n</li>\n</ul>\n","urlObject":{"path":["v3","api","company"],"query":[],"variable":[]}},"response":[{"id":"21658f84-8eb9-4a40-8719-074361d9c50f","name":"400 Error","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"zip\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Zip code is not an integer\"\r\n}"},{"id":"7ea2e277-7714-4093-b051-aabe277d1b1d","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"companyName\" : \"Your company name\",\r\n    \"companyType\" : \"Your company type\",\r\n    \"address1\" : \"Your company adress\",\r\n    \"address2\" : \"Your company additional adress\",\r\n    \"city\" : \"Your company home city\",\r\n    \"state\" : \"Your company state\",\r\n    \"country\" : \"Your company country\",\r\n    \"zip\": 555555\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"companyName\": \"Your company name\",\r\n    \"companyType\": \"Cafe\",\r\n    \"status\": \"Active\",\r\n    \"package\": \"Standart\",\r\n    \"locationsLimit\": 60,\r\n    \"sources\": [\"Facebook\", \"Google\", \"TripAdvisor\", \"Zomato\"]\r\n}"}],"_postman_id":"8b71b2d9-8abf-4d00-b863-f3f2ea374020"},{"name":"DELETE company","id":"7155de62-18b0-4375-93e4-453309918511","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\" : 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company","description":"<p>Delete company URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> field is required, type 'int';</li>\n</ul>\n<p>Id parameter can be added either to request body or request url.</p>\n","urlObject":{"path":["v3","api","company"],"query":[],"variable":[]}},"response":[{"id":"14d9ee11-6564-450b-8a36-72082c70e555","name":"200 OK","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\" : 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"companyName\": \"Your company name\",\r\n    \"companyType\": \"Cafe\"\r\n}"},{"id":"cf0a6bf1-f068-4337-92e2-e8a1037252bb","name":"400 Error","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"}],"_postman_id":"7155de62-18b0-4375-93e4-453309918511"},{"name":"GET companies","id":"ef14ae06-3f39-4145-915d-70a99bdf10f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/company","description":"<p>GET all companies URL</p>\n<p>Params:</p>\n<ul>\n<li><strong>search</strong> parameter is optional</li>\n</ul>\n","urlObject":{"path":["v3","api","company"],"query":[{"disabled":true,"key":"search","value":"Company name  we are looking for"}],"variable":[]}},"response":[{"id":"48216953-49d8-46c5-8825-12319c5bb3e5","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"url":{"raw":"/v3/api/company","path":["v3","api","company"],"query":[{"key":"search","value":"Company name  we are looking for","type":"text","disabled":true}]}},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"},{"id":"a50a3cdf-f0b7-4076-b0ca-0da105641e17","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/company","path":["v3","api","company"],"query":[{"key":"API_KEY","value":"api_key_value","disabled":true}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n    \"createdAt\": 1704067200000,\r\n    \"updatedAt\": 1704153600000,\r\n    \"id\": 150,\r\n    \"companyName\": \"Gourmet Delights Restaurant Group\",\r\n    \"email\": \"admin@gourmetdelights.com\",\r\n    \"notificationTime\": \"18:00\",\r\n    \"accessToken\": \"a1b2c3d4e5f67890\",\r\n    \"status\": \"Active\",\r\n    \"period\": \"2025-02-15\",\r\n    \"companyType\": \"Restaurants\",\r\n    \"address1\": \"123 Business Bay Tower\",\r\n    \"address2\": \"Suite 450\",\r\n    \"city\": \"Dubai\",\r\n    \"state\": \"Dubai\",\r\n    \"country\": \"United Arab Emirates\",\r\n    \"timeZone\": \"Asia/Dubai\",\r\n    \"zip\": \"12345\",\r\n    \"sourcesCount\": 9,\r\n    \"sources\": [\r\n      \"Google\",\r\n      \"Facebook\",\r\n      \"Foursquare\",\r\n      \"Zomato\",\r\n      \"TripAdvisor\",\r\n      \"Talabat\",\r\n      \"HungerStation\",\r\n      \"ReserveOut\",\r\n      \"Deliveroo\"\r\n    ],\r\n    \"competitorsSources\": [\r\n      \"Google\",\r\n      \"Facebook\",\r\n      \"TripAdvisor\"\r\n    ],\r\n    \"isArchived\": false,\r\n    \"parsingFromDate\": 1704067200000,\r\n    \"locationsLimit\": 50,\r\n    \"packageChangeDate\": \"2025-01-01\",\r\n    \"isParsingEnabled\": true,\r\n    \"package\": \"Premium\",\r\n    \"settings\": {\r\n      \"hasLocation\": true,\r\n      \"defaultLanguage\": \"en\",\r\n      \"responseLanguages\": [\"en\", \"ar\"]\r\n    },\r\n    \"isOAuthChecking\": null,\r\n    \"isGBPChecking\": null,\r\n    \"partner\": 5,\r\n    \"brands\": [\r\n      {\r\n        \"id\": 301,\r\n        \"title\": \"Gourmet Kitchen\",\r\n        \"isDefault\": false,\r\n        \"photoUrl\": \"https://cdn.localyser.com/brands/gourmet-kitchen.png\",\r\n        \"locationsCount\": 12,\r\n        \"states\": [\r\n          {\r\n            \"id\": 501,\r\n            \"title\": \"Dubai\",\r\n            \"isDefault\": false\r\n          },\r\n          {\r\n            \"id\": 502,\r\n            \"title\": \"Abu Dhabi\",\r\n            \"isDefault\": false\r\n          },\r\n          {\r\n            \"id\": 503,\r\n            \"title\": \"Sharjah\",\r\n            \"isDefault\": false\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        \"id\": 302,\r\n        \"title\": \"Urban Bites\",\r\n        \"isDefault\": false,\r\n        \"photoUrl\": \"https://cdn.localyser.com/brands/urban-bites.png\",\r\n        \"locationsCount\": 8,\r\n        \"states\": [\r\n          {\r\n            \"id\": 504,\r\n            \"title\": \"Dubai Marina\",\r\n            \"isDefault\": false\r\n          },\r\n          {\r\n            \"id\": 505,\r\n            \"title\": \"JBR\",\r\n            \"isDefault\": false\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        \"id\": 303,\r\n        \"title\": \"Other\",\r\n        \"isDefault\": true,\r\n        \"photoUrl\": null,\r\n        \"locationsCount\": 2,\r\n        \"states\": [\r\n          {\r\n            \"id\": 506,\r\n            \"title\": \"Other\",\r\n            \"isDefault\": true\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n]"}],"_postman_id":"ef14ae06-3f39-4145-915d-70a99bdf10f7"},{"name":"request to Localyser owner create company and admin user","id":"122aad20-4349-4d86-bee9-7e71df4a27ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"companyName\": \"Your company name\",\r\n    \"package\": \"Standard\",\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"locationsLimit\": 50,\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"mobile\": \"8065645465\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company/byOwner","description":"<p>Post the request to the Localyser owner to create a new company and admin user</p>\n<p>Fields:</p>\n<ul>\n<li><strong>companyName</strong> field is required, type 'string', value limit to 100 characters;</li>\n<li><strong>package</strong> field is required, type 'string', acceptable values are \"Analyzer\", \"Lite\", \"Standard\", \"Premium\",\"Custom\",\"Free trial\", default value is \"Free trial\";</li>\n<li><strong>firstName</strong> field is required, type 'string', value limit to 100 characters;</li>\n<li><strong>lastName</strong> field is required, type 'string', value limit to 100 characters;</li>\n<li><strong>locationsLimit</strong> field is required, type 'integer';</li>\n<li><strong>email</strong> field is required, type 'string';</li>\n<li><strong>mobile</strong> field is required, type 'string';</li>\n</ul>\n<p>The system validates the company user email, check the value uniqueness.</p>\n","urlObject":{"path":["v3","api","company","byOwner"],"query":[],"variable":[]}},"response":[{"id":"0620aca5-2eeb-4b59-99ea-a2c9d7fcc8ad","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"companyName\": \"Your company name\",\r\n    \"package\": \"Standard\",\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"locationsLimit\": 50,\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"mobile\": \"8065645465\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"/v3/api/company/byOwner","path":["v3","api","company","byOwner"],"query":[{"key":"API_KEY","value":"api_key_value","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 169,\r\n    \"companyName\": \"Test company#155\",\r\n    \"package\": \"Standard\"\r\n}\r\n"},{"id":"e72f347a-bf33-4c9b-bd84-dba8809dbdfb","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"package\": \"Standard\",\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"locationsLimit\": 50,\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"mobile\": \"8065645465\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/company/byOwner"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Company name parameter missing\"\r\n}"}],"_postman_id":"122aad20-4349-4d86-bee9-7e71df4a27ab"},{"name":"GET company by id","id":"b0975417-f980-4ef2-856a-850ef989418d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/company/:id","urlObject":{"path":["v3","api","company",":id"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"4e6c3a11-1f7c-4c2b-8534-5a34051d7623","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/company/:id","path":["v3","api","company",":id"],"variable":[{"key":"id","value":""}]}},"code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"    {\r\n        \"id\": 1,\r\n        \"companyName\": \"Your company name\",\r\n        \"accessToken\": \"<accessToken>\",\r\n        \"status\": \"Active\",\r\n        \"companyType\": \"Cafe\",\r\n        \"address1\": \"<address1>\",\r\n        \"address2\": \"<address2>\",\r\n        \"city\": \"<city>\",\r\n        \"state\": \"<state>\",\r\n        \"country\": \"<country>\",\r\n        \"timeZone\": \"UTC\",\r\n        \"zip\": null,    \r\n        \"sources\": [\"Google\"],\r\n        \"competitorsSources\": [\"Google\"],\r\n        \"isArchived\": false,\r\n        \"package\": \"Standard\",\r\n        \"locationsLimit\": 50,\r\n        \"locationsInUse\": 10,\r\n        \"createdAt\": 1592998609548,\r\n        \"updatedAt\": 1592998609548,\r\n        \"users\": [\r\n            {\r\n                \"id\":1,\r\n                \"firstName\":\"User first name\",\r\n                \"lastName\":\"User last name\",\r\n                \"email\": \"useremail@gmail.com\",\r\n                \"mobile\": 654654654,\r\n                \"role\": \"Master Admin\"\r\n\r\n            }\r\n        ],\r\n        \"brands\": [\r\n            {\r\n                \"id\": 1,\r\n                \"title\": \"Brand Title\",\r\n                \"isDefault\": true,\r\n                \"photoUrl\": \"<imageLink>\",\r\n                \"locationsCount\": 1,\r\n                \"states\": [\r\n                    {\r\n                        \"id\": 40514,\r\n                        \"title\": \"State Title\",\r\n                        \"isDefault\": true\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    }    "},{"id":"a9745c3c-9049-421a-9067-5ddff0f35365","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/company/:id","path":["v3","api","company",":id"],"variable":[{"key":"id","value":"10000"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"There is no company with such id = 10000 or you have no access\"\r\n}\r\n"}],"_postman_id":"b0975417-f980-4ef2-856a-850ef989418d"},{"name":"POST check email uniqueness","id":"483dbe55-f348-4b32-bbd0-0552bd9a6421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"test_email@gmail.com\"\r\n}"},"url":"/v3/api/email/check","description":"<p>Post request to check email uniqueness</p>\n<p>Fields:</p>\n<ul>\n<li><strong>email</strong> field is required, type 'string';</li>\n</ul>\n<p>The response can have two values: \"You can use this email\" or \"Email already in use\"</p>\n","urlObject":{"path":["v3","api","email","check"],"query":[],"variable":[]}},"response":[{"id":"7c22b082-4f4b-47d2-a4b9-a45a012d6fad","name":"202 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"test_email@gmail.com\"\r\n}"},"url":"/v3/api/email/check"},"code":202,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    message: \"Email already in use\"\r\n}"},{"id":"deed63c5-531f-46f7-a98c-f831efb387a0","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"/v3/api/email/check"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Email parameter missing\"\r\n}"},{"id":"e1e5af2a-3a16-486e-8efa-067a843327b0","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"test_email@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/email/check"},"code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    message: \"You can use this email\"\r\n}"}],"_postman_id":"483dbe55-f348-4b32-bbd0-0552bd9a6421"}],"id":"bc76b54b-0c72-40fa-9135-4fdd72a13f9c","description":"<p><strong>For Partners Only:</strong> A Company is required for each client which is organized by Brand and region (suitable for multi-location clients). You can add, patch, delete or get Company accounts.</p>\n","_postman_id":"bc76b54b-0c72-40fa-9135-4fdd72a13f9c"},{"name":"Reviews","item":[{"name":"GET reviews","id":"75a40b49-bd83-471a-ab0a-a8570369604f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"url":"/v3/api/reviews","description":"<p>GET all reviews info URL</p>\n<p>Params:</p>\n<ul>\n<li><strong>page</strong> parameter is optional, by default page = 1;</li>\n<li><strong>services</strong> parameter is optional, comma separated services names;</li>\n<li><strong>locations</strong> parameter is optional, comma separated locations ids;</li>\n<li><strong>states</strong> parameter is optional, comma separated states ids;</li>\n<li><strong>date_from</strong> parameter is optional, format yyyy-mm-dd;</li>\n<li><strong>date_to</strong> parameter is optional, format yyyy-mm-dd;</li>\n<li><strong>rating</strong> parameter is optional, comma separated review rating from 1 to 5;</li>\n<li><strong>direction</strong> parameter is optional, sort direction 'asc' 'desc';</li>\n<li><strong>order</strong> parameter is optional, sort by \"date\", \"sentiment\", \"length\";</li>\n</ul>\n<p>Request return 20 reviews per page, by default review ordered by date from new to old.</p>\n<p>If you set the page parameter to value that not exist, system return empty array.</p>\n","urlObject":{"path":["v3","api","reviews"],"query":[{"disabled":true,"key":"page","value":"1"},{"disabled":true,"key":"services","value":"google,facebook"},{"disabled":true,"key":"locations","value":"1,2"},{"disabled":true,"key":"states","value":"1,2"},{"disabled":true,"key":"date_from","value":"2020-03-01"},{"disabled":true,"key":"date_to","value":"2020-06-20"},{"disabled":true,"key":"rating","value":"4"},{"disabled":true,"key":"direction","value":"desc"},{"disabled":true,"key":"order","value":"date"}],"variable":[]}},"response":[{"id":"8c1c6971-2bab-4b5a-8c11-d81e4d4f06be","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/reviews?page=1","path":["v3","api","reviews"],"query":[{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 1,\r\n    \"per_page\": 20,\r\n    \"total_pages\": 1,\r\n    \"reviews\": [\r\n        {   \"id\": 1,\r\n            \"serviceName\": \"google\",\r\n            \"name\": \"Reviewer name\",\r\n            \"date\": \"Reviewe date\",\r\n            \"ratingValue\": \"Review rating value\",\r\n            \"reviewText\": \"Review text\",\r\n            \"url\": \"Review url\",\r\n            \"location\": 2000\r\n        }\r\n    ]\r\n}"},{"id":"ba159f73-790d-4f1a-975a-05c86a1a88b6","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"url":{"raw":"/v3/api/reviews","path":["v3","api","reviews"],"query":[{"key":"page","value":"1","disabled":true},{"key":"services","value":"google,facebook","disabled":true},{"key":"locations","value":"1,2","disabled":true},{"key":"states","value":"1,2","disabled":true},{"key":"date_from","value":"2020-03-01","disabled":true},{"key":"date_to","value":"2020-06-20","disabled":true},{"key":"rating","value":"4","disabled":true},{"key":"direction","value":"desc","disabled":true},{"key":"order","value":"date","disabled":true}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"}],"_postman_id":"75a40b49-bd83-471a-ab0a-a8570369604f"},{"name":"GET info","id":"8e9a37c1-8b35-4253-b412-1555a890b23a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/locations/reviews","description":"<p>GET all locations average star rating and number of reviews info URL</p>\n<p>Params:</p>\n<ul>\n<li><strong>page</strong> parameter is optional, by default page = 1;</li>\n</ul>\n<p>Request return 20 reviews per page.</p>\n<p>If you set the page parameter to value that not exist, system return empty array.</p>\n","urlObject":{"path":["v3","api","locations","reviews"],"query":[{"disabled":true,"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"9c0aef2f-0436-49f5-bece-f188e6647ad4","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"url":{"raw":"/v3/api/locations/reviews?page=1","path":["v3","api","locations","reviews"],"query":[{"key":"page","value":"1"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 1,\r\n    \"per_page\": 20,\r\n    \"total_pages\": 1,\r\n    \"locations\": \r\n        [\r\n            {\r\n                \"id\": 1,\r\n                \"title\": \"Your location title\",\r\n                \"locationId\": \"Your location id\",\r\n                \"google\": {\r\n                    \"avarageRating\": 4.5,\r\n                    \"amount\": 152\r\n                },\r\n                \"facebook\": {\r\n                    \"avarageRating\": 4.8,\r\n                    \"amount\": 252\r\n                }\r\n                \r\n            }\r\n        ]\r\n}"},{"id":"9f0f1f10-64a3-4684-a669-a1062ca721de","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/locations/reviews","path":["v3","api","locations","reviews"],"query":[{"key":"page","value":"1","disabled":true}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"}],"_postman_id":"8e9a37c1-8b35-4253-b412-1555a890b23a"}],"id":"78a09fba-df27-4111-a92e-efebaf46aecf","description":"<p><strong>For Clients &amp; Partners:</strong> Get all review data including review date, source, rating, text and reviewer name. </p>\n<p><strong>For Partners Only:</strong> Get the average rating per platform and the number of reviews updated weekly.</p>\n","_postman_id":"78a09fba-df27-4111-a92e-efebaf46aecf"},{"name":"Location","item":[{"name":"POST location","id":"f9f05a9f-8f92-4562-a7f2-41ea660ccb48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"sources\": [\r\n        {\r\n            \"title\": \"Google\",\r\n            \"url\": \"https://www.google.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Zomato\",\r\n            \"url\": \"https://www.zomato.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location","description":"<p>Post new location URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>title</strong> field is required, type 'string';</li>\n<li><strong>locationId</strong> field is required, type 'string';</li>\n<li><strong>state</strong> field is required, it's state id value, type 'int';</li>\n<li><strong>sources</strong> field is required, type 'array', array of objects with title and url values, acceptable title values are \"Agoda, Airbnb, AliExpress, AlternativeTo, Amazon France, Amazon US, Apartmentratings, Apartments, Apple Appstore, Avvo, BBB, BookATable, Booking, Capterra, CarGurus, Cars.com, Citysearch, Classpass, Consumer Affairs, CreditKarma, CustomerLobby, DealerRater, Deliveroo, Ebay, Edmunds, Etsy, Expedia, Facebook, Feedback, FindLaw, Foursquare, G2Crowd, Gartner, Glassdoor, Google, Google Playstore, Google Shopping, Greatschools, Healthgrades, HomeAdvisor, HomeAway, Homestars, Hotels.com, Houzz, HungerStation, IT Central Station, Indeed, Influenster, Insider Pages, Lawyers.com, Lending Tree, Martindale, Niche, OpenRice, Opentable, ProductHunt, ProductReview.com.au, RateMDs, ReserveOut, Sitejabber, SoftwareAdvice, Talabat, The Knot, Thumbtack, TripAdvisor, Trulia, TrustRadius, TrustedShops, Trustpilot, UberEats, Vitals, Walmart, WeddingWire, Yell, YellowPages, Yelp, Zillow, ZocDoc, Zomato\" ;</li>\n<li><strong>locationAddress</strong> field is optional, type 'string';</li>\n<li><strong>phoneNumber</strong> field is optional, type 'string'; </li>\n<li><strong>websiteAddress</strong> field is optional, type 'string';</li>\n</ul>\n<p><strong>Pay attention there are main sources and additional sources, sources you have access to sets Localyser Admin!!!</strong> </p>\n","urlObject":{"path":["v3","api","location"],"query":[],"variable":[]}},"response":[{"id":"77b2a4a8-2fc7-4a7e-9e38-810ef22b96f9","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"sources\": [\r\n        {\r\n            \"title\": \"Google\",\r\n            \"url\": \"https://www.google.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Zomato\",\r\n            \"url\": \"https://www.zomato.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Title or locationId parameter missing\"\r\n}"},{"id":"994af9c9-f873-45c0-b964-00465e871e8b","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"sources\": [\r\n        {\r\n            \"title\": \"Google\",\r\n            \"url\": \"https://www.google.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Zomato\",\r\n            \"url\": \"https://www.zomato.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{   \r\n    \"id\": 1,\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"google\": \"https://www.google.com/....\",\r\n    \"tripadvisor\": \"https://www.tripadvisor.com/....\",\r\n    \"zomato\": \"https://www.zomato.com/....\",\r\n    \"reserveOut\": \"https://www.reserveOut.com/....\",\r\n    \"facebook\": \"https://www.facebook.com/....\",\r\n    \"foursquare\": \"https://www.foursquare.com/....\",\r\n    \"talabat\": \"https://www.talabat.com/....\",\r\n    \"hungerStation\": \"https://www.hungerStation.com/....\",\r\n    \"booking\": \"https://www.booking.com/....\",\r\n    \"expedia\": \"https://www.expedia.com/....\",\r\n    \"additionalSources\": [\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"f9f05a9f-8f92-4562-a7f2-41ea660ccb48"},{"name":"PATCH location","id":"34dbc22a-deec-4340-a52d-378731fe52d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{   \"id\": 1,\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"sources\": [\r\n        {\r\n            \"title\": \"Google\",\r\n            \"url\": \"https://www.google.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Zomato\",\r\n            \"url\": \"https://www.zomato.com/....\"\r\n        },\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location","description":"<p>Patch location URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> filed is required, type 'int';</li>\n<li><strong>title</strong> field is optional, type 'string';</li>\n<li><strong>locationId</strong> field is optional, type 'string';</li>\n<li><strong>state</strong> field is optional, it's state id value, type 'int';</li>\n<li><strong>locationAddress</strong> field is optional, type 'string';</li>\n<li><strong>phoneNumber</strong> field is optional, type 'string'; </li>\n<li><strong>websiteAddress</strong> field is optional, type 'string';</li>\n<li><strong>sources</strong> field is optional, type 'array', array of objects with title and url values, acceptable title values are \"Agoda, Airbnb, AliExpress, AlternativeTo, Amazon France, Amazon US, Apartmentratings, Apartments, Apple Appstore, Avvo, BBB, BookATable, Booking, Capterra, CarGurus, Cars.com, Citysearch, Classpass, Consumer Affairs, CreditKarma, CustomerLobby, DealerRater, Deliveroo, Ebay, Edmunds, Etsy, Expedia, Facebook, Feedback, FindLaw, Foursquare, G2Crowd, Gartner, Glassdoor, Google, Google Playstore, Google Shopping, Greatschools, Healthgrades, HomeAdvisor, HomeAway, Homestars, Hotels.com, Houzz, HungerStation, IT Central Station, Indeed, Influenster, Insider Pages, Lawyers.com, Lending Tree, Martindale, Niche, OpenRice, Opentable, ProductHunt, ProductReview.com.au, RateMDs, ReserveOut, Sitejabber, SoftwareAdvice, Talabat, The Knot, Thumbtack, TripAdvisor, Trulia, TrustRadius, TrustedShops, Trustpilot, UberEats, Vitals, Walmart, WeddingWire, Yell, YellowPages, Yelp, Zillow, ZocDoc, Zomato\" ;</li>\n</ul>\n<p><strong>Pay attention there are main sources and additional sources, sources you have access to sets Localyser Admin!!!</strong> </p>\n","urlObject":{"path":["v3","api","location"],"query":[],"variable":[]}},"response":[{"id":"2578eaab-e991-4b1f-bb1b-ab01e9354bab","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{   \"id\": 1,\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{   \r\n    \"id\": 1,\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"google\": \"https://www.google.com/....\",\r\n    \"tripadvisor\": \"https://www.tripadvisor.com/....\",\r\n    \"zomato\": \"https://www.zomato.com/....\",\r\n    \"reserveOut\": \"https://www.reserveOut.com/....\",\r\n    \"facebook\": \"https://www.facebook.com/....\",\r\n    \"foursquare\": \"https://www.foursquare.com/....\",\r\n    \"talabat\": \"https://www.talabat.com/....\",\r\n    \"hungerStation\": \"https://www.hungerStation.com/....\",\r\n    \"booking\": \"https://www.booking.com/....\",\r\n    \"expedia\": \"https://www.expedia.com/....\",\r\n    \"additionalSources\": [\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}"},{"id":"f9a345a6-324e-4233-92e7-963f54d8a68a","name":"400 Error","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{   \r\n    \"title\": \"Your location title\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"}],"_postman_id":"34dbc22a-deec-4340-a52d-378731fe52d7"},{"name":"DELETE location","id":"107d9293-4767-414a-9c5e-f438ebb11aa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location","description":"<p>Delete location URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> field is required, type 'int';</li>\n</ul>\n","urlObject":{"path":["v3","api","location"],"query":[],"variable":[]}},"response":[{"id":"a99296e9-778e-418e-ba67-34974469cd3c","name":"200 OK","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{   \"id\": 1,\r\n    \"title\": \"Your location title\",\r\n    \"locationId\": \"Your location id\",\r\n    \"state\": 1,\r\n    \"locationAddress\": \"Your location adress\",\r\n    \"phoneNumber\": \"Your location phone number\",\r\n    \"websiteAddress\": \"Your location web site\",\r\n    \"google\": \"https://www.google.com/....\",\r\n    \"tripadvisor\": \"https://www.tripadvisor.com/....\",\r\n    \"zomato\": \"https://www.zomato.com/....\",\r\n    \"reserveOut\": \"https://www.reserveOut.com/....\",\r\n    \"facebook\": \"https://www.facebook.com/....\",\r\n    \"foursquare\": \"https://www.foursquare.com/....\",\r\n    \"talabat\": \"https://www.talabat.com/....\",\r\n    \"hungerStation\": \"https://www.hungerStation.com/....\",\r\n    \"booking\": \"https://www.booking.com/....\",\r\n    \"expedia\": \"https://www.expedia.com/....\",\r\n    \"additionalSources\": [\r\n        {\r\n            \"title\": \"Agoda\",\r\n            \"url\": \"https://www.agoda.com/....\"\r\n        }\r\n    ]\r\n}"},{"id":"e9b80068-90b8-47a1-a099-893eaf044a8a","name":"400 Error","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"/v3/api/location"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"}],"_postman_id":"107d9293-4767-414a-9c5e-f438ebb11aa2"},{"name":"GET locations","id":"19aad43a-2b28-420e-a1d9-6ed5bfff3354","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/location","description":"<p>GET all locations URL</p>\n<p>Params:</p>\n<ul>\n<li><strong>page</strong> parameter is optional, by default page = 1;</li>\n<li><strong>search</strong> parameter is optional;</li>\n</ul>\n<p>Request return 20 locations per page.</p>\n<p>If you set page parameter to value that not exist, system return empty array.</p>\n","urlObject":{"path":["v3","api","location"],"query":[{"disabled":true,"key":"page","value":"1"},{"disabled":true,"key":"search","value":"Location title ot location id"}],"variable":[]}},"response":[{"id":"22d6ffc5-9a73-44f4-b1f2-033162ea423d","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/company","path":["v3","api","company"],"query":[{"key":"page","value":"1","disabled":true},{"key":"search","value":"Location title ot location id","type":"text","disabled":true}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"},{"id":"c7f77816-6c93-4aae-9867-384a53371c10","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/company"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 1,\r\n    \"per_page\": 20,\r\n    \"total_pages\": 1,\r\n    \"locations\": [\r\n        {   \r\n            \"id\": 1,\r\n            \"title\": \"Your location title\",\r\n            \"locationId\": \"Your location id\",\r\n            \"state\": 1,\r\n            \"locationAddress\": \"Your location adress\",\r\n            \"phoneNumber\": \"Your location phone number\",\r\n            \"websiteAddress\": \"Your location web site\",\r\n            \"google\": \"https://www.google.com/....\",\r\n            \"tripadvisor\": \"https://www.tripadvisor.com/....\",\r\n            \"zomato\": \"https://www.zomato.com/....\",\r\n            \"reserveOut\": \"https://www.reserveOut.com/....\",\r\n            \"facebook\": \"https://www.facebook.com/....\",\r\n            \"foursquare\": \"https://www.foursquare.com/....\",\r\n            \"talabat\": \"https://www.talabat.com/....\",\r\n            \"hungerStation\": \"https://www.hungerStation.com/....\",\r\n            \"booking\": \"https://www.booking.com/....\",\r\n            \"expedia\": \"https://www.expedia.com/....\",\r\n            \"additionalSources\": [\r\n                                    {\r\n                                        \"title\": \"Agoda\",\r\n                                        \"url\": \"https://www.agoda.com/....\"\r\n                                    }\r\n                                ]\r\n        }\r\n    ]\r\n}"}],"_postman_id":"19aad43a-2b28-420e-a1d9-6ed5bfff3354"}],"id":"9683d358-e567-44ff-9281-bdab54af639b","description":"<p><strong>For Partners Only:</strong> Every company can have one or many locations organized by brand and region. A partner can add, patch, delete, get company locations.</p>\n","_postman_id":"9683d358-e567-44ff-9281-bdab54af639b"},{"name":"User","item":[{"name":"POST user","id":"2abc890d-9e87-4e58-8ce6-171cace19035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user","description":"<p>Post new user URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>firstName</strong> field is required, type 'string';</li>\n<li><strong>lastName</strong> field is required, type 'string';</li>\n<li><strong>email</strong> field is required, type 'string';</li>\n<li><strong>role</strong> field is required, type 'string', acceptable values are \"Analyst\", \"Manager\", \"Responder\", \"Master Admin\"</li>\n</ul>\n","urlObject":{"path":["v3","api","user"],"query":[],"variable":[]}},"response":[{"id":"17e54b86-075b-4015-ba1b-ccd064563bb7","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\",\r\n    \"client\": 1\r\n}\r\n"},{"id":"601f8e34-01b4-40ef-8b2d-ec4b75a3d424","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Parameter missing check firstName and lastName\"\r\n}"}],"_postman_id":"2abc890d-9e87-4e58-8ce6-171cace19035"},{"name":"PATCH user","id":"22a067f1-6c38-4c43-9990-c0df255acef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user","description":"<p>Patch user URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> filed is required, type 'int';</li>\n<li><strong>firstName</strong> field is optional, type 'string';</li>\n<li><strong>lastName</strong> field is optional, type 'string';</li>\n<li><strong>email</strong> field is optional, type 'string';</li>\n<li><strong>role</strong> field is optional, type 'string', acceptable values are \"Analyst\", \"Manager\", \"Responder\", \"Master Admin\";</li>\n</ul>\n","urlObject":{"path":["v3","api","user"],"query":[],"variable":[]}},"response":[{"id":"0cf273b3-5fa2-49f0-aed3-84b30d9d919d","name":"400 Error","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"},{"id":"2a4ed2b6-80dc-4a22-b3d0-ae5c2f7026f2","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\"\r\n}"}],"_postman_id":"22a067f1-6c38-4c43-9990-c0df255acef9"},{"name":"DELETE user","id":"049a7f3a-ecab-42a0-841d-3b4170f75d77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user","description":"<p>Delete user URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> field is required, type 'int';</li>\n</ul>\n","urlObject":{"path":["v3","api","user"],"query":[],"variable":[]}},"response":[{"id":"2fd4d6a1-0f80-4d6f-9d7e-4c96096dec20","name":"200 OK","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"firstName\": \"Test\",\r\n    \"lastName\": \"Test\",\r\n    \"email\": \"testuser@gmail.com\",\r\n    \"role\": \"Master Admin\",\r\n    \"client\": 1\r\n}"},{"id":"778b4f2b-b426-40d6-a00c-9173030568b6","name":"400 Error","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"api_key_value"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"/v3/api/user"},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"}],"_postman_id":"049a7f3a-ecab-42a0-841d-3b4170f75d77"},{"name":"GET users","id":"dea0c178-de8a-4a03-a8df-51e065ff01d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/user","description":"<p>GET all users URL</p>\n<p>Params:</p>\n<ul>\n<li><strong>search</strong> parameter is optional</li>\n</ul>\n","urlObject":{"path":["v3","api","user"],"query":[{"disabled":true,"key":"search","value":"User first or second name"}],"variable":[]}},"response":[{"id":"5860a92f-6f22-4725-b18f-64394e596b0e","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":""},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"id\": 1,\r\n        \"firstName\": \"Test\",\r\n        \"lastName\": \"Test\",\r\n        \"email\": \"testuser@gmail.com\",\r\n        \"role\": \"Master Admin\",\r\n        \"client\": 1\r\n    }\r\n]"},{"id":"fbd9a67d-58f1-44fc-83af-97a215174f48","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"/v3/api/user","path":["v3","api","user"],"query":[{"key":"search","value":"User first or second name","type":"text","disabled":true}]}},"code":400,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"}],"_postman_id":"dea0c178-de8a-4a03-a8df-51e065ff01d2"}],"id":"67835412-9e33-4680-9e92-e5c5f6a25022","description":"<p>For Partners Only: Every company can have unlimited number of users with different permission roles. A partner can add, patch, delete, get users for a Company account.</p>\n","_postman_id":"67835412-9e33-4680-9e92-e5c5f6a25022"},{"name":"Brand","item":[{"name":"POST brand","id":"36630409-3d43-4dee-a333-187472d1eeba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Brand title\"\r\n}"},"url":"/v3/api/brand","description":"<p>Post new brand URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>title</strong> field is required, type 'string';</li>\n</ul>\n","urlObject":{"path":["v3","api","brand"],"query":[],"variable":[]}},"response":[{"id":"2835fd38-8af3-46b7-9440-b46b1eb79815","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Brand title\"\r\n}"},"url":""},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"title\": \"Brand title\",\r\n    \"client\": 1 \r\n}"},{"id":"39a558c9-e04e-4473-ba41-d83986908489","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"/v3/api/brand"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Title parameter missing\"\r\n}"}],"_postman_id":"36630409-3d43-4dee-a333-187472d1eeba"},{"name":"PATCH brand","id":"e98d433b-fd29-45ef-b2c2-779209817079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"title\": \"New Brand title\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/brand","description":"<p>Patch brand URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> filed is required, type 'int';</li>\n<li><strong>title</strong> field is required, type 'string';</li>\n</ul>\n","urlObject":{"path":["v3","api","brand"],"query":[],"variable":[]}},"response":[{"id":"1e3a47c2-eeeb-428e-bb1c-e87aef9ccdef","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"title\": \"New brand title\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/brand"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"title\": \"New brand title\",\r\n    \"client\": 1 \r\n}"},{"id":"dc612671-69a2-41bf-ae14-cd3d790b5e18","name":"400 Error","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"New Brand title\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/brand"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"}],"_postman_id":"e98d433b-fd29-45ef-b2c2-779209817079"},{"name":"GET brands","id":"7c883d57-a9d2-4eda-8552-7c839fd0699a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/brand","description":"<p>GET all brands URL</p>\n","urlObject":{"path":["v3","api","brand"],"query":[],"variable":[]}},"response":[{"id":"a42968fa-f246-4525-8fdd-66694591e0ff","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/brand"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"},{"id":"f852985c-c9a7-464b-954a-823850ab491a","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/brand"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"id\": 1,\r\n        \"title\": \"New brand title\",\r\n        \"client\": 1 \r\n    }\r\n]"}],"_postman_id":"7c883d57-a9d2-4eda-8552-7c839fd0699a"}],"id":"75972713-45b2-4511-847a-da8827b3de8d","description":"<p>A company can have brands.</p>\n","_postman_id":"75972713-45b2-4511-847a-da8827b3de8d"},{"name":"State","item":[{"name":"POST state","id":"45b81c08-e9d6-4c51-b0b9-ae3cdacc1c64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"State title\",\r\n    \"brand\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state","description":"<p>Post new state URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>title</strong> field is required, type 'string';</li>\n<li><strong>brand</strong> field is required, type 'int';</li>\n</ul>\n","urlObject":{"path":["v3","api","state"],"query":[],"variable":[]}},"response":[{"id":"4157aceb-7f7a-42cd-93fe-f54e1863c446","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"brand\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Title or brand parameter missing\"\r\n}"},{"id":"86dfb0e1-37b5-41e8-a8e6-81d8bccdcf47","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"State title\",\r\n    \"brand\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"title\": \"State title\",\r\n    \"brandTitle\": \"New brand title\",\r\n    \"brand\": 1\r\n}"}],"_postman_id":"45b81c08-e9d6-4c51-b0b9-ae3cdacc1c64"},{"name":"PATCH state","id":"076baad1-5513-4164-98e7-e1daaf91a7b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"title\": \"New state title\",\r\n    \"brand\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state","description":"<p>Patch state URL</p>\n<p>Fields:</p>\n<ul>\n<li><strong>id</strong> filed is required, type 'int';</li>\n<li><strong>title</strong> field is optional, type 'string';</li>\n<li><strong>brand</strong> field is optional, type 'int';</li>\n</ul>\n<p>One of the optional fields should be passed.</p>\n","urlObject":{"path":["v3","api","state"],"query":[],"variable":[]}},"response":[{"id":"c6c5cf2a-f4d2-4cb5-9dd0-8e9e7aa03d86","name":"400 Error","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"New state title\",\r\n    \"brand\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Id parameter missing\"\r\n}"},{"id":"e52c194e-2c15-487e-84a4-be697cc31593","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"title\": \"New state title\",\r\n    \"brand\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"/v3/api/state"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"title\": \"New state title\",\r\n    \"brandTitle\": \"Brand #2\",\r\n    \"brand\": 2\r\n}"}],"_postman_id":"076baad1-5513-4164-98e7-e1daaf91a7b5"},{"name":"GET states","id":"f9084e0b-4f0b-4460-b01b-23854315d9fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/state","description":"<p>GET all states URL</p>\n","urlObject":{"path":["v3","api","state"],"query":[],"variable":[]}},"response":[{"id":"43846c7b-9e8c-4a89-9062-2d9e10fa6583","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/state"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"details\": \"Some data base error\"\r\n}"},{"id":"c735decb-0e16-4805-bfb1-34ad4779eaa8","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":"/v3/api/state"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"id\": 1,\r\n        \"title\": \"New state title\",\r\n        \"brandTitle\": \"Brand #2\",\r\n        \"brand\": 2\r\n    }\r\n]"}],"_postman_id":"f9084e0b-4f0b-4460-b01b-23854315d9fa"}],"id":"4d34e792-8d5c-4290-9171-e39d1ee10a31","description":"<p>A company brand can have states.</p>\n","_postman_id":"4d34e792-8d5c-4290-9171-e39d1ee10a31"},{"name":"IFrame","item":[{"name":"POST IframeToken","id":"89b7b7a0-ce8a-4305-913c-c8d2f4c87d36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-token","value":"api_key_value","type":"text"}],"url":"v3/api/iframe-token?location_id=","description":"<p>Generate a secure JWT token for iframe integration that allows external applications to embed Localyser reviews with limited, location-specific access.</p>\n<p><strong>Token Validity:</strong></p>\n<ul>\n<li><p>Duration: 24 hours (86400 seconds)</p>\n</li>\n<li><p>Refresh: Tokens cannot be refreshed - new token generation required</p>\n</li>\n<li><p>Single Use: Each token is tied to a specific location and optionally a review</p>\n</li>\n</ul>\n<p><strong>Token Payload:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"locationId\": \"9650\",\n  \"clientId\": 570,\n  \"iat\": 1757512711,\n  \"exp\": 1757599111\n}\n\n</code></pre><p>FIelds:</p>\n<ul>\n<li>location_id field is required, type 'string';</li>\n</ul>\n","urlObject":{"path":["api","iframe-token"],"host":["v3"],"query":[{"description":{"content":"<p>Location identifier - must be a valid location ID that belongs to the authenticated client. This location will be the only one accessible through the generated token.</p>\n","type":"text/plain"},"key":"location_id","value":""}],"variable":[]}},"response":[{"id":"40f7a7fa-6d43-479d-89f1-ca9c5bee4a6f","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"api_key_value","type":"text"}],"url":{"raw":"v3/api/iframe-token?location_id=9650","host":["v3"],"path":["api","iframe-token"],"query":[{"key":"location_id","value":"9650","description":"The ID of the location for which to generate the iframe token"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n  \"authToken\": \"{{vault:json-web-token}}\",\r\n  \"expiresIn\": 86400,\r\n  \"locationId\": \"9650\",\r\n  \"clientId\": 570\r\n}"}],"_postman_id":"89b7b7a0-ce8a-4305-913c-c8d2f4c87d36"},{"name":"GET IFrame Reviews","id":"aa8f6caf-2918-4fae-a1bb-60bab1462f94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":".../reviews?locations=location_id_value&view=[2,3]&auth_token=token_value","description":"<h2 id=\"custom-styling--theming---query-parameters\">Custom Styling &amp; Theming - Query Parameters</h2>\n<h3 id=\"overview\">Overview</h3>\n<p>The iframe integration supports extensive visual customization through URL query parameters, allowing you to seamlessly integrate Localyser reviews with your application's design.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Example Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>theme</td>\n<td>string</td>\n<td>Enables dark mode theme</td>\n<td>dark</td>\n</tr>\n<tr>\n<td>fnColor</td>\n<td>string</td>\n<td>Font/text color</td>\n<td>#ffffff</td>\n</tr>\n<tr>\n<td>bgColor</td>\n<td>string</td>\n<td>Background color</td>\n<td>#1a1a1a</td>\n</tr>\n<tr>\n<td>bgFnColor</td>\n<td>string</td>\n<td>Background font color</td>\n<td>#e0e0e0</td>\n</tr>\n<tr>\n<td>btnBgColor</td>\n<td>string</td>\n<td>Button background color</td>\n<td>#007bff</td>\n</tr>\n<tr>\n<td>btnFnColor</td>\n<td>string</td>\n<td>Button font color</td>\n<td>#ffffff</td>\n</tr>\n<tr>\n<td>btnBgColorHover</td>\n<td>string</td>\n<td>Button hover background color</td>\n<td>#0056b3</td>\n</tr>\n<tr>\n<td>company</td>\n<td>string</td>\n<td>Your company name on Localyser lower case</td>\n<td>wateen</td>\n</tr>\n<tr>\n<td>fontFamily</td>\n<td>string</td>\n<td>Custom font family</td>\n<td>Roboto</td>\n</tr>\n<tr>\n<td>primaryColor</td>\n<td>string</td>\n<td>Color which will be applied on elements hover, focus, select</td>\n<td>0056b3</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>fontFamily</strong> — Use a URL-encoded value (e.g., font stacks with commas or spaces). To apply a non-default browser font, please contact support.</p>\n<p><strong>company</strong> — Only required if a custom loader needs to be applied across the application. Before enabling this, please contact support and provide your logo in <code>.gif</code> format.</p>\n<p>Usage Examples</p>\n<p>Basic Dark Mode:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reviews?locations=location_value&amp;view=[2,3]&amp;auth_token=auth_token_value&amp;theme=dark\n\n</code></pre><p>Custom Brand Color:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reviews?locations=location_value&amp;view=[2,3]&amp;auth_token=auth_token_value&amp;bgColor=f8f9fa&amp;fnColor=212529&amp;btnBgColor=007bff&amp;btnFnColor=ffffff\n\n</code></pre><h3 id=\"color-format\">Color Format</h3>\n<ul>\n<li><p>Format: Hex color codes WITH the # symbol</p>\n</li>\n<li><p>Example: Use #ffffff or ffffff (both supported)</p>\n</li>\n<li><p>URL Encoding: The # symbol should be URL-encoded as # in URLs</p>\n</li>\n<li><p>Auto-handling: The system handles both formats automatically</p>\n</li>\n</ul>\n<h3 id=\"dark-mode\">Dark Mode</h3>\n<ul>\n<li><p>Parameter: theme=dark</p>\n</li>\n<li><p>Description: Applies a predefined dark theme with dark backgrounds and light text</p>\n</li>\n<li><p>Combination: Can be combined with custom colors to override specific elements</p>\n</li>\n<li><p>Priority: Custom color parameters take precedence over dark theme defaults</p>\n</li>\n</ul>\n<h3 id=\"view-modes\">View Modes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>View Mode</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>view=2</td>\n<td>Hides filters</td>\n</tr>\n<tr>\n<td>view=3</td>\n<td>With filter controls</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"complete-example\">Complete Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reviews?auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&amp;view=3&amp;theme=dark&amp;bgColor=2d3748&amp;fnColor=e2e8f0&amp;btnBgColor=4299e1&amp;btnFnColor=ffffff&amp;btnBgColorHover=3182ce\n\n</code></pre><p>This example creates a dark-themed iframe with:</p>\n<ul>\n<li><p>Dark blue-gray background (#2d3748)</p>\n</li>\n<li><p>Light gray text (#e2e8f0)</p>\n</li>\n<li><p>Blue buttons (#4299e1) with white text</p>\n</li>\n<li><p>Darker blue button hover effect (#3182ce)</p>\n</li>\n<li><p>Hidden filters (view=3)</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reviews?locations=...&amp;view=3&amp;auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&amp;btnBgColor=ff6b35&amp;btnFnColor=fff&amp;btnBgColorHover=ff5722&amp;bgColor=2C2C2C&amp;fnColor=f8fafc&amp;bgFnColor=cbd5e1\n\n</code></pre><p>**<br />Important note:** If you are using more than one page within an iframe during a single session, make sure to clear any query parameters that do not belong to the iframe before navigating to another page.</p>\n","urlObject":{"path":["reviews"],"host":["","","",""],"query":[{"key":"locations","value":"location_id_value"},{"key":"view","value":"[2,3]"},{"key":"auth_token","value":"token_value"}],"variable":[]}},"response":[],"_postman_id":"aa8f6caf-2918-4fae-a1bb-60bab1462f94"},{"name":"Reporting Pages","id":"b9bfda47-665e-4013-9f0e-4ff977e8dece","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<h3 id=\"reporting-pages-overview--insights\">Reporting Pages (Overview &amp; Insights):</h3>\n<p>These pages support additional query parameters for data filtering:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>date_from</td>\n<td>string</td>\n<td>Start date (YYYY-MM-DD)</td>\n<td>2025-08-13</td>\n</tr>\n<tr>\n<td>date_to</td>\n<td>string</td>\n<td>End date (YYYY-MM-DD)</td>\n<td>2025-09-12</td>\n</tr>\n<tr>\n<td>categories</td>\n<td>string</td>\n<td>Comma-separated categories</td>\n<td>Food,Delivery,Service,Price,Atmosphere,Recommend</td>\n</tr>\n<tr>\n<td>locations</td>\n<td>string</td>\n<td>Comma-separated location IDs</td>\n<td>123,456,789</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Review source filter</td>\n<td>google,facebook,tripadvisor</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example Insights with Custom Styling + Filtering:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reporting/insights?auth_token=YOUR_TOKEN&amp;view=3&amp;date_from=2025-08-13&amp;date_to=2025-09-12&amp;categories=Food,Delivery,Service,Price,Atmosphere,Recommend&amp;locations=123,456&amp;source=google,facebook\n\n</code></pre><p>Example Overview with Multiple Filters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>.../reporting/overview?auth_token=YOUR_TOKEN&amp;view=3&amp;date_from=2025-08-13&amp;date_to=2025-09-12&amp;categories=Food,Delivery,Service,Price,Atmosphere,Recommend&amp;locations=123,456&amp;source=google,facebook\n\n</code></pre><p>Embedding iframe example:<br />Report overview</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;/div&gt;&lt;div&gt;width=\"500px\" height=\"500px\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;src=\"https://app.localyser.com/reporting/overview?locations=11047&amp;view=2&amp;auth_token=YOUR_TOKEN&amp;theme=dark\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;title=\"Overview report\"&gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/iframe&amp;gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  src: https://app.localyser.com/reporting/insights\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  params:\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - auth_token=YOUR_TOKEN\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - locations=11047\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - view=2\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - theme=dark\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  width: 500px\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  height: 500px\n&lt;br&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p &gt;Report insights&lt;/p&gt;&lt;pre class=plain&gt;&lt;code&gt;&lt;div&gt;&lt;iframe \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;width=\"500px\" height=\"500px\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;src=\"https://app.localyser.com/reporting/insights?locations=11047&amp;view=2&amp;auth_token=YOUR_TOKEN&amp;theme=dark\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;title=\"Overview report\"&gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/iframe&amp;gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  src: https://app.localyser.com/reporting/insights\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  params:\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - auth_token=YOUR_TOKEN\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - locations=11047\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - view=2\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - theme=dark\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  width: 500px\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  height: 500px\n&lt;br&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p &gt;&lt;/p&gt;&lt;/x-turndown&gt;\n</code></pre>","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b9bfda47-665e-4013-9f0e-4ff977e8dece"},{"name":"GET third party login data","id":"6faee82c-7bbb-4804-9783-c5aea5e32cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>The <strong>Third-Party Login</strong> page can be embedded into external applications via an <strong>iframe</strong>.<br />On that page you may add new Google connection or other accounts</p>\n<p>The page is hosted on Localyser and supports:</p>\n<ul>\n<li><p>authentication via token</p>\n</li>\n<li><p>UI customization through query parameters</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"iframe-url\">Iframe URL</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://app.localyser.com/settings/other/thirdPartyLogin\n\n</code></pre><hr />\n<h2 id=\"required-parameters\">Required Parameters</h2>\n<h3 id=\"🔐-auth_token-required\">🔐 <code>auth_token</code> (required)</h3>\n<p>Authentication token used to authorize the user inside the iframe.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>auth_token=&lt;JWT&gt;\n\n</code></pre><ul>\n<li>Must be a <strong>valid access token</strong></li>\n</ul>\n<p>Iframe embedding example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;/div&gt;&lt;div&gt;width=\"500px\" height=\"500px\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;src=\"https://app.localyser.com/settings/other/thirdPartyLogin?locations=11047&amp;view=2&amp;auth_token=YOUR_TOKEN&amp;theme=dark\" \n&lt;br&gt;&lt;/div&gt;&lt;div&gt;title=\"Thrid party login\"&gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/iframe&amp;gt;\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  src: https://app.localyser.com/settings/other/thirdPartyLogin\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  params:\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - auth_token=YOUR_TOKEN\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - locations=11047\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - view=2\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;    - theme=dark\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  width: 500px\n&lt;br&gt;&lt;/div&gt;&lt;div&gt;  height: 500px\n&lt;br&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p &gt;&lt;/p&gt;&lt;/x-turndown&gt;\n</code></pre>","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"6faee82c-7bbb-4804-9783-c5aea5e32cf7"},{"name":"Get Dashboard data","id":"65efd075-c3fd-490d-a741-99a12067a092","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>The Dashboard page can be embedded into external applications via an <strong>iframe</strong>.<br />On that page you may see Reputation Score and Net Promoter Score sections.<br />Filters and PDF export is available is view Mode - 3 and hidden is viewMode - 2.</p>\n<p>The page is hosted on Localyser and supports:</p>\n<ul>\n<li><p>authentication via token</p>\n</li>\n<li><p>UI customization through query parameters</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"iframe-url\">Iframe URL</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://app.localyser.com/dashboard\n\n</code></pre><hr />\n<h2 id=\"required-parameters\">Required Parameters</h2>\n<h3 id=\"🔐-auth_token-required\">🔐 <code>auth_token</code> (required)</h3>\n<p>Authentication token used to authorize the user inside the iframe.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>auth_token=&lt;JWT&gt;\n\n</code></pre><ul>\n<li>Must be a <strong>valid access token</strong></li>\n</ul>\n<p>Iframe embedding example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;iframe \nwidth=\"500px\" height=\"500px\" \nsrc=\"https://app.localyser.com/dashboard?locations=11047&amp;view=2&amp;auth_token=YOUR_TOKEN&amp;theme=dark\" \ntitle=\"Dashboard\"&gt;\n&lt;/iframe&gt;\n\n\n  src: https://app.localyser.com/dashboard\n  params:\n    - auth_token=YOUR_TOKEN\n    - locations=11047\n    - view=2\n    - theme=dark\n  width: 500px\n  height: 500px\n\n\n</code></pre>","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"65efd075-c3fd-490d-a741-99a12067a092"}],"id":"7f386189-a752-475e-ac18-c8d33d38e19d","description":"<p>Use this endpoint to generate an iframe token for a specific location</p>\n","_postman_id":"7f386189-a752-475e-ac18-c8d33d38e19d"}]}