{"info":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Directly control and create new objects in your AlphaOne dialer instance using our APIs.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Each request needs to be made with a bearer token.<br>Tokens can be generated by either admins or users with \"manage token\" permission in each dialer. The tokens inherit the permissions from the user they belong to. One token per user per dialer.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p><strong>200 – success</strong><br>Request made correctly<br><strong>400 - bad request</strong><br>Your request body has some form of syntax error in it<br><strong>401- unauthenticated</strong><br>Missing token or request is outside the scope for your token.<br>Tokens match your permissions as a user in each dialer instance, if this is the error contact your dialer admin.<br><strong>404 – page not found</strong><br>URL is wrong or API is deprecated<br><strong>500 – server error</strong><br>Server is offline or errors with the request, such as missing mandatory field</p>\n<h1 id=\"url-structure\">URL structure</h1>\n<p>Each dialer has its own instance, meaning a unique url. To access your specific dialer you need to change the start of the request to match whichever dialer the API should be directed towards, followed with \":3007\".<br>Example: the dialer \"<strong>demodailer</strong>\" requests would start with \"<a href=\"https://demodailer.alphaone.se:3007\">https://demodailer.alphaone.se:3007\"</a>.</p>\n<p>For the examples we'll be using the \"QA\" dialer,</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"URL structure","slug":"url-structure"}],"owner":"19029596","collectionId":"23e5f5b2-2056-4182-97a2-848d331607b8","publishedId":"2s9YXh63Ew","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-08T07:04:15.000Z"},"item":[{"name":"Contactlists","item":[{"name":"Create new contactlist","id":"e423a1d1-d9aa-4c14-928c-cd01ed084b0c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist","description":"<p>Creates a new empty contactlist and returns the ID</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","contactlist"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"7b331ef4-8abc-4aec-9016-d5bc92d8656c","name":"Creation success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"List_created_by_API\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://qa.alphaone.se:3007/api/contactlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"28"},{"key":"etag","value":"W/\"1c-nIf5OxmZpUmUolHJ457NUBwrfM0\""},{"key":"date","value":"Wed, 30 Nov 2022 08:46:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 35\n}"}],"_postman_id":"e423a1d1-d9aa-4c14-928c-cd01ed084b0c"},{"name":"View contactlist info","id":"7a8dd272-dafc-4986-8c4e-1a5ea8b22ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist/:id","description":"<p>View description of a contactlist. Such as name, creation time, update time, contactlist type (B2C or B2B) as well as how many contacts exists within it.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","contactlist",":id"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[{"id":"990bf344-7934-4d07-b149-23cd0cf64a96","description":{"content":"<p>Decides which contactlist's info to view</p>\n","type":"text/plain"},"type":"any","value":"id_for_contactlist","key":"id"}]}},"response":[{"id":"4329dbf0-75a8-4531-ad11-2726874ab362","name":"View list 33","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://qa.alphaone.se:3007/api/contactlist/:id","protocol":"https","host":["qa","alphaone","se"],"port":"3007","path":["api","contactlist",":id"],"variable":[{"key":"id","value":"33"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"207"},{"key":"etag","value":"W/\"cf-YpxHsGt16j0irrwJ8fbpYbw9W/o\""},{"key":"date","value":"Wed, 30 Nov 2022 08:54:22 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 33,\n    \"is_company\": 0,\n    \"title\": \"api_list\",\n    \"contacts_count\": 0,\n    \"deleted\": 0,\n    \"prune_date\": null,\n    \"keep_order_on_prune\": 1,\n    \"pruned\": 0,\n    \"updated_at\": \"2022-11-30T07:23:12.000Z\",\n    \"created_at\": \"2022-11-30T07:23:12.000Z\"\n}"}],"_postman_id":"7a8dd272-dafc-4986-8c4e-1a5ea8b22ff0"},{"name":"View customfields","id":"a13fcf82-4b00-48b5-88c3-fdf624cbe9f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customfield","description":"<p>Custom fields are extra data objects that users can specify for each dialer.</p>\n<p>This endpoint lists all customfields that are availble to be stored as well as what datatype they are.</p>\n<p>Type 1 are customer custom fields</p>\n<p>Type 2 are product custom fields (only created when creating an order)</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customfield"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"02920f8e-13ec-4e3c-b8d3-e5ce512f6c9a","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://qa.alphaone.se:3007/api/customfield"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"3799"},{"key":"etag","value":"W/\"ed7-Qjm11PJs7nwx396rA1wEegLUfdQ\""},{"key":"date","value":"Wed, 30 Nov 2022 08:32:02 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"name\": \"Standard\",\n        \"datatype\": \"int\",\n        \"default_value\": \"12\",\n        \"options\": null,\n        \"type\": 1,\n        \"description\": \"A dozen\",\n        \"deleted\": 0\n    },\n    {\n        \"id\": 3,\n        \"name\": \"lead_id\",\n        \"datatype\": \"int\",\n        \"default_value\": null,\n        \"options\": null,\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    },\n    {\n        \"id\": 13,\n        \"name\": \"Long text api test\",\n        \"datatype\": \"text\",\n        \"default_value\": null,\n        \"options\": null,\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    },\n    {\n        \"id\": 14,\n        \"name\": \"Member\",\n        \"datatype\": \"boolean\",\n        \"default_value\": \"No\",\n        \"options\": null,\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    },\n    {\n        \"id\": 15,\n        \"name\": \"Last call date\",\n        \"datatype\": \"datetime\",\n        \"default_value\": null,\n        \"options\": null,\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    },\n    {\n        \"id\": 16,\n        \"name\": \"Contract start\",\n        \"datatype\": \"date\",\n        \"default_value\": null,\n        \"options\": null,\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    },\n    {\n        \"id\": 17,\n        \"name\": \"Phone operator\",\n        \"datatype\": \"dropdown\",\n        \"default_value\": null,\n        \"options\": \"Telia;;Telenor;;Tele2;;Hi3g;;Other\",\n        \"type\": 1,\n        \"description\": null,\n        \"deleted\": 0\n    }\n]"}],"_postman_id":"a13fcf82-4b00-48b5-88c3-fdf624cbe9f9"},{"name":"Add customer to contactlist","id":"d20977fc-5692-498b-a0da-f9556e016a41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"customer_id\": int,\r\n \"contactlist_id_from\": int,\r\n \"contactlist_id_to\": int\r\n}","options":{"raw":{"language":"json"}}},"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist-customer","description":"<p>Adds an already exsiting customer to a contactlist.</p>\n<p>This allows for the same customer to exist on multiple contactlist &amp; campaigns if needed. Each copy of the customer will be called independently of each other.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","contactlist-customer"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"3ec79dbe-c2b8-4f29-a032-85839834e942","name":"Succesfully added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"customer_id\": 10000165,\r\n \"contactlist_id\": 43\r\n}","options":{"raw":{"language":"json"}}},"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist-customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"32"},{"key":"etag","value":"W/\"20-R47uu90L1kj3R3oIFdM3pWAbB4c\""},{"key":"date","value":"Wed, 06 Sep 2023 11:32:18 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"id\": 168916\n}"},{"id":"b5aa78b9-c6e5-4ad9-bdc9-4bf264367b11","name":"Contactlist doesn't exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"customer_id\": 10000162,\r\n \"contactlist_id\": 1037\r\n}","options":{"raw":{"language":"json"}}},"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist-customer"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"40"},{"key":"etag","value":"W/\"28-u2SSsXr2gP3ZqGaduiyIy5etPYY\""},{"key":"date","value":"Wed, 06 Sep 2023 11:34:06 GMT"}],"cookie":[],"responseTime":null,"body":"contactlist with this ID does not exists"},{"id":"f3b76a54-3c74-4a8c-9552-59a7ff150fc5","name":"Already exists on contactlist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"customer_id\": 10000165,\r\n \"contactlist_id\": 43\r\n}","options":{"raw":{"language":"json"}}},"url":"https://yourDialerHere.alphaone.se:3007/api/contactlist-customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"56"},{"key":"etag","value":"W/\"38-wDUw9SukXrLEm7szKjuHwrZj93o\""},{"key":"date","value":"Wed, 06 Sep 2023 11:34:36 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 168916,\n    \"contactlist_id\": 43,\n    \"customer_id\": 10000165\n}"}],"_postman_id":"d20977fc-5692-498b-a0da-f9556e016a41"},{"name":"Create blocklist","id":"f132f98a-d86f-464f-8c41-e00ea71b05ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/blocklist","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","blocklist"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[],"_postman_id":"f132f98a-d86f-464f-8c41-e00ea71b05ee"},{"name":"View blocklists","id":"02bebc15-069f-4681-ad57-e8cdd42ca4c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/blocklist","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","blocklist"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[],"_postman_id":"02bebc15-069f-4681-ad57-e8cdd42ca4c3"},{"name":"Add number to blocklist","id":"5eee01fc-f984-406c-85b2-908b31f3da5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"nixlist_id\": int,\r\n    \"phonenumber\": str,\r\n    \"comment\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/blocklist/customer","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","blocklist","customer"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[],"_postman_id":"5eee01fc-f984-406c-85b2-908b31f3da5a"}],"id":"eff210dd-e17a-4945-a583-41472be21787","description":"<p>The system seperates customers into different contactlists. These are used to split customers up between campaigns to control when and how customers in a contactlist are contacted.</p>\n<p>All contactlists come with some standardized fields for storing data. If these fields aren't suffiecent, users can add their own custom fields which can be used to store more data.</p>\n<p>Standard fields:</p>\n<p>First name<br />Last name<br />Identity number<br />Phone<br />Email<br />Address<br />Postal code<br />City<br />Company name<br />Organization number<br />Extrernal id 1-3</p>\n","_postman_id":"eff210dd-e17a-4945-a583-41472be21787","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}}},{"name":"Customers","item":[{"name":"Create single customer","id":"df5651d0-5167-4e11-9535-73484b4ab982","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": int,\r\n    \"allow_duplicates\": boolean,\r\n    \"earliest_ringtime\": date,\r\n    \"contactlist_duplicates\": list[int],\r\n    \"phone\": str,\r\n    \"first_name\": str, \r\n    \"last_name\": str, \r\n    \"identity_number\": str, \r\n    \"email\": str, \r\n    \"address\": str, \r\n    \"postal_code\": str, \r\n    \"city\": str, \r\n    \"external_id_1\": str, \r\n    \"external_id_2\": str, \r\n    \"external_id_3\": str,\r\n    \"custom_field_{id}\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer","description":"<p>Creates a new customer save them to a specific contactlist</p>\n<ul>\n<li><strong>Allow_duplicates</strong> - allows/stops the same customer to exist on the same list (thus allowing it to be called twice)</li>\n<li><strong>Contactlist_duplicates</strong> - checks and stops the customer from being created if it already exists in another contactlist specified</li>\n<li>The amount of custom_fields that can be added in a request isn't limited</li>\n<li><strong>earliest_ringtime</strong> - specify a date, customer will not be contacted until after this date.</li>\n</ul>\n<p>Any field that isn't neccessary can be omitted and the customer will still be created.</p>\n<p>*list_id and phone are mandatory fields</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customer"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"7b8570d2-5190-4493-be04-3e99ed12fbd6","name":"New single customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 38,\r\n    \"allow_duplicates\": 1,\r\n    \"contactlist_duplicates\": [],\r\n    \"phone\": \"0673451254\",\r\n    \"first_name\": \"Single customer\", \r\n    \"last_name\": \"Last name\", \r\n    \"identity_number\": \"196505231337\", \r\n    \"email\": \"test@test.com\", \r\n    \"address\": \"testingstreet 1\", \r\n    \"postal_code\": \"70321\", \r\n    \"city\": \"Örebro\"\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Thu, 08 Dec 2022 06:03:44 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"6acc0eb3-fe9e-49ab-8c70-6a4075d70396","name":"New minimal customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 38,\r\n    \"allow_duplicates\": 0,\r\n    \"contactlist_duplicates\": [],\r\n    \"phone\": \"0736546232\"\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Thu, 08 Dec 2022 08:07:48 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"e8c07786-f863-4ae9-80a6-e553fc4a059a","name":"Found duplicate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 38,\r\n    \"allow_duplicates\": 0,\r\n    \"contactlist_duplicates\": [],\r\n    \"phone\": \"0773241543\"\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"17"},{"key":"etag","value":"W/\"11-ZH/2XXsiqTK2rCYsTKhXwwBwBxA\""},{"key":"date","value":"Thu, 08 Dec 2022 08:06:21 GMT"}],"cookie":[],"responseTime":null,"body":"Found duplication"},{"id":"45de3243-351f-400c-8c34-281c4a5f1bf7","name":"Missing phone","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 24,\r\n    \"allow_duplicates\": 1,\r\n    \"contactlist_duplicates\": [38,34,102],\r\n    \"first_name\": \"Neo\", \r\n    \"last_name\": \"Andersson\",\r\n    \"identity_number\": \"1337\",\r\n    \"email\": \"Mr.Andersson@gov.us\",\r\n    \"address\": \"Ripley street 37B\",\r\n    \"postal_code\": \"10110\", \r\n    \"city\": \"Rapture\",\r\n    \"external_id_1\": \"1954356542\",\r\n    \"custom_field_3\": \"Human\"\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"53"},{"key":"etag","value":"W/\"35-oSMsMm7Q4NPhMAe7B4eyX4roB+E\""},{"key":"date","value":"Thu, 08 Dec 2022 08:10:11 GMT"}],"cookie":[],"responseTime":null,"body":"one of the phone number of the customer list is empty"}],"_postman_id":"df5651d0-5167-4e11-9535-73484b4ab982"},{"name":"Create multiple customers","id":"78022b0b-5e16-467f-b696-8c8c4f77cda9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": int,\r\n    \"allow_duplicates\": boolean,\r\n    \"contactlist_duplicates\": list[int],\r\n    \"data\":[\r\n        {\r\n            \"phone\": str,\r\n            \"earliest_ringtime\": date,\r\n            \"first_name\": str, \r\n            \"last_name\": str, \r\n            \"identity_number\": str, \r\n            \"email\": str, \r\n            \"address\": str, \r\n            \"postal_code\": str, \r\n            \"city\": str, \r\n            \"external_id_1\": str, \r\n            \"external_id_2\": str, \r\n            \"external_id_3\": str,\r\n            \"custom_field_{id}\": str\r\n        }\r\n    ]\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customers","description":"<p>Creates multiple new customer and saves them to a specific contactlist</p>\n<ul>\n<li><strong>Allow_duplicates</strong> - allows/stops the same customer to exist on the same list (thus allowing it to be called twice)</li>\n<li><strong>Contactlist_duplicates</strong> - checks and stops the customer from being created if it already exists in another contactlist specified</li>\n<li>The amount of custom_fields that can be added in a request isn't limited</li>\n<li><strong>earliest_ringtime</strong> - specify a date, customer will not be contacted until after this date.</li>\n</ul>\n<p>Any field that isn't neccessary can be omitted and the customer will still be created.</p>\n<p>*list_id and phone are mandatory fields</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customers"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"e1e98176-e0ea-4aff-afdb-3b533f32843f","name":"Full customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 25,\r\n    \"allow_duplicates\": 0,\r\n    \"contactlist_duplicates\": [24,28,29],\r\n    \"data\":[\r\n        {\r\n            \"phone\": \"0752751901\",\r\n            \"first_name\": \"Example\", \r\n            \"last_name\": \"Person\", \r\n            \"identity_number\": \"19730213xxxx\", \r\n            \"email\": \"exampledata@examples.com\", \r\n            \"address\": \"Buckingham palace 32A\", \r\n            \"postal_code\": \"44444\", \r\n            \"city\": \"London\", \r\n            \"external_id_1\": \"a323-ce17-5431-da23\", \r\n            \"external_id_2\": null, \r\n            \"external_id_3\": null,\r\n            \"custom_field_14\": 1,\r\n            \"custom_field_17\": \"Telia\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://qa.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Wed, 30 Nov 2022 08:48:21 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"1ca51bff-4fe6-4315-bff6-58fd168724e1","name":"Partial customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 37,\r\n    \"allow_duplicates\": 1,\r\n    \"contactlist_duplicates\": [],\r\n    \"data\":[\r\n        {\r\n            \"phone\": \"0734544754\",\r\n            \"first_name\": \"New test\",\r\n            \"last_name\": \"Person\", \r\n            \"email\": \"Testing@alphapartner.se\",\r\n            \"address\": \"Drottninggatan 18B\",\r\n            \"postal_code\": \"70210\",\r\n            \"city\": \"Örebro\",\r\n            \"custom_field_11\": \"rental\",\r\n            \"custom_field_2\": 12\r\n        }\r\n    ]\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Wed, 30 Nov 2022 13:16:33 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"26853e4b-6f79-4ba2-9581-643054be9533","name":"Minimal customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 33,\r\n    \"data\":[\r\n        {\r\n            \"phone\": \"0313766118\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://qa.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Wed, 30 Nov 2022 08:53:11 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"4597832e-a5af-4d0e-b13d-3703b9b0d175","name":"Multiple customers","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 37,\r\n    \"allow_duplicates\": 1,\r\n    \"contactlist_duplicates\": [],\r\n    \"data\":[\r\n        {\r\n            \"phone\": \"0313771810\",\r\n            \"first_name\": \"New test\",\r\n            \"last_name\": \"Person\", \r\n            \"email\": \"Testing@alphapartner.se\",\r\n            \"address\": \"Drottninggatan 18B\",\r\n            \"postal_code\": \"70210\",\r\n            \"city\": \"Örebro\",\r\n            \"custom_field_11\": \"rental\",\r\n            \"custom_field_2\": 12\r\n        },\r\n        {\r\n            \"phone\": \"0752751956\",\r\n            \"first_name\": \"Another\",\r\n            \"last_name\": \"Person\", \r\n            \"email\": \"moredata@alphapartner.se\",\r\n            \"address\": \"Turning torso 1\",\r\n            \"postal_code\": \"40353\",\r\n            \"city\": \"Malmö\",\r\n            \"custom_field_11\": \"cohabitant\",\r\n            \"custom_field_2\": 7\r\n        },\r\n        {\r\n            \"phone\": \"0102886101\",\r\n            \"first_name\": \"John A.\",\r\n            \"last_name\": \"Smith\", \r\n            \"email\": \"John.Smith@testing.com\",\r\n            \"address\": \"Globen 3\",\r\n            \"postal_code\": \"10153\",\r\n            \"city\": \"Stockholm\",\r\n            \"custom_field_11\": \"villa\",\r\n            \"custom_field_2\": 117\r\n        }\r\n    ]\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-AtwMGnpU3qGq3cxjCebTC39wglc\""},{"key":"date","value":"Wed, 30 Nov 2022 13:35:28 GMT"}],"cookie":[],"responseTime":null,"body":"Data inserted successfully"},{"id":"06871b43-6ba6-4045-a4fd-9a0ed3ff53cb","name":"Error phone missing","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"list_id\": 25,\r\n    \"data\":[\r\n        {\r\n            \"first_name\": \"Person\", \r\n            \"last_name\": \"Example\",\r\n            \"address\": \"Drottninggatan 1\", \r\n            \"postal_code\": \"12143\", \r\n            \"city\": \"Stockholm\", \r\n            \"external_id_1\": 33123, \r\n            \"custom_field_14\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://qa.alphaone.se:3007/api/customer"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"53"},{"key":"etag","value":"W/\"35-oSMsMm7Q4NPhMAe7B4eyX4roB+E\""},{"key":"date","value":"Wed, 30 Nov 2022 09:01:25 GMT"}],"cookie":[],"responseTime":null,"body":"one of the phone number of the customer list is empty"}],"_postman_id":"78022b0b-5e16-467f-b696-8c8c4f77cda9"},{"name":"Move customer to new contactlist","id":"254aeb52-c6e0-4428-9652-38eb4459bd50","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customer_id\": int,\r\n    \"contactlist_id_from\": int,\r\n    \"contactlist_id_to\": int\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer/contactlist","description":"<p>Moves a customer to a new contactlist and updates all data accordingly.</p>\n<p>Prevents customer from being called if old contactlist remains active on campaign and will be called according to the new contactlist and the customer is cleared from any call queues it's part of.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customer","contactlist"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[{"id":"2685179a-fcff-4e5b-a9b8-e7d008b70fd5","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customer_id\": 158198,\r\n    \"contactlist_id_from\": 28,\r\n    \"contactlist_id_to\": 24\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer/contactlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"84"},{"key":"etag","value":"W/\"54-u6L/X/ybFXIz9pXYUndvI/c9Kc8\""},{"key":"date","value":"Tue, 21 Nov 2023 12:27:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 158198,\n    \"contactlist_id_to\": 24,\n    \"contactlist_id_from\": 28,\n    \"status\": \"ok\"\n}"}],"_postman_id":"254aeb52-c6e0-4428-9652-38eb4459bd50"},{"name":"Get customer","id":"46660cde-bff0-48e9-a2a0-dc4a5dd78349","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/customer?id={num}&phone={num}&external_id_{{num}}={num}","description":"<p>Grab customer info based on customer_id or search customer based on external_id or phone number.</p>\n<p>Data returned as a json object with associated orders ID in an array.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customer"],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"id","value":"{num}"},{"key":"phone","value":"{num}"},{"key":"external_id_{{num}}","value":"{num}"}],"variable":[]}},"response":[{"id":"30f89429-b5ad-4343-b6ec-abad880ca636","name":"Found customer","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=&phone=0768085162&external_id_{{num}}=","protocol":"https","host":["yourDialerHere","alphaone","se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":""},{"key":"phone","value":"0768085162"},{"key":"external_id_{{num}}","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"326"},{"key":"etag","value":"W/\"146-KtCuEUYunP/fpqHBtmrU7N8y2cU\""},{"key":"date","value":"Wed, 22 Nov 2023 12:52:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 10000700,\n    \"external_id_1\": null,\n    \"external_id_2\": null,\n    \"external_id_3\": null,\n    \"city\": \"Örebro\",\n    \"postal_code\": \"70210\",\n    \"phone\": \"4676843193\",\n    \"address\": \"Drottninggatan 18b\",\n    \"name\": \"David Bäckvall\",\n    \"order_ids\": [\n        202\n    ],\n    \"custom_fields\": [\n        {\n            \"value\": \"2023-11-29\",\n            \"custom_field_id\": 70,\n            \"title\": \"Order date\"\n        }\n    ],\n    \"contactlist_ids\": []\n}"},{"id":"b0348929-427d-4615-b11c-caa4a11fdde3","name":"Found - GDPR pruned","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"phone\": str,\r\n    \"first_name\": str, \r\n    \"last_name\": str, \r\n    \"identity_number\": str, \r\n    \"email\": str, \r\n    \"address\": str, \r\n    \"postal_code\": str, \r\n    \"city\": str, \r\n    \"external_id_1\": str, \r\n    \"external_id_2\": str, \r\n    \"external_id_3\": str,\r\n    \"custom_field_{id}\": str\r\n}"},"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=10000060&phone=&external_id_{{num}}=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"10000060"},{"key":"phone","value":""},{"key":"external_id_{{num}}","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"184"},{"key":"etag","value":"W/\"b8-a3wal8Bq7YX6p8jRAsINNFuRM7w\""},{"key":"date","value":"Fri, 03 Feb 2023 15:22:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 10000060,\n    \"external_id_1\": null,\n    \"external_id_2\": null,\n    \"external_id_3\": null,\n    \"phone\": \"46101501691\",\n    \"address\": \"GDPR Removed\",\n    \"name\": \"GDPR Removed GDPR Removed\",\n    \"order_ids\": []\n}"},{"id":"e1630b69-c93f-4956-b57d-2243323d9bfe","name":"Not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=10000070&phone=46735651294&external_id_{{num}}=a549c7be312293e8da","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"10000070"},{"key":"phone","value":"46735651294"},{"key":"external_id_{{num}}","value":"a549c7be312293e8da"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"2"},{"key":"etag","value":"W/\"2-vyGp6PvFo4RvsFtPoIWeCReyIC8\""},{"key":"date","value":"Mon, 06 Feb 2023 07:41:21 GMT"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"46660cde-bff0-48e9-a2a0-dc4a5dd78349"},{"name":"Update customer","id":"fe56a067-648c-4fb4-a241-49aded0b316d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone\": str,\r\n    \"earliest_ringtime\": date,\r\n    \"first_name\": str, \r\n    \"last_name\": str, \r\n    \"identity_number\": str, \r\n    \"email\": str, \r\n    \"address\": str, \r\n    \"postal_code\": str, \r\n    \"city\": str, \r\n    \"external_id_1\": str, \r\n    \"external_id_2\": str, \r\n    \"external_id_3\": str,\r\n    \"custom_field_{id}\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customer?id=&phone=&external_id_<field-id>=","description":"<p>Update a customer based on their customer_id or search customer based on phone number or external_id and update their data.</p>\n<p>No field is obligatory and only new data needs to be sent in, any other data will not be updated/erased.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customer"],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"id","value":""},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}],"variable":[]}},"response":[{"id":"7b28d8ab-4792-4f32-a55f-924176752238","name":"Customer updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"info@alphapartner.se\",\r\n    \"external_id_1\": 1267423,\r\n    \"custom_field_3\": 12854\r\n}"},"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=10000057454&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"10000057454"},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"38"},{"key":"etag","value":"W/\"26-ihQxzn9Kpm0PPfwyhpcDanSpBik\""},{"key":"date","value":"Fri, 03 Feb 2023 15:33:11 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 10000057,\n    \"status\": \"ok\"\n}"},{"id":"c9810fff-cdc5-4820-8745-e146d2d5ac94","name":"Customer not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"info@alphapartner.se\",\r\n    \"external_id_1\": 1267423,\r\n    \"custom_field_3\": 12854\r\n}"},"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=10014524&phone=4673235435&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"10014524"},{"key":"phone","value":"4673235435"},{"key":"external_id_<field-id>","value":""}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"27"},{"key":"etag","value":"W/\"1b-vQSReAgPoLwoQsJ61NAovdGHu6k\""},{"key":"date","value":"Mon, 06 Feb 2023 07:43:08 GMT"}],"cookie":[],"responseTime":null,"body":"Customer could not be found"}],"_postman_id":"fe56a067-648c-4fb4-a241-49aded0b316d"},{"name":"Update multiple customers","id":"34a7e197-2c85-4b78-882c-edb8002e4cff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone\": str,\r\n    \"earliest_ringtime\": date,\r\n    \"first_name\": str, \r\n    \"last_name\": str, \r\n    \"identity_number\": str, \r\n    \"email\": str, \r\n    \"address\": str, \r\n    \"postal_code\": str, \r\n    \"city\": str, \r\n    \"external_id_1\": str, \r\n    \"external_id_2\": str, \r\n    \"external_id_3\": str,\r\n    \"custom_field_{id}\": str\r\n}"},"url":"https://yourDialerHere.alphaone.se:3007/api/customers?external_id_<field-id>=","description":"<p>Update a customer based on their external_id and update their data.</p>\n<p>No field is obligatory and only new data needs to be sent in, any other data will not be updated/erased.<br />All customers matching the query will be updated up to a maximum of 10.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","customers"],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"external_id_<field-id>","value":""}],"variable":[]}},"response":[{"id":"aa19e974-7f0c-4ae8-bc42-db036bd22d26","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"New name\",\r\n    \"email\": \"Opt-in@email.con\",\r\n    \"external_id_3\": \"35642353476567\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customers?id=&phone=&external_id_<field-id>=ae53d186ea283c32","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customers"],"query":[{"key":"id","value":""},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":"ae53d186ea283c32"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"122"},{"key":"etag","value":"W/\"7a-YhiumGBSMQPafeEHkovvYvA9Hss\""},{"key":"date","value":"Mon, 27 Mar 2023 06:51:23 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_ids\": [\n        10000167,\n        10000158,\n        10000148,\n        10000138,\n        10000128,\n        10000118,\n        10000108,\n        10000068,\n        10000021,\n        10000011\n    ],\n    \"status\": \"ok\"\n}"},{"id":"8dcb3505-1b29-4f2f-99c4-75b68b64f907","name":"Not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"New name\",\r\n    \"email\": \"Opt-in@email.con\",\r\n    \"external_id_1\": \"ae53d186ea283c32\"\r\n}"},"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customers?id=&phone=&external_id_<field-id>=ae53d186ea","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customers"],"query":[{"key":"id","value":""},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":"ae53d186ea"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"28"},{"key":"etag","value":"W/\"1c-vtnMchkaz7Vt/T8DYIGz4KK9UoU\""},{"key":"date","value":"Mon, 27 Mar 2023 06:53:06 GMT"}],"cookie":[],"responseTime":null,"body":"Customers could not be found"}],"_postman_id":"34a7e197-2c85-4b78-882c-edb8002e4cff"},{"name":"GDPR prune customer","id":"3d52cfde-ef09-44ae-96a1-d04529d1417d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/gdpr/customer?id={num}&phone={num}&external_id_<field-id>={num}","description":"<p>Either grab by customer_id or search customer based on phone number or external_id. Once found customer data will be pruned and replaced with a \"GDPR REMOVED\" template.</p>\n<p>Order and call data will be left, but any personal information will be removed and replaced with the GDPR template.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","gdpr","customer"],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"id","value":"{num}"},{"key":"phone","value":"{num}"},{"key":"external_id_<field-id>","value":"{num}"}],"variable":[]}},"response":[{"id":"e93367c6-2c30-4096-8f99-3c0449872c00","name":"Customer pruned","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/gdpr/customer?id=158200&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","gdpr","customer"],"query":[{"key":"id","value":"158200"},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"36"},{"key":"etag","value":"W/\"24-voPCFmMstCk/6B8ku3ujXQi3Y0o\""},{"key":"date","value":"Fri, 03 Feb 2023 15:12:10 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 158200,\n    \"status\": \"ok\"\n}"},{"id":"06e6235a-0da8-4794-93d6-870a02dabe50","name":"Not found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/gdpr/customer?id=158200543545&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","gdpr","customer"],"query":[{"key":"id","value":"158200543545"},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"27"},{"key":"etag","value":"W/\"1b-vQSReAgPoLwoQsJ61NAovdGHu6k\""},{"key":"date","value":"Fri, 03 Feb 2023 15:15:23 GMT"}],"cookie":[],"responseTime":null,"body":"Customer could not be found"}],"_postman_id":"3d52cfde-ef09-44ae-96a1-d04529d1417d"},{"name":"Remove customer from contactlist","id":"68c14e2a-6100-4317-be6a-1e051054c4a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/customer?id={num}&phone={num}&external_id_<field-id>={num}","description":"<p>Remove a customer from any campaigns and contactlists that they are apart of. They will be cleared from memory so any automatic calls to them will be removed. All data is saved and the customer can be added to new contactlists or be viewed in the dialer.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","customer"],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"id","value":"{num}"},{"key":"phone","value":"{num}"},{"key":"external_id_<field-id>","value":"{num}"}],"variable":[]}},"response":[{"id":"6bd7435b-484b-4692-a2f9-7b0e42c5bbda","name":"Removed from list succesfully","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=&phone=0768085162&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":""},{"key":"phone","value":"0768085162"},{"key":"external_id_<field-id>","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"38"},{"key":"etag","value":"W/\"26-jAsVHNDICfxaZUmR3xdTD24UQf4\""},{"key":"date","value":"Wed, 06 Sep 2023 11:38:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer_id\": 10000553,\n    \"status\": \"ok\"\n}"},{"id":"b4380e24-334f-4efe-bcec-37e2b14fd44a","name":"Faulty parameters","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=NUM&phone=num&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"NUM"},{"key":"phone","value":"num"},{"key":"external_id_<field-id>","value":""}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-z5B7LqNBeF1W2Tysy+V2Fs4cwxg\""},{"key":"date","value":"Wed, 06 Sep 2023 11:38:47 GMT"}],"cookie":[],"responseTime":null,"body":"Query parameters are empty"},{"id":"180e553f-bc08-4978-a83a-f8d552187b3c","name":"Customer doesn't exist","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/customer?id=10020550&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","customer"],"query":[{"key":"id","value":"10020550"},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"27"},{"key":"etag","value":"W/\"1b-vQSReAgPoLwoQsJ61NAovdGHu6k\""},{"key":"date","value":"Wed, 06 Sep 2023 11:39:27 GMT"}],"cookie":[],"responseTime":null,"body":"Customer could not be found"}],"_postman_id":"68c14e2a-6100-4317-be6a-1e051054c4a1"}],"id":"3183220b-7c47-4840-ad69-1e3555bc9885","description":"<p>Customers are indivudal people/companies saved onto different contactlists. These customers house data which are presented for agents on customer cards and stored in the system. Customers can exist on multiple contactlist and are tied to unique IDs for each contactlist they exist on. Customer cards are unique to the phone number on a customer.</p>\n","_postman_id":"3183220b-7c47-4840-ad69-1e3555bc9885","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}}},{"name":"Orders","item":[{"name":"Search orders info","id":"a35cf2d9-0a8a-4a70-a624-c2ac36fe645c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=&campaign_id=&exact_date=&start_date=&end_date=&confirm_start_date=&confirm_end_date=&id=&phonenumber=&external_id_<field-id>=","description":"<p>Search for orders and get all data returned.</p>\n<p>Orders are returned in a list, for how these look see example or look at description for /api/order/{id}.</p>\n<ul>\n<li>User_id - Matches the user who created the order</li>\n<li>Campaign_id - Matches the campaign where the order was placed</li>\n<li>Exact_date - Find orders during a specific date</li>\n<li>Start_date &amp; end_date - Find orders created within a specified interval</li>\n<li>Confirm start_date &amp; end_date - Find orders that were confirmed at a specific date</li>\n<li>Id - Find order based on customer_id for the order</li>\n<li>Phonenumber - Find order created on a specific phonenumber</li>\n<li>External_id_{1-3} - Find orders based on external_id</li>\n</ul>\n<p>You can use one or several of the parameters to find orders created.</p>\n<p>Confirmed orders are orders that have passed validation checks, this is decided based on campaign and can vary. The confirm date may also be different from the order creation date.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","orders",""],"host":["yourDialerHere.alphaone.se"],"query":[{"key":"user_id","value":""},{"key":"campaign_id","value":""},{"key":"exact_date","value":""},{"key":"start_date","value":""},{"key":"end_date","value":""},{"key":"confirm_start_date","value":""},{"key":"confirm_end_date","value":""},{"key":"id","value":""},{"key":"phonenumber","value":""},{"key":"external_id_<field-id>","value":""}],"variable":[]}},"response":[{"id":"477cf9c7-3c18-48ab-af7a-ab085fabf5ab","name":"Get orders on customer_id","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?id=10000001&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"id","value":"10000001"},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"242"},{"key":"etag","value":"W/\"f2-oEaBJfcHvouwqCaHP+hCv3Q3WhY\""},{"key":"date","value":"Fri, 03 Feb 2023 14:45:59 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 110,\n        \"customer_id\": 10000001,\n        \"customer_phone\": \"46763968374\",\n        \"campaign_title\": \"API implementation campaign 2\",\n        \"campaign_id\": 14,\n        \"products\": [\n            {\n                \"product_id\": 15,\n                \"product_name\": \"Loan application\",\n                \"product_quantity\": 1,\n                \"product_price\": 15000\n            }\n        ]\n    }\n]"},{"id":"2fdbe6ed-9fe1-471f-9fee-d6262690ba8a","name":"Get orders on phone number","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?id=&phone=46734526421&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"id","value":""},{"key":"phone","value":"46734526421"},{"key":"external_id_<field-id>","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"457"},{"key":"etag","value":"W/\"1c9-ptkK03/JVEGDWDgcAM8jMVhF980\""},{"key":"date","value":"Fri, 03 Feb 2023 14:51:49 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 1252,\n        \"customer_id\": 102368,\n        \"customer_phone\": \"46734526421\",\n        \"campaign_title\": \"Cheap electricity campaign\",\n        \"campaign_id\": 18,\n        \"products\": [\n            {\n                \"product_id\": 16,\n                \"product_name\": \"Bound 36 months\",\n                \"product_quantity\": 1,\n                \"product_price\": 849,\n                \"product_custom_field_1\": \"1732 kWh\",\n                \"product_custom_field_2\": \"0734526421\",\n                \"product_custom_field_3\": \"3 months\",\n                \"product_custom_field_4\": \"44444 Stockholm\",\n                \"product_custom_field_5\": \"Ellevio AB\"\n            }\n        ]\n    }\n]"},{"id":"074d22dd-518d-4458-879d-48bce2c9f11c","name":"Missing query parameters","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?id=&phone=&external_id_<field-id>=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"id","value":""},{"key":"phone","value":""},{"key":"external_id_<field-id>","value":""}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"26"},{"key":"etag","value":"W/\"1a-z5B7LqNBeF1W2Tysy+V2Fs4cwxg\""},{"key":"date","value":"Fri, 03 Feb 2023 15:03:35 GMT"}],"cookie":[],"responseTime":null,"body":"Query parameters are empty"},{"id":"06412583-4a65-4ac5-8f9d-dd3d94ea2f6d","name":"Not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?id=199000001&phone=46741530891&external_id_<field-id>=a3478b2e34d854c","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"id","value":"199000001"},{"key":"phone","value":"46741530891"},{"key":"external_id_<field-id>","value":"a3478b2e34d854c"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"text/html; charset=utf-8"},{"key":"content-length","value":"27"},{"key":"etag","value":"W/\"1b-vQSReAgPoLwoQsJ61NAovdGHu6k\""},{"key":"date","value":"Fri, 03 Feb 2023 15:04:29 GMT"}],"cookie":[],"responseTime":null,"body":"Customer could not be found"},{"id":"fc38f3f8-0b56-46e0-9373-793cf5e41bcf","name":"Search by campaign","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=&campaign_id=24&exact_date=&start_date=&end_date=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"user_id","value":""},{"key":"campaign_id","value":"24"},{"key":"exact_date","value":""},{"key":"start_date","value":""},{"key":"end_date","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"1153"},{"key":"etag","value":"W/\"481-GemPtSVWF+HfHvqb6pmy4z/9CLc\""},{"key":"date","value":"Sun, 05 Nov 2023 15:35:10 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 132,\n        \"campaign_customer_id\": 318,\n        \"user_id\": 18,\n        \"create_time\": \"2023-03-31T12:44:41.000Z\",\n        \"call_id\": 763,\n        \"order_recording_id\": null,\n        \"value\": 350000,\n        \"units\": 1,\n        \"campaign_id\": 24,\n        \"campaign_title\": \"API campaign - animal snacks\",\n        \"products\": [\n            {\n                \"product_id\": 17,\n                \"product_name\": \"Free pricing product\",\n                \"product_quantity\": 1,\n                \"product_price\": 0\n            }\n        ]\n    },\n    {\n        \"id\": 194,\n        \"campaign_customer_id\": 800,\n        \"user_id\": 18,\n        \"create_time\": \"2023-11-05T15:21:32.000Z\",\n        \"call_id\": 1818,\n        \"order_recording_id\": null,\n        \"value\": 100,\n        \"units\": 1,\n        \"campaign_id\": 24,\n        \"campaign_title\": \"API campaign - animal snacks\",\n        \"products\": [\n            {\n                \"product_id\": 8,\n                \"product_name\": \"Animal snacks order\",\n                \"product_quantity\": 1,\n                \"product_price\": 100,\n                \"product_custom_field_1\": \"0\",\n                \"product_custom_field_2\": \"2023-11-29\",\n                \"product_custom_field_3\": \"1\"\n            }\n        ]\n    },\n    {\n        \"id\": 195,\n        \"campaign_customer_id\": 801,\n        \"user_id\": 18,\n        \"create_time\": \"2023-11-05T15:23:55.000Z\",\n        \"call_id\": 1819,\n        \"order_recording_id\": null,\n        \"value\": 15,\n        \"units\": 1,\n        \"campaign_id\": 24,\n        \"campaign_title\": \"API campaign - animal snacks\",\n        \"products\": [\n            {\n                \"product_id\": 9,\n                \"product_name\": \"EnRich animal food - dog\",\n                \"product_quantity\": 1,\n                \"product_price\": 15,\n                \"product_custom_field_1\": \"0\",\n                \"product_custom_field_2\": \"2023-12-01\"\n            }\n        ]\n    }\n]"},{"id":"8a23f3bf-6430-4c34-bbf3-405b4723baf6","name":"Searching on date range","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=&campaign_id=&exact_date=&start_date=2023-11-03&end_date=2023-11-07","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"user_id","value":""},{"key":"campaign_id","value":""},{"key":"exact_date","value":""},{"key":"start_date","value":"2023-11-03"},{"key":"end_date","value":"2023-11-07"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"823"},{"key":"etag","value":"W/\"337-IPHopkWRMTeEfPQH84tcX2P0tbM\""},{"key":"date","value":"Sun, 05 Nov 2023 16:49:25 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 194,\n        \"campaign_customer_id\": 800,\n        \"user_id\": 18,\n        \"create_time\": \"2023-11-05T15:21:32.000Z\",\n        \"call_id\": 1818,\n        \"order_recording_id\": null,\n        \"value\": 100,\n        \"units\": 1,\n        \"campaign_id\": 24,\n        \"campaign_title\": \"API campaign - animal snacks\",\n        \"products\": [\n            {\n                \"product_id\": 8,\n                \"product_name\": \"Animal snacks order\",\n                \"product_quantity\": 1,\n                \"product_price\": 100,\n                \"product_custom_field_1\": \"0\",\n                \"product_custom_field_2\": \"2023-11-29\",\n                \"product_custom_field_3\": \"1\"\n            }\n        ]\n    },\n    {\n        \"id\": 195,\n        \"campaign_customer_id\": 801,\n        \"user_id\": 18,\n        \"create_time\": \"2023-11-05T15:23:55.000Z\",\n        \"call_id\": 1819,\n        \"order_recording_id\": null,\n        \"value\": 15,\n        \"units\": 1,\n        \"campaign_id\": 24,\n        \"campaign_title\": \"API campaign - animal snacks\",\n        \"products\": [\n            {\n                \"product_id\": 9,\n                \"product_name\": \"EnRich animal food - dog\",\n                \"product_quantity\": 1,\n                \"product_price\": 15,\n                \"product_custom_field_1\": \"0\",\n                \"product_custom_field_2\": \"2023-12-01\"\n            }\n        ]\n    }\n]"},{"id":"e07b4eb7-c6fc-4ea5-a158-e46232423c98","name":"Searching on user_id","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=12&campaign_id=&exact_date=&start_date=&end_date=","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"user_id","value":"12"},{"key":"campaign_id","value":""},{"key":"exact_date","value":""},{"key":"start_date","value":""},{"key":"end_date","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"348"},{"key":"etag","value":"W/\"15c-pwK4dtPIrAHzw7iTnqDqSWFV/uA\""},{"key":"date","value":"Sun, 05 Nov 2023 17:01:16 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 38,\n        \"campaign_customer_id\": 39,\n        \"user_id\": 12,\n        \"create_time\": \"2020-02-12T16:36:42.000Z\",\n        \"call_id\": 130,\n        \"order_recording_id\": 3,\n        \"value\": 798,\n        \"units\": 2,\n        \"campaign_id\": 1,\n        \"campaign_title\": \"Data Package Upgrades\",\n        \"products\": [\n            {\n                \"product_id\": 2,\n                \"product_name\": \"Fastpris 10 GB\",\n                \"product_quantity\": 2,\n                \"product_price\": 399,\n                \"product_custom_field_1\": \"0702663674\"\n            }\n        ]\n    }\n]"},{"id":"16c07c8f-c88e-46b0-8359-bd122ff56b4a","name":"Date range on multiple campaigns","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=12&campaign_id=1,2,3&exact_date=&start_date=2020-01-01&end_date=2021-01-01","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"user_id","value":"12"},{"key":"campaign_id","value":"1,2,3"},{"key":"exact_date","value":""},{"key":"start_date","value":"2020-01-01"},{"key":"end_date","value":"2021-01-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"348"},{"key":"etag","value":"W/\"15c-pwK4dtPIrAHzw7iTnqDqSWFV/uA\""},{"key":"date","value":"Sun, 05 Nov 2023 17:01:58 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 38,\n        \"campaign_customer_id\": 39,\n        \"user_id\": 12,\n        \"create_time\": \"2020-02-12T16:36:42.000Z\",\n        \"call_id\": 130,\n        \"order_recording_id\": 3,\n        \"value\": 798,\n        \"units\": 2,\n        \"campaign_id\": 1,\n        \"campaign_title\": \"Data Package Upgrades\",\n        \"products\": [\n            {\n                \"product_id\": 2,\n                \"product_name\": \"Fastpris 10 GB\",\n                \"product_quantity\": 2,\n                \"product_price\": 399,\n                \"product_custom_field_1\": \"0702663674\"\n            }\n        ]\n    }\n]"},{"id":"828ed4fc-5889-4a83-91b2-1c966c09b33b","name":"Not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/orders/?user_id=&campaign_id=&exact_date=&start_date=2023-11-06&end_date=2023-11-07","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","orders",""],"query":[{"key":"user_id","value":""},{"key":"campaign_id","value":""},{"key":"exact_date","value":""},{"key":"start_date","value":"2023-11-06"},{"key":"end_date","value":"2023-11-07"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"2"},{"key":"etag","value":"W/\"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w\""},{"key":"date","value":"Sun, 05 Nov 2023 16:52:46 GMT"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"a35cf2d9-0a8a-4a70-a624-c2ac36fe645c"},{"name":"Get order info","id":"1d056e73-4909-40bd-89d3-95967b997d04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/order/:{id}","description":"<p>Get order info on a specific order.</p>\n<p>Name, adress, email, phonenumber, product, price, units are standard.<br />Depending on the campaign and product there can also be custom_field info for the customer and product_field info on the product.</p>\n","urlObject":{"protocol":"https","port":"3007","path":["api","order",":{id}"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[{"type":"any","value":"","key":"{id}"}]}},"response":[{"id":"4258d78c-b8f1-4c0a-a4e4-95abfbf084bf","name":"Get order info","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://yourDialerHere.alphaone.se:3007/api/order/:{id}","protocol":"https","host":["yourDialerHere.alphaone.se"],"port":"3007","path":["api","order",":{id}"],"variable":[{"key":"{id}","value":"124"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"235"},{"key":"etag","value":"W/\"eb-psB5aT0GdMvDVKLPNcUZNOHeeos\""},{"key":"date","value":"Fri, 03 Feb 2023 15:05:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 124,\n    \"customer_id\": 10000070,\n    \"customer_phone\": \"46792305412\",\n    \"campaign_title\": \"Winback campaign 2023\",\n    \"campaign_id\": 17,\n    \"products\": [\n        {\n            \"product_id\": 3,\n            \"product_name\": \"Winback 3 months\",\n            \"product_quantity\": 1,\n            \"product_price\": 0\n        }\n    ]\n}"},{"id":"27922a1c-ae0c-4dc6-8713-c7488ecda421","name":"Get order info success","originalRequest":{"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/order/194"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"423"},{"key":"etag","value":"W/\"1a7-OPOyNEZSIRzGcTJ0QaPZ1eg+p6U\""},{"key":"date","value":"Sun, 05 Nov 2023 15:25:33 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 194,\n    \"campaign_customer_id\": 800,\n    \"user_id\": 18,\n    \"create_time\": \"2023-11-05T15:21:32.000Z\",\n    \"call_id\": 1818,\n    \"order_recording_id\": null,\n    \"value\": 100,\n    \"units\": 1,\n    \"campaign_id\": 24,\n    \"campaign_title\": \"API campaign - animal snacks\",\n    \"products\": [\n        {\n            \"product_id\": 8,\n            \"product_name\": \"Animal snacks order\",\n            \"product_quantity\": 1,\n            \"product_price\": 100,\n            \"product_custom_field_1\": \"0\",\n            \"product_custom_field_2\": \"2023-11-29\",\n            \"product_custom_field_3\": \"1\"\n        }\n    ]\n}"}],"_postman_id":"1d056e73-4909-40bd-89d3-95967b997d04"}],"id":"fba8dd4d-5a92-47f0-8436-e0a797505653","description":"<p>Orders handle data similarly to contactlists. They contain standard fields for orders but can be populated with custom fields that can be used by agent to enter data during an order.</p>\n","_postman_id":"fba8dd4d-5a92-47f0-8436-e0a797505653","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}}},{"name":"User","item":[{"name":"List users","id":"440a208d-5a38-40c9-be97-bc3466df2ee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://yourDialerHere.alphaone.se:3007/api/users","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}},"urlObject":{"protocol":"https","port":"3007","path":["api","users"],"host":["yourDialerHere.alphaone.se"],"query":[],"variable":[]}},"response":[],"_postman_id":"440a208d-5a38-40c9-be97-bc3466df2ee9"}],"id":"92784c6c-c578-4c98-9157-c1088d30026a","_postman_id":"92784c6c-c578-4c98-9157-c1088d30026a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]},"isInherited":true,"source":{"_postman_id":"23e5f5b2-2056-4182-97a2-848d331607b8","id":"23e5f5b2-2056-4182-97a2-848d331607b8","name":"Alphaone API 1.3","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<your-token>"}]}},"event":[{"listen":"prerequest","script":{"id":"f4786695-2039-4e32-bde7-862dd82c3362","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9868211f-8ab2-4f16-a31b-3982c155d085","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":"<your-token>"},{"key":"Dialer URL","value":"yourDialerHere.alphaone.se"},{"key":"id","value":"<field-id>","type":"string"}]}