{"info":{"_postman_id":"9b126d3a-9974-45f8-b21e-f00cabc5c7b5","name":"iPresso mobile api v2 EN","description":"<html><head></head><body><p>iPresso mobile api is based on HTTP protocol. You have to use JSON as message BODY, we response also using JSON.</p>\n<blockquote>\n<p><strong>CUSTOMER-DOMAIN</strong> - your own iPresso address, you can get it in iPresso </p>\n</blockquote>\n<blockquote>\n<p><strong>idCustomer</strong> - your own iPresso ID, you can can get it in iPresso </p>\n</blockquote>\n<blockquote>\n<p><strong>APPLICATION-HASH</strong> - uniq hash genereted for your app, you can can get it in iPresso </p>\n</blockquote>\n<h3 id=\"warning\">WARNING!</h3>\n<p>Please be particularly careful when storing credentials in a mobile application that communicates with iPresso mobile API.</p>\n<p>Adding <strong>idCustomer</strong> and <strong>APPLICATION-HASH (appId)</strong> keys directly in the mobile application code without additional security mechanisms poses a serious security risk in which unauthorized persons could gain access to the iPresso account sensitive data.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1716599","collectionId":"9b126d3a-9974-45f8-b21e-f00cabc5c7b5","publishedId":"2s9YJc1NfQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-02T12:39:03.000Z"},"item":[{"name":"Use case ","item":[{"name":"Installing mobile app as a new anonymous user","item":[],"id":"3aad11a0-18e6-4016-a0b9-832bc941b90d","description":"<p>When user is installing app for the first time on his device as a anonymous user, app need to ask for the anonymous idContact</p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate\">https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate</a></p>\n</blockquote>\n<p>if API response is 200 OK - anonymous idContact has to be store in app</p>\n<p>If user accepted mobile push, app need to send this information via </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush\">https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush</a></p>\n</blockquote>\n","_postman_id":"3aad11a0-18e6-4016-a0b9-832bc941b90d"},{"name":"Installing mobile app as a recognized user","item":[],"id":"f9984644-5544-4015-a271-ea09aa9136ca","description":"<p>When user is installing app for the first time on his device as a recognized user, app need to ask for the idContact using mail / mobile </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind\">https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind</a></p>\n</blockquote>\n<p>if API response is 200 OK - idContact has to be store in app</p>\n<p>if API response is 400 Not Found - app need to ask again for the anonymous idContact</p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate\">https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate</a></p>\n</blockquote>\n<p>and store anonymous idContact </p>\n<p>If user accepted mobile push, app need to send this information via </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush\">https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush</a></p>\n</blockquote>\n","_postman_id":"f9984644-5544-4015-a271-ea09aa9136ca"},{"name":"Sending activities from app","item":[],"id":"2d0b8200-56b2-44d7-9387-94dab6711324","description":"<p>In order to send user activity to iPresso, just call </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd\">https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd</a></p>\n</blockquote>\n<p>activity api key and activity parameters object are defined in iPresso</p>\n","_postman_id":"2d0b8200-56b2-44d7-9387-94dab6711324"},{"name":"Logging in to app - become a recognized user","item":[],"id":"7167c0dd-b396-43e6-894d-78e98d5d9744","description":"<p>When user log in the app, app need to ask for the idContact using mail / mobile </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind\">https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind</a></p>\n</blockquote>\n<p>if API response is 200 OK - idContact has to be store in app.</p>\n<p>That is also mean that user from anonymous became recognized.\nApp need to send that information via </p>\n<blockquote>\n<p><a href=\"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactMerge\">https://CUSTOMER-DOMAIN/ipmobileapi/2/contactMerge</a></p>\n</blockquote>\n","_postman_id":"7167c0dd-b396-43e6-894d-78e98d5d9744"}],"id":"f4530fd8-fdde-44c7-8651-b1d485ba17e1","description":"<p>Some example use cases of using iPresso mobile API</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"cda723cf-c783-4bc8-9c1a-5eba745c5a3c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"9a3780a0-911c-4003-8a3c-438b53fd8acb"}}],"_postman_id":"f4530fd8-fdde-44c7-8651-b1d485ba17e1"},{"name":"In-app","item":[{"name":"Check for actions in-app for given recognized contact","id":"8a97a524-4729-4102-9bf9-ed258f4e8410","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?i=CONTACT-HASH","description":"<p>This resource will return an array of JSONs - one for every action in-app which criteria are met. By default only one action’s JSON can be returned but if Actions Groups are used in configuration of action then multiple action’s JSONs could be returned (one for each group).</p>\n<p>Variables in above URL:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CUSTOMER-HASH</td>\n<td>customer hash (to get from iPresso panel)</td>\n</tr>\n<tr>\n<td>APPLICATION-HASH</td>\n<td>application hash (to get from iPresso panel)</td>\n</tr>\n<tr>\n<td>CONTACT-HASH</td>\n<td>recognized contact hash (to get from iPresso API)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Actions in-app can gather following statistics which will be saved in reports and as activities of contact:</p>\n<ul>\n<li><p>App message show -&gt; <em>externalMonitoringShow</em> (see below)</p>\n</li>\n<li><p>App message click -&gt; <em>externalMonitoringClick</em> (see below)</p>\n</li>\n<li><p>App message close -&gt; <em>externalMonitoringClose</em> (see below)</p>\n</li>\n</ul>\n<p>In order to send statistics to iPresso, you have to insert following data to JSON (in Action configuration), which will be return with action:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"externalMonitoringShow\": \"SHOW_SOURCE\",\n  \"externalMonitoringClick\": \"CLICK_SOURCE\",\n  \"externalMonitoringClose\": \"CLOSE_SOURCE\"\n}\n\n</code></pre>\n<p>Variables in above:</p>\n<ul>\n<li><p>SHOW_SOURCE - this value will be saved in activity parameter: <em>Source</em></p>\n</li>\n<li><p>CLICK_SOURCE - this value will be saved in activity parameter: <em>Source</em></p>\n</li>\n<li><p>CLOSE_SOURCE - this value will be saved in activity parameter: <em>Source</em></p>\n</li>\n</ul>\n<p>In returned JSON’s those 3 variables will be replaced with URLs for each one. Make a <strong>GET</strong> request for each one to save statistics to iPresso. Those should be triggered in an adequate moment (i.e.: <em>externalMonitoringClick</em> should be called after users click).</p>\n<h3 id=\"capping\">Capping</h3>\n<p>In order for capping to work properly information about <em>app message show</em> should be sent back to iPresso (details above). On sending this statistic iPresso will increment capping for specific action for specific contact by one.<br />It is possible to alter default behavior by adding a <strong>cp</strong> parameter to request URL of any of the 3 statistics URLs.</p>\n<ul>\n<li><p>Add <strong>cp=1</strong> in order to increment capping (this will work on click and close statistics since on show it is default behaviour)</p>\n</li>\n<li><p>Add <strong>cp=0</strong> in order to skip incrementing capping (this will work on show statistics since on click and close it is default behaviour)</p>\n</li>\n</ul>\n<p>Warning: It is recommended to increment capping only on 1 request so it will not be counted twice. I.e.: if you add <strong>cp=1</strong> to click request then add <strong>cp=0</strong> to show request.</p>\n<p>Adding capping to app message click statistics - example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n        \"externalMonitoringShow\": \"https://perun.ipresso.pl/app/__perun_app_show/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&amp;r=show+test&amp;cp=0\",\n        \"externalMonitoringClick\": \"https://perun.ipresso.pl/app/__perun_app_click/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&amp;r=click+test&amp;cp=1\",\n        \"externalMonitoringClose\": \"https://perun.ipresso.pl/app/__perun_app_close/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&amp;r=close+test\"\n}\n\n</code></pre>\n<p>If you do not use statistics (do not include required JSON parameters like <em>externalMonitoringShow</em> etc. in your Action JSON) then you still can increment capping by adding <strong>cp=1</strong> parameter to main URL (the one which checks for actions). It will increment capping for each Action which JSON will be sent back in this request.</p>\n","urlObject":{"protocol":"https","path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"host":["perun","ipresso","pl"],"query":[{"key":"i","value":"CONTACT-HASH"}],"variable":[]}},"response":[{"id":"2ca010c4-913d-4d80-8de7-86920f2c2fee","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?i=CONTACT-HASH","protocol":"https","host":["perun","ipresso","pl"],"path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"query":[{"key":"i","value":"CONTACT-HASH"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"externalMonitoringShow\": \"https://perun.ipresso.pl/app/__perun_app_show/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&r=show+test\",\n        \"externalMonitoringClick\": \"https://perun.ipresso.pl/app/__perun_app_click/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&r=click+test\",\n        \"externalMonitoringClose\": \"https://perun.ipresso.pl/app/__perun_app_close/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?i=KafbtS76gFQxyXkR6K2A.&r=close+test\"\n    }\n]"},{"id":"d42c6be8-3740-4027-8b67-8469283c9cf1","name":"No Content","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?i=CONTACT-HASH","protocol":"https","host":["perun","ipresso","pl"],"path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"query":[{"key":"i","value":"CONTACT-HASH"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8a97a524-4729-4102-9bf9-ed258f4e8410"},{"name":"Check for actions in-app for given anonymous contact","id":"f2bae4d3-7b67-4a15-840d-83941d150003","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?ia=ANONYMOUS-CONTACT-HASH","description":"<p>Variables in above URL: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CUSTOMER-HASH</td>\n<td>customer hash (to get from iPresso panel)</td>\n</tr>\n<tr>\n<td>APPLICATION-HASH</td>\n<td>application hash  (to get from iPresso panel)</td>\n</tr>\n<tr>\n<td>ANONYMOUS-CONTACT-HASH</td>\n<td>anonymous contact hash  (to get from iPresso API)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Events concerning sending statistics and capping work the same way as for recognized contact.</p>\n","urlObject":{"protocol":"https","path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"host":["perun","ipresso","pl"],"query":[{"key":"ia","value":"ANONYMOUS-CONTACT-HASH"}],"variable":[]}},"response":[{"id":"5e560c83-5222-4a16-bf3a-1a0a1787902a","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?ia=ANONYMOUS-CONTACT-HASH","protocol":"https","host":["perun","ipresso","pl"],"path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"query":[{"key":"ia","value":"ANONYMOUS-CONTACT-HASH"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"externalMonitoringShow\": \"https://perun.ipresso.pl/app/__perun_app_show/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?ia=KafbtS76gFQxyXkR6K2A.&r=show+test\",\n        \"externalMonitoringClick\": \"https://perun.ipresso.pl/app/__perun_app_click/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?ia=KafbtS76gFQxyXkR6K2A.&r=click+test\",\n        \"externalMonitoringClose\": \"https://perun.ipresso.pl/app/__perun_app_close/dnFln994CBMA7TMMaFfY./cWl1TKS6wE0KHjRSllfo./?ia=KafbtS76gFQxyXkR6K2A.&r=close+test\"\n    }\n]"},{"id":"7e4568ba-4f2f-4bf2-8bbb-7f0e79025030","name":"No Content","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://perun.ipresso.pl/app/CUSTOMER-HASH/APPLICATION-HASH/?ia=ANONYMOUS-CONTACT-HASH","protocol":"https","host":["perun","ipresso","pl"],"path":["app","CUSTOMER-HASH","APPLICATION-HASH",""],"query":[{"key":"ia","value":"ANONYMOUS-CONTACT-HASH"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f2bae4d3-7b67-4a15-840d-83941d150003"}],"id":"3b53d151-90d9-4443-95ef-6606c628d5af","_postman_id":"3b53d151-90d9-4443-95ef-6606c628d5af","description":""},{"name":"NPS","item":[{"name":"NPS mobile - save answer","id":"82239c05-32c9-4cff-8264-5dbb9c7206af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","type":"text","value":"APPLICATION-HASH"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"score\": 10,\n  \"answer\": \"answer\",\n  \"apiKey\": \"nps_api_key\",\n  \"contact\": {\n      \"typeContact\": 1,\n      \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\"\n      }\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsSaveAnswer","urlObject":{"protocol":"https","path":["ipmobileapi","2","npsSaveAnswer"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"357a048b-7218-4b5f-8c22-972dc1d1fb20","name":"success","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"score\": 10,\n  \"answer\": \"answer\",\n  \"apiKey\": \"nps_api_key\",\n  \"contact\": {\n      \"typeContact\": 1,\n      \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\"\n      }\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsSaveAnswer"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"},{"id":"d1355c3f-d7d7-423f-9708-e6eae77100e5","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"score\": -1,\n  \"answer\": \"answer\",\n  \"apiKey\": \"nps_api_key\",\n  \"contact\": {\n      \"typeContact\": 1,\n      \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\"\n      }\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsSaveAnswer"},"status":"Bad request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 400\n    },\n    \"data\": []\n}"}],"_postman_id":"82239c05-32c9-4cff-8264-5dbb9c7206af"},{"name":"NPS mobile - pobranie danych NPS","id":"3bfcf03d-f8ac-41c2-98b1-bfb9cba42f46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"appId","value":"APPLICATION-HASH","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"apiKey\": \"nps_api_key\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsGetData","urlObject":{"protocol":"https","path":["ipmobileapi","2","npsGetData"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"4ec9a499-2adb-422d-ada1-171f31ac4eaf","name":"success","originalRequest":{"method":"GET","header":[{"key":"appId","value":"APPLICATION-HASH","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"apiKey\": \"nps_api_key\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsGetData"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n        \"welcomeScreen\": {\n            \"isVisible\": true,\n            \"title\": \"Title\",\n            \"subtitle\": \"Subtitle\",\n            \"buttonLabel\": \"Button label\",\n            \"imageUrl\": \"https://global-uploads.webflow.com/6006a52092ce666865e5bf13/6006a52092ce66f982e5c174_iPresso-BrandHero.png\",\n            \"imageAlt\": \"Alternative text\"\n        },\n        \"survey\": {\n            \"question\": \"Question\",\n            \"questionDescription\": \"Description of the question\",\n            \"scoringScaleDescription\": {\n                \"smallestValue\": \"The smallest value\",\n                \"greatestValue\": \"The greatest value\"\n            },\n            \"buttonLabel\": \"Button label\",\n            \"additionalQuestions\": [\n                {\n                    \"range\": {\n                        \"from\": 0,\n                        \"to\": 6\n                    },\n                    \"question\": \"Question 1\"\n                },\n                {\n                    \"range\": {\n                        \"from\": 7,\n                        \"to\": 8\n                    },\n                    \"question\": \"Question 2\"\n                },\n                {\n                    \"range\": {\n                        \"from\": 9,\n                        \"to\": 10\n                    },\n                    \"question\": \"Question 3\"\n                }\n            ]\n        },\n        \"thankYouScreen\": {\n            \"mainText\": \"Title\",\n            \"additionalText\": \"Subtitle\",\n            \"imageUrl\": \"https://global-uploads.webflow.com/6006a52092ce666865e5bf13/6006a52092ce66f982e5c174_iPresso-BrandHero.png\",\n            \"imageAlt\": \"Alternative text\"\n        },\n        \"appearance\": {\n            \"font\": \"Arial\",\n            \"color\": \"#e53935\",\n            \"customStyles\": \"\\n#welcomeScreenContainer {\\n  /* Welcome Screen Main Container  /\\n}\\n\\n#welcomeScreenImgBox {\\n  / Welcome Screen Image /\\n}\\n\\n#welcomeScreenTitle {\\n  / Welcome Screen Title /\\n}\\n\\n#welcomeScreenSubtitle {\\n  / Welcome Screen Subtitle /\\n}\\n\\n#welcomeScreenButtonBox button {\\n  / Welcome Screen Button /\\n}\\n\\n#surveyContainer {\\n  / Survey Main Container /\\n}\\n\\n#surveyQuestionText {\\n  / Survey Main Question /\\n}\\n\\n#questionDescriptionText {\\n  / Survey Question Description /\\n}\\n\\n#surveyScoreContainer {\\n  / Survey Score Container /\\n}\\n\\n.nps-score.buttons {\\n  / Survey Nps Score Buttons /\\n}\\n\\n#surveyDescriptionScoreBox {\\n  / Survey Scores Description*/\\n}\\n\\n#smallestValue {\\n  /* Survey Left Score Description /\\n}\\n\\n#greatestValue {\\n  / Survey Right Score Description /\\n}\\n\\n#additionalQuestion{\\n  / Survey Additional Question container*/\\n}\\n\\n#surveyAdditionalQuestionText {\\n  /* Survey Additional Question /\\n}\\n\\n#surveyButtonBox #button {\\n  / Survey Button /\\n}\\n\\n#thankYouScreenContainer {\\n  / Thank You Screen Main Container /\\n}\\n\\n#thankYouScreenImgBox {\\n / Thank You Screen Image /\\n}\\n\\n#thankYouScreenTitle {\\n  / Thank You Screen Title /\\n}\\n\\n#thankYouScreenAdditionalText {\\n  / Thank You Screen Subtitle */\\n}\\n\"\n        }\n    }\n}\n"},{"id":"91fe3283-7fb0-41f4-806c-3ff1e0284d90","name":"Bad request","originalRequest":{"method":"GET","header":[{"key":"appId","value":"APPLICATION-HASH","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"apiKey\": \"wrong_nps_api_key\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/npsGetData"},"status":"Bad request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 400\n    },\n    \"data\": []\n}"}],"_postman_id":"3bfcf03d-f8ac-41c2-98b1-bfb9cba42f46"}],"id":"bce2bfd9-e66a-4438-b5bf-83ff71ebc420","event":[{"listen":"prerequest","script":{"id":"e60b100b-d965-4eb9-8185-f85fbb7ad284","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bc8d7039-2b62-4bfe-8fde-db3dddb9bdaa","type":"text/javascript","exec":[""]}}],"_postman_id":"bce2bfd9-e66a-4438-b5bf-83ff71ebc420","description":""},{"name":"Forms","item":[{"name":"Save Form Fill","id":"61010f65-881d-4b75-a3d9-2d32570f88a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"IPRESSO_TOKEN","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"idCustomer\": \"CUSTOMER-HASH\", \r\n    \"formKey\": \"FORM_KEY\",\r\n    \"form\": {\r\n        \"fields\": {\r\n            \"a_email\": \"example@example.com\",\r\n            \"a_fname\": \"Jhon\",\r\n            \"c_agreement\": true,\r\n            \"another_form_field\": \"answear example\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/formFill","description":"<p>In order to save form fill, <code>POST</code> request should be sent to the URL:<br /><code>https://CUSTOMER-DOMAIN/ipmobileapi/2/formFillEndFragment</code></p>\n<blockquote>\n<p>Parameter <code>CUSTOMER-DOMAIN</code> should be replaced with the iPresso URL address. </p>\n</blockquote>\n<p>In the body of the request, include the data of the completed form:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"formKey\": \"FORM_KEY\",\n  \"form\": {\n    \"fields\": {\n       \"FORM_FIELD_KEY\": FORM_FIELD_FILL_VALUE\n    }\n  }\n}\n\n</code></pre>\n<blockquote>\n<p><code>CUSTOMER-HASH</code> customer unique hash. </p>\n</blockquote>\n<blockquote>\n<p>Parameter <code>FORM_KEY</code> should be replaced with the form API key. </p>\n</blockquote>\n<blockquote>\n<p><code>FORM_FIELD_KEY</code> is the API key of the form field, which you can preview in the iPresso panel. </p>\n</blockquote>\n<blockquote>\n<p><code>FORM_FIELD_FILL_VALUE</code> is the value of the field you want to save. </p>\n</blockquote>\n<p>In case the form contains a file, before calling this request, you need to upload the file to an individual resource. The address is available in the iPresso panel<br />Content -&gt; Forms -&gt; Active -&gt; API call manual</p>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","formFill"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"cfbaf991-1ea0-4091-8898-957256fbe3ee","name":"Success","originalRequest":{"method":"POST","header":[{"key":"IPRESSO_TOKEN","value":"55ac5b58e5a85babc6e7366eee0d3d6db14d18","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"fields\": {\r\n    \"a_email\": \"example@example.com\",\r\n    \"a_fname\": \"Jhon\",\r\n    \"c_agreement\": true,\r\n    \"another_form_field\": \"answear example\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://CLIENT_PANEL_ADDRESS/api/2/form/FORM_KEY/fill"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": {\r\n        \"httpStatusCode\": 200\r\n    },\r\n    \"data\": []\r\n}"}],"_postman_id":"61010f65-881d-4b75-a3d9-2d32570f88a3"}],"id":"4da960f7-609f-44af-b8a4-4da00fcc1dac","_postman_id":"4da960f7-609f-44af-b8a4-4da00fcc1dac","description":""},{"name":"Create anonymous contact","id":"ed78bdce-164a-4961-abdf-0f7b80d8413b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate","description":"<p>With this resource You can get anonymous contact hash for new contact.</p>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactAnonymousCreate"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"358c8e5a-1a55-40c2-815b-44ce316b95d8","name":"Search anonymous contact","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAnonymousCreate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n      \"idContact\": \"AwsePDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjksds.\",\n      \"typeContact\": 2\n    }\n}"}],"_postman_id":"ed78bdce-164a-4961-abdf-0f7b80d8413b"},{"name":"Search recognized contact","id":"42cc45ab-a42f-4ad9-a45c-db429bb473d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n   \"mail\": \"test@ipresso.com\",\n  \"mobile\": \"123456799\",\n  \"idContact\" : \"1\"\n\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind","description":"<p>With this resource You can search contact in iPresso using mail or/and mobile.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>mail</td>\n<td>email address</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>mobile number</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>iPresso ID</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactFind"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"66481624-e35a-42a3-927d-fc97cb666e49","name":"Search contact by ID","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\" : \"1\"\n\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n        \"idContact\": \"_KPz4x4xkEYnsldDiGENPHirTgxSM5edsoq1qpoQ4Jo.\",\n        \"typeContact\": 1\n    }\n}"},{"id":"d1eece55-b6ad-4de1-adc2-eaef78685e1e","name":"Search contact by mail","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"mail\": \"test@ipresso.com\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n      \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\",\n      \"typeContact\": 1\n    }\n}"},{"id":"d3daaad3-a0d1-4f50-9e0d-05351ed16252","name":"Search contact by mobile","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"mobile\": \"123456799\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactFind"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n      \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\",\n      \"typeContact\": 1\n    }\n}"}],"_postman_id":"42cc45ab-a42f-4ad9-a45c-db429bb473d3"},{"name":"Activity add","id":"c3d6deca-216d-4ab6-a775-8719725170c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"typeContact\": 1,\n  \"idContact\": \"CONTACT-HASH\",\n  \"key\": \"activity_key\",\n  \"date\": \"2017-09-18 12:00:00\",\n  \"parameter\": {\n    \"param_key_1\": \"test\",\n    \"param_kay_2\": \"123\"\n  }\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd","description":"<p>With this resource You can add contact activity with parameters. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>typeContact</td>\n<td>1 - recognized, 2 - anonymous</td>\n<td>required</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>contact hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>key</td>\n<td>activity api key</td>\n<td>required</td>\n</tr>\n<tr>\n<td>date</td>\n<td>activity date (format: \"yyyy-mm-dd hh:mm:ss\")</td>\n<td>optional</td>\n</tr>\n<tr>\n<td>parameter</td>\n<td>activity parameters object</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","activityAdd"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"5c055b59-d757-408a-a567-baeeab6635f6","name":"Activity add - anonymous","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"typeContact\": 2,\n\t\"idContact\": \"ANONYMOUS-CONTACT-HASH\",\n\t\"key\": \"sample_activity_key\",\n\t\"date\": \"2017-09-18 12:00:00\",\n\t\"parameter\": {\n\t\t\"param_key_1\": \"test\",\n\t\t\"param_kay_2\": \"123\"\n\t}\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"},{"id":"834bbc3f-5dcc-4b2d-83bd-7c903fb1f31e","name":"Activity add - anonymous with no idContact ","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"typeContact\": 2,\n\t\"key\": \"activity_key\",\n\t\"date\": \"2017-09-18 12:00:00\",\n\t\"parameter\": {\n\t\t\"param_key_1\": \"test\",\n\t\t\"param_kay_2\": \"123\"\n\t}\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n      \"idContact\": \"AwsePDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjksds.\",\n      \"typeContact\": 2\n    }\n}"},{"id":"c9a15c18-0f21-45e1-a5f3-b951a8169538","name":"Activity add - recognized","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"typeContact\": 1,\n\t\"idContact\": \"RECOGNIZED-CONTACT-HASH\",\n\t\"key\": \"sample_activity_key\",\n\t\"date\": \"2017-09-18 12:00:00\",\n\t\"parameter\": {\n\t\t\"param_key_1\": \"test\",\n\t\t\"param_kay_2\": \"123\"\n\t}\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/activityAdd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"}],"_postman_id":"c3d6deca-216d-4ab6-a775-8719725170c3"},{"name":"Set mobile push token","id":"3aa7dd4c-a9b0-41f3-a12f-4694ee5714b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n  \"oldToken\": \"eToQgpou-ZE:APA91bHe5zg5JLg4IZfTO0vQbdijbP3Xiy7tFOgo9IjenABzzRaYNU8brS5M0k-02hVl0yNswurwoIo6Jdo6k8UnDClvJ0hLNEi4vRreyrTvE8xaovFBX-4DkHZxA2Sv20sW4VBzXhEG\",\n  \"tokenType\": 2,\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"system\": \"android\",\n  \"typeContact\": 2,\n  \"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\",\n  \"notificationService\": \"firebase\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush","description":"<p>With this resource You can set mobile push token.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>new mobile push token</td>\n<td>required</td>\n</tr>\n<tr>\n<td>oldToken</td>\n<td>old mobile push token (if token is changing</td>\n<td>required</td>\n</tr>\n<tr>\n<td>tokenType</td>\n<td>mobile push token type = 2</td>\n<td>required</td>\n</tr>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>system</td>\n<td>mobile operation system</td>\n<td>required</td>\n</tr>\n<tr>\n<td>typeContact</td>\n<td>1 - recognized, 2 - anonymous</td>\n<td>required</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>contact hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>notificationService</td>\n<td>firebase - for OS Android devices, apns - for OS iOS devices, huawei - for Huawei; default: Android</td>\n<td>optional</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","mobilePush"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"82acdc3a-c8fe-4a75-9d3a-b56fd0eb6e64","name":"Set mobile push token for anonymous contact","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n\t\"oldToken\": \"eToQgpou-ZE:APA91bHe5zg5JLg4IZfTO0vQbdijbP3Xiy7tFOgo9IjenABzzRaYNU8brS5M0k-02hVl0yNswurwoIo6Jdo6k8UnDClvJ0hLNEi4vRreyrTvE8xaovFBX-4DkHZxA2Sv20sW4VBzXhEG\",\n\t\"tokenType\": 2,\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"system\": \"android\",\n\t\"typeContact\": 2,\n\t\"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\",\n    \"notificationService\": \"firebase\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n        \"idContact\": \"QP9lPDv8GFOJPLPMoLwyXEP1k56u9AS4Q_-xxtjkCGs.\",\n        \"typeContact\": 1\n    }\n}"},{"id":"ed3bd6b6-d5da-4a7b-abed-0c3c64e54d48","name":"Set mobile push token for recognized contact","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n\t\"oldToken\": \"eToQgpou-ZE:APA91bHe5zg5JLg4IZfTO0vQbdijbP3Xiy7tFOgo9IjenABzzRaYNU8brS5M0k-02hVl0yNswurwoIo6Jdo6k8UnDClvJ0hLNEi4vRreyrTvE8xaovFBX-4DkHZxA2Sv20sW4VBzXhEG\",\n\t\"tokenType\": 2,\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"system\": \"android\",\n\t\"typeContact\": 1,\n\t\"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\",\n    \"notificationService\": \"firebase\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePush"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"}],"_postman_id":"3aa7dd4c-a9b0-41f3-a12f-4694ee5714b4"},{"name":"Mobile push token delete","id":"2dba5960-0fe5-4c7c-a443-dc5edb309f50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>A unique mobile application key, which you can get from the iPresso Panel.</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"typeContact\": 2,\n  \"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePushDelete","description":"<p>Using this resource will delete the mobile push token.</p>\n<p>Any response other than 200/201 means an error.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>New mobile push token</td>\n<td>REQUIRED</td>\n</tr>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>REQUIRED</td>\n</tr>\n<tr>\n<td>typeContact</td>\n<td>1 - recognized, 2 - anonymous</td>\n<td>REQUIRED</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>contact HASH</td>\n<td>REQUIRED</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","mobilePushDelete"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"5b43c1e0-c401-42ab-bbff-6085fd92bd98","name":"Success","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Unikalny klucz aplikacji mobilnej, który możesz pobrać z Panelu iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"typeContact\": 2,\n  \"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePushDelete"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"},{"id":"a82f698a-e92f-4e18-ace3-143891755b71","name":"Token doesn't exist","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Unikalny klucz aplikacji mobilnej, który możesz pobrać z Panelu iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"APA91bEvo80RV-O5ewgzOsuVDQ3kLc8JjMd6W83RVxhaUx0LP3kJnK4dKxhQ14QyphULmUwxQ5cqxLA3yYnb0WLHSmdnTI5GgoJsrdV5cAvx-EdEpX_ovaQnGoufpq7S-y-YdVKooAsQ\",\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"idContact\": \"KGdtkW2IqBVewfPTzQIrDK0RyT7xqX4ZejneFcy-5O4.\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/mobilePushDelete"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 400\n    },\n    \"data\": []\n}"}],"_postman_id":"2dba5960-0fe5-4c7c-a443-dc5edb309f50"},{"name":"Merge anonymous contact to recognized contact","id":"7be0548b-662d-4439-9fc7-9a633cff9137","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\", \n  \"contacts\":[\n    {\n      \"typeContact\": 1,\n      \"idContact\": \"bLXqXh-CEa9h7C_ty5uGr9QpUfDI3x9EBxi7WI_jQOI.\"\n    },\n    {\n      \"typeContact\": 2,\n      \"idContact\": \"xDesyy9mLtTlrRj2oSwADN9mTWYlQXzykxm4mWBwtkM.\"      \n    }\n  ]\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactMerge","description":"<p>With this resource You can merge anonymous contact to recognized contact.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>contacts</td>\n<td>pair of anonymous and recognized object</td>\n<td>required</td>\n</tr>\n<tr>\n<td>typeContact</td>\n<td>1 - recognized, 2 - anonymous</td>\n<td>required</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>contact hash</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactMerge"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"3e4a8bab-d8d1-492d-a024-9f1b50acb55c","name":"Merge anonymous contact to recognized contact","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"idCustomer\": \"CUSTOMER-HASH\", \n\t\"contacts\":[\n\t\t{\n\t\t\t\"typeContact\": 1,\n\t\t\t\"idContact\": \"bLXqXh-CEa9h7C_ty5uGr9QpUfDI3x9EBxi7WI_jQOI.\"\n\t\t},\n\t\t{\n\t\t\t\"typeContact\": 2,\n\t\t\t\"idContact\": \"xDesyy9mLtTlrRj2oSwADN9mTWYlQXzykxm4mWBwtkM.\"\t\t\t\n\t\t}\n\t]\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactMerge"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"}],"_postman_id":"7be0548b-662d-4439-9fc7-9a633cff9137"},{"name":"Contact add","id":"eaeefcb4-755c-4239-b80f-dac975d9f2f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"fname\": \"NAME\",\n  \"mobile\": \"MOBILE\",\n  \"agreement\": {\"1\": \"1\"}\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAdd","description":"<p>With this resource You can add contact. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ID_CUSTOMER</td>\n<td>customer unique hash</td>\n<td>YES</td>\n</tr>\n<tr>\n<td>fname</td>\n<td>Name</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>lname</td>\n<td>Surname</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Custom name</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email address</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>mobile</td>\n<td>Mobile number</td>\n<td>YES*</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Contact type key</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>company</td>\n<td>Company name</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>postCode</td>\n<td>Post code</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>street</td>\n<td>Street</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>buildingNumber</td>\n<td>Building number</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>flatNumber</td>\n<td>Flat number</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Country</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>category</td>\n<td>Key : value table: [ID_CATEGORY =&gt; STATUS], where 1 = add category, 2 = delete category</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>Array with tags</td>\n<td>NO</td>\n</tr>\n<tr>\n<td>agreement</td>\n<td>Key : value table: [ID_AGREEMENT =&gt; STATUS], where 1 = add agreement, 2 = delete agreement</td>\n<td>NO</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>*one of this fields must be passed</li>\n</ul>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactAdd"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"04cd5d3b-a2d3-4033-888e-5677ddf4d9fd","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","type":"text","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"fname\": \"John\",\n  \"mobile\": \"+48234234234\",\n  \"agreement\": {\"1\": \"1\"}\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactAdd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"130","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 16 May 2018 12:32:15 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Vary","value":"Accept-Encoding","name":"Vary","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."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","name":"X-Powered-By","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":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": {\n        \"code\": 201,\n        \"idContact\": \"bLXqXh-CEa9h7C_ty5uGr9QpUfDI3x9EBxi7WI_jQOI.\",\n        \"typeContact\": 1\n    }\n}"}],"_postman_id":"eaeefcb4-755c-4239-b80f-dac975d9f2f3"},{"name":"Contact edit","id":"75623eed-8d47-4fd1-ab65-badd558c3f43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\": \"CONTACT-HASH\",\n  \"fname\": \"NAME\",\n  \"mobile\": \"MOBILE\",\n  \"agreement\": {\"1\": \"1\"}\n}\n\n\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactEdit","description":"<p>With this resource You can edit contact. </p>\n<p>You can set the same fields like in \"Contact add\".</p>\n<blockquote>\n<p>Parameter <code>CONTACT-HASH</code> must be replaced with contact hash.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactEdit"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"c2898948-84e6-4b03-be57-54a28982383d","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","type":"text","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\": \"bLXqXh-CEa9h7C_ty5uGr9QpUfDI3x9EBxi7WI_jQOI.\",\n  \"fname\": \"Smith\",\n  \"mobile\": \"+353234234234\",\n  \"agreement\": {\"1\": \"1\"}\n}\n\n\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactEdit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Content-Length","value":"43","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 17 May 2018 06:07:04 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","name":"X-Powered-By","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":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"status\":{\"httpStatusCode\":200},\"data\":[]}"}],"_postman_id":"75623eed-8d47-4fd1-ab65-badd558c3f43"},{"name":"Contact delete","id":"403b992b-e9f9-4e6f-97d2-d0ed5c233f50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash -  genereted by iPresso, you can get it in iPresso</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\": \"CONTACT-HASH\"\n}\n"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactDelete","description":"<p>With this resource You can delete contact.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>BODY parameter name</th>\n<th>description</th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>idCustomer</td>\n<td>customer unique hash</td>\n<td>required</td>\n</tr>\n<tr>\n<td>idContact</td>\n<td>contact hash</td>\n<td>required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["ipmobileapi","2","contactDelete"],"host":["CUSTOMER-DOMAIN"],"query":[],"variable":[]}},"response":[{"id":"48df4109-aa57-4b62-9b7f-eb299e67ae7b","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\": \"CONTACT-HASH\"\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactDelete"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Content-Length","value":"43","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 18 May 2018 11:38:55 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","name":"X-Powered-By","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":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"status\":{\"httpStatusCode\":400},\"data\":[]}"},{"id":"4e602cb7-b0c0-415d-acc4-d8019c81b007","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash -  genereted by iPresso, you can get it in iPresso"},{"key":"Content-Type","type":"text","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"idCustomer\": \"CUSTOMER-HASH\",\n  \"idContact\": \"CONTACT-HASH\"\n}"},"url":"https://CUSTOMER-DOMAIN/ipmobileapi/2/contactDelete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"origin, content-type, accept","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Content-Length","value":"43","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 18 May 2018 11:36:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Powered-By","value":"PHP/7.0.25","name":"X-Powered-By","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":[{"expires":"Invalid Date","httpOnly":false,"domain":"panel.ipresso.dev","path":"/","secure":false,"value":"da30eed51d21c312da91a42ea36adc9c","key":"PHPSESSID"}],"responseTime":null,"body":"{\"status\":{\"httpStatusCode\":200},\"data\":[]}"}],"_postman_id":"403b992b-e9f9-4e6f-97d2-d0ed5c233f50"},{"name":"Subscribe mobile push token to the topic","id":"284e69c9-502a-497d-b25b-70a0deed771b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"<p>Mobile application unique hash which can be found in the iPresso panel</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\",\n  \"topics\":[\"sport\", \"politics\"],\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicSubscribe","description":"<p>This resource can be used in order to subscribe mobile push tokens to topics, which are used in instant push notifications.</p>\n<p><code>CLIENT_PANEL_ADDRESS</code> parameter should be replaced with the iPresso URL address.</p>\n<p><code>CUSTOMER-HASH</code> parameter should be replaced with the customer hash, which can be found in the iPresso panel.</p>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","topicSubscribe"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"9e326f99-31fa-4f25-a131-9b65c0e98724","name":"400 BAD REQUEST","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash which can be found in the iPresso panel","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\"\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicSubscribe"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 400\n    },\n    \"data\": []\n}"},{"id":"a98de6f1-9704-4718-b512-dd138d20e3fe","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash which can be found in the iPresso panel","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\",\n  \"topics\":[\"sport\", \"politics\"],\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicSubscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"}],"_postman_id":"284e69c9-502a-497d-b25b-70a0deed771b"},{"name":"Unsubscribe mobile push token from the topic","id":"c5e181d4-a587-4c42-874b-4eae6b3c67de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>Mobile application unique hash which can be found in the iPresso panel</p>\n","key":"appId","type":"text","value":"APPLICATION-HASH"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\",\n  \"topics\":[\"sport\", \"politics\"],\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicUnsubscribe","description":"<p>This resource can be used in order to unsubscribe mobile push tokens from topics, which are used in instant push notifications.</p>\n<p><code>CLIENT_PANEL_ADDRESS</code> parameter should be replaced with the iPresso URL address.</p>\n<p><code>CUSTOMER-HASH</code> parameter should be replaced with the customer hash, which can be found in the iPresso panel.</p>\n","urlObject":{"protocol":"https","path":["ipmobileapi","2","topicUnsubscribe"],"host":["CLIENT_PANEL_ADDRESS"],"query":[],"variable":[]}},"response":[{"id":"93ca55c4-23b0-4fad-9192-1db0e3bc5447","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash which can be found in the iPresso panel","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\",\n  \"topics\":[\"sport\", \"politics\"],\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicUnsubscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 200\n    },\n    \"data\": []\n}"},{"id":"94e64bba-0d19-402f-8672-b0c862125312","name":"400 BAD REQUEST","originalRequest":{"method":"POST","header":[{"key":"appId","value":"APPLICATION-HASH","description":"Mobile application unique hash which can be found in the iPresso panel","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"ddKgpiOkrzg123:APAGogW-KjmcHW_9cojeXX7favSfeyBv5MSQvXDLCR-TM8Zf3dWLEcJvgz_Xu9QZEgb7k5FHc8lBYtoG9-uyxOz5XgTwpuceE77wEg1kiHa3X8xGvvwo21YSTSRuLLYkbTzcPzAj2\"\n  \"idCustomer\": \"CUSTOMER-HASH\"\n}"},"url":"https://CLIENT_PANEL_ADDRESS/ipmobileapi/2/topicUnsubscribe"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"httpStatusCode\": 400\n    },\n    \"data\": []\n}"}],"_postman_id":"c5e181d4-a587-4c42-874b-4eae6b3c67de"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"6c230170-7b7d-4ec6-b6fe-f211932e0b3c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"10c17f23-9b8c-4837-8cf0-2197ddf5203c"}}]}