{"info":{"_postman_id":"a642cf1a-0cb0-b9fe-c645-d2935b11fd53","name":"Iwin","description":"<html><head></head><body><p>Iwin is a bulk messaging platform that allows you to send instant and scheduled messages. It also provides an interface to manage message templates and phone books. Iwin also supports premium rate SMSes (short codes). This documentation set covers both the API's:</p>\n<ul>\n<li>\n<p><code>Bulk Messaging API</code>: Send bulk SMSes to phone books, using phone books and smart message templates for personalised messages. Messages can also be scheduled.</p>\n</li>\n<li>\n<p><code>Competition Management API</code>: Manage new competition categories (or entrants) using the API. You can also retrieve the amount of messages per category received.</p>\n</li></ul></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2920303","collectionId":"a642cf1a-0cb0-b9fe-c645-d2935b11fd53","publishedId":"719ZYyh","public":true,"customColor":{"top-bar":"FFFFFFF","right-sidebar":"5D5E7D","highlight":"6FCCF5"},"publishDate":"2017-10-23T17:34:51.000Z"},"item":[{"name":"iwin","item":[{"name":"Messages","item":[{"name":"Messages","item":[{"name":"Send Messages","id":"99650aa1-c021-492e-42c6-779dd18c9d4a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{api-token}}"}],"body":{"mode":"raw","raw":"{\n  \"mobile_numbers\": \"27823238233\",\n  \"message\": \"Soccer practice will be on the 7th at 6.\"\n}"},"url":"https://{{iwin-api-url}}/iwin/api/v1/messages","description":"<div class=\"actionDescription markdown formalTheme\">\n      <p><code>POST /iwin/api/v1/messages</code></p>\n<p>Send a message to one or more recipients.</p></div>","urlObject":{"protocol":"https","path":["iwin","api","v1","messages"],"host":["{{iwin-api-url}}"],"query":[],"variable":[]}},"response":[{"id":"389e2919-8d60-4a87-3cef-84ee46559b00","name":"Send Messages2","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"Bearer {{api-token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"mobile_numbers\": \"0823238233\",\n  \"message\": \"Soccer practice will be on the 7th at 6.\"\n}"},"url":"https://{{iwin-api-url}}/iwin/api/v1/messages"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"234","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 15:01:22 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImJTREJkT2l1TlI0YnhGZzl4NndxM3c9PSIsInZhbHVlIjoiQkNsYlhwQnVubit6QVNTbXN1WDBMZnR6VXZwbGlxVFl5blFLdUNKalR0ODRCdldVOXpGWUYxaFF4QXF3N3piemZkVHgzQ3lDelZ3QkdiclJIWEZlUEE9PSIsIm1hYyI6IjQ1YTU1ZWY2MjIzOTJlYWQzZTdmMGFlMDc4ZGI4ZDYxMDk2ZDBmMDNmYmFlZjliMTM3OGYxOTQ2ZTMwMmIyZGUifQ%3D%3D; expires=Mon, 23-Oct-2017 17:01:22 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6IjFwM2orXC9ZOUF1VnkxTjRRYnU2THpBPT0iLCJ2YWx1ZSI6Ijl3c0xNWTBYNStqbk1ZQXpQRTJQbjczNk5mUVRsSitRUFJ0SElXdG9pMGE3dEJ1djBQeG1GUDJiTlEwM1RcL3g3NDVwMEY1dGJhNDJLdGFER0pVN0oxZz09IiwibWFjIjoiMjQ3NmUzN2M2ZTA0YzY3YWQxNzE0OTEyOTYxNjYwMjkzN2ZjMGEyNGZiZjk4OGQwYTRkNzVlMTJhMThkOTRjYSJ9; expires=Mon, 23-Oct-2017 17:01:22 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"557","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 17:01:22 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6ImJTREJkT2l1TlI0YnhGZzl4NndxM3c9PSIsInZhbHVlIjoiQkNsYlhwQnVubit6QVNTbXN1WDBMZnR6VXZwbGlxVFl5blFLdUNKalR0ODRCdldVOXpGWUYxaFF4QXF3N3piemZkVHgzQ3lDelZ3QkdiclJIWEZlUEE9PSIsIm1hYyI6IjQ1YTU1ZWY2MjIzOTJlYWQzZTdmMGFlMDc4ZGI4ZDYxMDk2ZDBmMDNmYmFlZjliMTM3OGYxOTQ2ZTMwMmIyZGUifQ%3D%3D","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 17:01:22 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6IjFwM2orXC9ZOUF1VnkxTjRRYnU2THpBPT0iLCJ2YWx1ZSI6Ijl3c0xNWTBYNStqbk1ZQXpQRTJQbjczNk5mUVRsSitRUFJ0SElXdG9pMGE3dEJ1djBQeG1GUDJiTlEwM1RcL3g3NDVwMEY1dGJhNDJLdGFER0pVN0oxZz09IiwibWFjIjoiMjQ3NmUzN2M2ZTA0YzY3YWQxNzE0OTEyOTYxNjYwMjkzN2ZjMGEyNGZiZjk4OGQwYTRkNzVlMTJhMThkOTRjYSJ9","key":"laravel_session"}],"responseTime":"577","body":"{\"code\":400,\"error\":{\"message\":\"No message(s) could be sent.\",\"details\":{\"successful\":{\"total\":0,\"details\":[]},\"failures\":{\"total\":1,\"details\":[{\"mobile_number\":\"0123456789\",\"error\":\"Invalid mobile number, message was not sent.\"}]}}}}"},{"id":"c06d62fd-2d54-1855-ddcc-8253b9517df6","name":"Failure Message","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{api-token}}"}],"body":{"mode":"raw","raw":"{\n  \"mobile_numbers\": \"0123456789\",\n  \"message\": \"Soccer practice will be on the 7th at 6.\"\n}"},"url":"https://{{iwin-api-url}}/iwin/api/v1/messages"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"234","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 15:06:56 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6InJ1XC9TN1wvREhLSDNWS2tXdnY3Sjc4Zz09IiwidmFsdWUiOiJuN1pIWlRXTFRvemNFcTl2bGc1SlZVQTZEUGh4UjdsQ1VYdnBPd1V4NVRGMFZwZW54OWU5QjJUWUZKQUprSFZUaTR1MHdaS3ZYeTdQaU5acXB2Snhqdz09IiwibWFjIjoiNWVhODQxZWE3MjhlODYwODdmNjVhNTVmZGE2NjNjZmVmZDI5ZjZmYWQ5MmJjMTQ5NTE2MGRjNmQ1ZDNhNTQ1MiJ9; expires=Mon, 23-Oct-2017 17:06:56 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6IjhxNU5jOEJUcVVXS3h5ViswaDZEUlE9PSIsInZhbHVlIjoidGlnZHVNdDRSa1h0a243NmZvYkdCV25qd3lZd1Bva1JqVDF5T1p3YzdYT0dRK0V0SXlnTnRrM1FBbUcrNHVMcUtPbGFLa0pCXC8ybmxqK0tZQVNOZ0FRPT0iLCJtYWMiOiI3MThhNDJjMjJlYmY2YzcxZDBiYzAyMDM3MmE3M2M0NmE1YmU3MmY3MTc0Y2RiOWIzMjdhOGMxOTY1ZDU4NGE3In0%3D; expires=Mon, 23-Oct-2017 17:06:56 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"536","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 17:06:55 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6InJ1XC9TN1wvREhLSDNWS2tXdnY3Sjc4Zz09IiwidmFsdWUiOiJuN1pIWlRXTFRvemNFcTl2bGc1SlZVQTZEUGh4UjdsQ1VYdnBPd1V4NVRGMFZwZW54OWU5QjJUWUZKQUprSFZUaTR1MHdaS3ZYeTdQaU5acXB2Snhqdz09IiwibWFjIjoiNWVhODQxZWE3MjhlODYwODdmNjVhNTVmZGE2NjNjZmVmZDI5ZjZmYWQ5MmJjMTQ5NTE2MGRjNmQ1ZDNhNTQ1MiJ9","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 17:06:55 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6IjhxNU5jOEJUcVVXS3h5ViswaDZEUlE9PSIsInZhbHVlIjoidGlnZHVNdDRSa1h0a243NmZvYkdCV25qd3lZd1Bva1JqVDF5T1p3YzdYT0dRK0V0SXlnTnRrM1FBbUcrNHVMcUtPbGFLa0pCXC8ybmxqK0tZQVNOZ0FRPT0iLCJtYWMiOiI3MThhNDJjMjJlYmY2YzcxZDBiYzAyMDM3MmE3M2M0NmE1YmU3MmY3MTc0Y2RiOWIzMjdhOGMxOTY1ZDU4NGE3In0%3D","key":"laravel_session"}],"responseTime":"555","body":"{\"code\":400,\"error\":{\"message\":\"No message(s) could be sent.\",\"details\":{\"successful\":{\"total\":0,\"details\":[]},\"failures\":{\"total\":1,\"details\":[{\"mobile_number\":\"0123456789\",\"error\":\"Invalid mobile number, message was not sent.\"}]}}}}"},{"id":"d981837d-557c-2afd-3344-ec5a0e3b1446","name":"Send Messages","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"Bearer {{api-token}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"mobile_numbers\": \"27823238233\",\n  \"message\": \"Soccer practice will be on the 7th at 6.\"\n}"},"url":"https://{{iwin-api-url}}/iwin/api/v1/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"74","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 15:05:50 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IklJVURONWYxR3pNQ2dNemNSTDNaaHc9PSIsInZhbHVlIjoid1R1SlpyM01CZDdWWERHRVg4QndsWEllWkZOZjlJSXNTZlRrQWwyS1ZRNlNEVlBwSmZIS2hSRG5VQlh0dVwvYXVBSGp0XC9HdFwveHo3NmYzZ1dnWFZMQWc9PSIsIm1hYyI6ImFjYmVkNTFkOWIwNzAwMzE3MGUzMTEwMzU3NGYwMmVmYmNmYzFlMDgzNDU3YjdiNzI4YmI0YzBkMTg0ZWQ0MDEifQ%3D%3D; expires=Mon, 23-Oct-2017 17:05:50 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6ImlTY3FKdElmMzNjZFwvTVlFcEVIZmZRPT0iLCJ2YWx1ZSI6IkhjSnpNc21EaTlwdWVlanE3d2tKcVwvNDVXdTNxSnJQN0ZSVnNxZVRvaW5PUXBhZGpFVExWektmRzk3VU9VVFl3Q1BkekhxbExGeGRPaDRjc3FKbjB0UT09IiwibWFjIjoiN2RjOGE1ZDYzZTVhN2UyY2Q3MjliNGUzNzlmNDlhMmY5ODRmY2JkZTkwZTVkMGIzMzhmODM3MzM0ZTI3NzJjMSJ9; expires=Mon, 23-Oct-2017 17:05:50 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"593","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 17:05:49 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6IklJVURONWYxR3pNQ2dNemNSTDNaaHc9PSIsInZhbHVlIjoid1R1SlpyM01CZDdWWERHRVg4QndsWEllWkZOZjlJSXNTZlRrQWwyS1ZRNlNEVlBwSmZIS2hSRG5VQlh0dVwvYXVBSGp0XC9HdFwveHo3NmYzZ1dnWFZMQWc9PSIsIm1hYyI6ImFjYmVkNTFkOWIwNzAwMzE3MGUzMTEwMzU3NGYwMmVmYmNmYzFlMDgzNDU3YjdiNzI4YmI0YzBkMTg0ZWQ0MDEifQ%3D%3D","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 17:05:49 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6ImlTY3FKdElmMzNjZFwvTVlFcEVIZmZRPT0iLCJ2YWx1ZSI6IkhjSnpNc21EaTlwdWVlanE3d2tKcVwvNDVXdTNxSnJQN0ZSVnNxZVRvaW5PUXBhZGpFVExWektmRzk3VU9VVFl3Q1BkekhxbExGeGRPaDRjc3FKbjB0UT09IiwibWFjIjoiN2RjOGE1ZDYzZTVhN2UyY2Q3MjliNGUzNzlmNDlhMmY5ODRmY2JkZTkwZTVkMGIzMzhmODM3MzM0ZTI3NzJjMSJ9","key":"laravel_session"}],"responseTime":"803","body":"{\"data\":[],\"code\":200,\"success\":{\"message\":\"1 message(s) has been sent.\"}}"}],"_postman_id":"99650aa1-c021-492e-42c6-779dd18c9d4a"}],"id":"976c1997-972b-0e26-ec30-977686e5709b","description":"<p>Messages are a quick way of sending out an SMS to a single or multiple recipients. The number of messages\nsent out in one call is limited to 100 recipients at a time.\nIf you need to send out messages to more than a 100 recipients, rather create a once off schedule.</p>\n<p>A standard SMS's length is 160 characters, so if you go over that, your message will be broken up into parts, and you will be charged per SMS part. Also note that if your message length is above 160 characters, the message is segmented into 150 character segments to enable successful reconstruction of the multi-part message on most handsets.</p>","_postman_id":"976c1997-972b-0e26-ec30-977686e5709b"},{"name":"Sent Messages","item":[{"name":"View Sent Messages","id":"ba27718d-a55c-fe89-9abd-889bde41387a","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api-token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{iwin-api-url}}/iwin/api/v1/sentmessages?sort={{sort}}&dir={{dir}}&page={{page}}&id={{id}}&to={{to}}&date={{date}}&text={{text}}&network_reference_number={{network_reference_number}}&send_status={{send_status}}&delivery_status={{delivery_status}}","description":"<div class=\"actionDescription markdown formalTheme\">\n      <p><code>GET /iwin/api/v1/sentmessages</code></p>\n<p>View all the sent messages.</p></div>","urlObject":{"protocol":"https","path":["iwin","api","v1","sentmessages"],"host":["{{iwin-api-url}}"],"query":[{"key":"sort","value":"{{sort}}"},{"key":"dir","value":"{{dir}}"},{"key":"page","value":"{{page}}"},{"key":"id","value":"{{id}}"},{"key":"to","value":"{{to}}"},{"key":"date","value":"{{date}}"},{"key":"text","value":"{{text}}"},{"key":"network_reference_number","value":"{{network_reference_number}}"},{"key":"send_status","value":"{{send_status}}"},{"key":"delivery_status","value":"{{delivery_status}}"}],"variable":[]}},"response":[{"id":"e6be8aa7-deb1-200a-466d-3b070371ef22","name":"View Sent Messages","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{api-token}}","disabled":false}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{iwin-api-url}}/iwin/api/v1/sentmessages?sort={{sort}}&dir={{dir}}&page={{page}}&id={{id}}&to={{to}}&date={{date}}&text={{text}}&network_reference_number={{network_reference_number}}&send_status={{send_status}}&delivery_status={{delivery_status}}","protocol":"https","host":["{{iwin-api-url}}"],"path":["iwin","api","v1","sentmessages"],"query":[{"key":"sort","value":"{{sort}}"},{"key":"dir","value":"{{dir}}"},{"key":"page","value":"{{page}}"},{"key":"id","value":"{{id}}"},{"key":"to","value":"{{to}}"},{"key":"date","value":"{{date}}"},{"key":"text","value":"{{text}}"},{"key":"network_reference_number","value":"{{network_reference_number}}"},{"key":"send_status","value":"{{send_status}}"},{"key":"delivery_status","value":"{{delivery_status}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"124","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 14:59:31 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IjQzd3lKOEhCbWJoV1UzWmpFb2dYUGc9PSIsInZhbHVlIjoiemZTMTlBYWw4WHNwSzUzUWNJeUhjUkdaWjhuVzUrVXE0SmdTVER1b0o2VTByQ2pKYkNMM1wvRWZ2MWo4XC9LYVkwWWJcL2JFY25TRjNjM00wVFlzc2Nid0E9PSIsIm1hYyI6IjVkY2YyY2YwY2Y3MzcwODJmODE1Y2ZlNWNjMGJjNDM3YjhkMTM1MjllMjg5NzM1NWNhYTAwYTMxN2U2ZTA3NWYifQ%3D%3D; expires=Mon, 23-Oct-2017 16:59:32 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6ImFGejZ4ZVJJVXA2aXZQUEU3N3ZENHc9PSIsInZhbHVlIjoiaVp6RnRZY0ZldHRwVlJGRUFSaE11XC9tZ29VcHpWRGlxSkh3dlNjVEFlb1FwWjBFSnQzaHNCdGZDRXpnTUZiUGd2cFwvRHFSNlwvcmt1M3ZVbGk4RENRdGc9PSIsIm1hYyI6ImY4MTY4NDlmMDJmM2E3MjY2YWQzNTA0NmY2YTFmNzIyMTE5NzU5ZTFkNjQ2N2NhYzRiYmQ2ZjAzYzJmODZhZWEifQ%3D%3D; expires=Mon, 23-Oct-2017 16:59:32 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"613","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 16:59:31 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6IjQzd3lKOEhCbWJoV1UzWmpFb2dYUGc9PSIsInZhbHVlIjoiemZTMTlBYWw4WHNwSzUzUWNJeUhjUkdaWjhuVzUrVXE0SmdTVER1b0o2VTByQ2pKYkNMM1wvRWZ2MWo4XC9LYVkwWWJcL2JFY25TRjNjM00wVFlzc2Nid0E9PSIsIm1hYyI6IjVkY2YyY2YwY2Y3MzcwODJmODE1Y2ZlNWNjMGJjNDM3YjhkMTM1MjllMjg5NzM1NWNhYTAwYTMxN2U2ZTA3NWYifQ%3D%3D","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 16:59:31 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6ImFGejZ4ZVJJVXA2aXZQUEU3N3ZENHc9PSIsInZhbHVlIjoiaVp6RnRZY0ZldHRwVlJGRUFSaE11XC9tZ29VcHpWRGlxSkh3dlNjVEFlb1FwWjBFSnQzaHNCdGZDRXpnTUZiUGd2cFwvRHFSNlwvcmt1M3ZVbGk4RENRdGc9PSIsIm1hYyI6ImY4MTY4NDlmMDJmM2E3MjY2YWQzNTA0NmY2YTFmNzIyMTE5NzU5ZTFkNjQ2N2NhYzRiYmQ2ZjAzYzJmODZhZWEifQ%3D%3D","key":"laravel_session"}],"responseTime":"649","body":"{\"data\":[],\"code\":200,\"meta\":{\"total_count\":440,\"filtered_count\":0,\"limit\":20,\"total_pages\":0,\"page\":0,\"next\":\"\",\"prev\":\"\"}}"}],"_postman_id":"ba27718d-a55c-fe89-9abd-889bde41387a"}],"id":"5d994d74-fdc6-a639-5c26-56ae8c963004","description":"<p>View messages that have been sent. Sent messages can be used to monitor delivery status.</p>","_postman_id":"5d994d74-fdc6-a639-5c26-56ae8c963004"}],"id":"6a6f2f0c-2606-ac2d-024f-2b76b462e6a6","_postman_id":"6a6f2f0c-2606-ac2d-024f-2b76b462e6a6","description":""},{"name":"Schedules","item":[{"name":"Schedules","item":[{"name":"Get all Schedules","id":"cf1b8742-446a-8388-ba6a-c5715a5f2eaa","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/schedules","description":"<p><code>GET /iwin/api/v1/schedules</code>\nGet all schedules, both active and suspended.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules"],"host":["api","iwin","co","za"],"query":[{"disabled":true,"key":"sort","value":"{{sort}}"},{"disabled":true,"key":"dir","value":"{{dir}}"},{"disabled":true,"key":"search","value":"{{search}}"},{"disabled":true,"key":"limit","value":"{{limit}}"},{"disabled":true,"key":"page","value":"{{page}}"},{"disabled":true,"key":"id","value":"{{id}}"},{"disabled":true,"key":"status","value":"{{status}}"},{"disabled":true,"key":"name","value":"{{name}}"},{"disabled":true,"key":"start_date","value":"{{start_date}}"},{"disabled":true,"key":"end_date","value":"{{end_date}}"},{"disabled":true,"key":"next_date","value":"{{next_date}}"},{"disabled":true,"key":"type","value":"{{type}}"},{"disabled":true,"key":"opt_out_enabled","value":"{{opt_out_enabled}}"},{"disabled":true,"key":"delivery_report_enabled","value":"{{delivery_report_enabled}}"},{"disabled":true,"key":"fields","value":"{{fields}}"},{"disabled":true,"key":"schedule_id","value":"{{schedule_id}}"},{"disabled":true,"key":"interval_type","value":"{{interval_type}}"},{"disabled":true,"key":"interval","value":"{{interval}}"}],"variable":[]}},"response":[],"_postman_id":"cf1b8742-446a-8388-ba6a-c5715a5f2eaa"},{"name":"Get a Schedule","id":"55f82220-bfaa-d6a2-5208-864eba318d47","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/schedules","description":"<p><code>GET /iwin/api/v1/schedules/{id}</code>\nGet a single schedule.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"55f82220-bfaa-d6a2-5208-864eba318d47"},{"name":"Create a New Schedule","id":"27c7f510-24ee-e22d-1042-b746e3ff9814","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/schedules","description":"<p><code>POST /iwin/api/v1/schedules</code>\nCreate a new schedule.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"27c7f510-24ee-e22d-1042-b746e3ff9814"},{"name":"Delete a Schedule","id":"24cd9469-b1c4-a12f-2437-c61ea6952906","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/schedules/:id","description":"<p><code>DELETE /iwin/api/v1/schedules/{id}</code>\nOnly schedules in status \"suspended\" can be deleted. Call <code>PUT /iwin/api/v1/schedules/{id}/suspend</code> to suspend a schedule.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"24cd9469-b1c4-a12f-2437-c61ea6952906"},{"name":"Suspend a Schedule","id":"bcd63136-9999-7539-af29-44f88ace8d67","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/schedules/:id/suspend","description":"<p><code>PUT /iwin/api/v1/schedules/{id}/suspend</code>\nSuspending a schedule will temporary stop a scedule from running, until it is activated again. After suspending a schedule, the schedule status will be \"suspended\".</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules",":id","suspend"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"bcd63136-9999-7539-af29-44f88ace8d67"},{"name":"Activate a Schedule","id":"ffec8df1-3322-8e1f-ed10-fe7a88e109d4","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/schedules/:id/activate","description":"<p><code>PUT /iwin/api/v1/schedules/{id}/activate</code>\nIt is only necessary to activate a schedule if it was suspended explicitly. After activation, the schedule status will be \"active\".</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","schedules",":id","activate"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"ffec8df1-3322-8e1f-ed10-fe7a88e109d4"}],"id":"53feb19b-218a-72e5-80f2-299a327746c1","description":"<p>While messages are great for sending out some messages on an ad-hoc basis, schedules are more suited for\nsending out messages to regular groups. Schedules are also very useful for personalised messages.\nThere are two types of schedules:</p>\n<ul>\n<li>\n<p><code>once off</code> - Once off schedules will be sent only once.</p>\n</li>\n<li>\n<p><code>recurring</code> - Recurring schedules will be sent between the start and end date, on the interval specified.</p></li></ul>","_postman_id":"53feb19b-218a-72e5-80f2-299a327746c1"},{"name":"Sent Schedules","item":[{"name":"Get all Sent Schedules","id":"b911dcba-d49d-3f70-bb58-c994d52b4de5","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/sentschedules?sort={{sort}}","description":"<p><code>GET /iwin/api/v1/sentschedules</code>\nGet a list of all the schedules that have been kicked off. The total messages sent by the schedule can be seen.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","sentschedules"],"host":["api","iwin","co","za"],"query":[{"key":"sort","value":"{{sort}}"},{"disabled":true,"key":"dir","value":"{{dir}}"},{"disabled":true,"key":"search","value":"{{search}}"},{"disabled":true,"key":"fields","value":"{{fields}}"},{"disabled":true,"key":"limit","value":"{{limit}}"},{"disabled":true,"key":"page","value":"{{page}}"},{"disabled":true,"key":"id","value":"{{id}}"},{"disabled":true,"key":"status","value":"{{status}}"},{"disabled":true,"key":"schedule_id","value":"{{schedule_id}}"},{"disabled":true,"key":"name","value":"{{name}}"},{"disabled":true,"key":"date","value":"{{date}}"},{"disabled":true,"key":"message_total","value":"{{message_total}}"},{"disabled":true,"key":"unique","value":"{{unique}}"}],"variable":[]}},"response":[{"id":"9bf7ed9b-f771-0a03-d88c-463ad71056de","name":"Get all Sent Schedules Sorted","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.iwin.co.za/iwin/api/v1/sentschedules?sort={{sort}}","protocol":"https","host":["api","iwin","co","za"],"path":["iwin","api","v1","sentschedules"],"query":[{"key":"sort","value":"{{sort}}"},{"key":"dir","value":"{{dir}}","disabled":true},{"key":"search","value":"{{search}}","disabled":true},{"key":"fields","value":"{{fields}}","disabled":true},{"key":"limit","value":"{{limit}}","disabled":true},{"key":"page","value":"{{page}}","disabled":true},{"key":"id","value":"{{id}}","disabled":true},{"key":"status","value":"{{status}}","disabled":true},{"key":"schedule_id","value":"{{schedule_id}}","disabled":true},{"key":"name","value":"{{name}}","disabled":true},{"key":"date","value":"{{date}}","disabled":true},{"key":"message_total","value":"{{message_total}}","disabled":true},{"key":"unique","value":"{{unique}}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Charset","value":"UTF-8","name":"Charset","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 13:55:17 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Ik9RVzZ0QW5SQldjYXd2d1NxQTdQVlE9PSIsInZhbHVlIjoiZStxdHZnTW1DU0dPcmxLZk0rbElJeFwvakpQVUdkZnd6V0ZhWnMweHJIV3VTXC96VlVLMDA5YjMrSWJweDJqRXJ2V1ZGRkQwTjZhVFVOZ2lja3cxWWU5UT09IiwibWFjIjoiYzk4ZDQ3YWViYTQyY2FmY2JkMjJiNjU5MzIzMTcxMjIyNzMxN2Y4MTNjYTAyM2Y4ZjhmZmExOTNlNDRhY2NmMCJ9; expires=Mon, 23-Oct-2017 15:55:17 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6IldSMWp4VDRJNkJtR05iMlhPMzBcL3p3PT0iLCJ2YWx1ZSI6InBQSkU1cVcranVHUXNKK3g1TUp6UlVLZCtZbEZGS0UxSnBCb2MreGRwTDdYandpOGd5TTRVcnFCeG1wRUw2V3FUTElBTDFhbUl5cHd5RFJEdUVTN1BnPT0iLCJtYWMiOiJhNjAxN2NiMzAxYjBiOWY3MzgzYjZmNzJkNzliODA0YzQyMzNkYWMzMDJkYTdhOGQ2MWRlNzRlMGJhOTBhMzZlIn0%3D; expires=Mon, 23-Oct-2017 15:55:17 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"583","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 15:55:17 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6Ik9RVzZ0QW5SQldjYXd2d1NxQTdQVlE9PSIsInZhbHVlIjoiZStxdHZnTW1DU0dPcmxLZk0rbElJeFwvakpQVUdkZnd6V0ZhWnMweHJIV3VTXC96VlVLMDA5YjMrSWJweDJqRXJ2V1ZGRkQwTjZhVFVOZ2lja3cxWWU5UT09IiwibWFjIjoiYzk4ZDQ3YWViYTQyY2FmY2JkMjJiNjU5MzIzMTcxMjIyNzMxN2Y4MTNjYTAyM2Y4ZjhmZmExOTNlNDRhY2NmMCJ9","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 15:55:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6IldSMWp4VDRJNkJtR05iMlhPMzBcL3p3PT0iLCJ2YWx1ZSI6InBQSkU1cVcranVHUXNKK3g1TUp6UlVLZCtZbEZGS0UxSnBCb2MreGRwTDdYandpOGd5TTRVcnFCeG1wRUw2V3FUTElBTDFhbUl5cHd5RFJEdUVTN1BnPT0iLCJtYWMiOiJhNjAxN2NiMzAxYjBiOWY3MzgzYjZmNzJkNzliODA0YzQyMzNkYWMzMDJkYTdhOGQ2MWRlNzRlMGJhOTBhMzZlIn0%3D","key":"laravel_session"}],"responseTime":"614","body":"{\"data\":[{\"id\":\"3912486\",\"status\":\"completed\",\"schedule_id\":\"18530\",\"name\":\"EhabDemo\",\"date\":\"2014-11-24 14:59\",\"start_date\":\"2014\\/11\\/24 14:59\",\"end_date\":\"2014\\/11\\/24 17:35\",\"message_total\":1,\"phone_book\":{\"id\":\"57273\",\"name\":null},\"template\":{\"id\":\"12604\",\"text\":\"<TITLE> <FIRST NAME>, This is a test message sent via DHI SMS Portal.\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912486\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57273\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12604\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912486\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912486\\/replies\"}]},{\"id\":\"3912488\",\"status\":\"completed\",\"schedule_id\":\"18532\",\"name\":\"Testing Schedule\",\"date\":\"2014-11-25 06:14\",\"start_date\":\"2014\\/11\\/25 06:14\",\"end_date\":\"2014\\/11\\/25 08:51\",\"message_total\":2,\"phone_book\":{\"id\":\"57342\",\"name\":null},\"template\":{\"id\":\"12608\",\"text\":\"Hi Andre, Vernon\\r\\n\\r\\nTesting entire phone book schedule.\\r\\n\\r\\nRegards\\r\\nJacques\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912488\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57342\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12608\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912488\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912488\\/replies\"}]},{\"id\":\"3912493\",\"status\":\"completed\",\"schedule_id\":\"18535\",\"name\":\"Test\",\"date\":\"2014-11-25 10:17\",\"start_date\":\"2014\\/11\\/25 10:17\",\"end_date\":\"2014\\/11\\/25 12:54\",\"message_total\":3,\"phone_book\":{\"id\":\"57273\",\"name\":null},\"template\":{\"id\":\"12440\",\"text\":\"Dear <TITLE> <FIRST NAME>, This is a test template.\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912493\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57273\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12440\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912493\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912493\\/replies\"}]},{\"id\":\"3912506\",\"status\":\"completed\",\"schedule_id\":\"18552\",\"name\":\"JK Test Template\",\"date\":\"2014-11-26 01:12\",\"start_date\":\"2014\\/11\\/26 01:12\",\"end_date\":\"2014\\/11\\/26 02:54\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12616\",\"text\":\"Dear <TITLE> <FIRSTNAME> <SURNAME> congrats <DATE_OF_BIRTH>\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912506\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12616\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912506\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912506\\/replies\"}]},{\"id\":\"3912513\",\"status\":\"completed\",\"schedule_id\":\"18559\",\"name\":\"Test7\",\"date\":\"2014-11-26 11:44\",\"start_date\":\"2014\\/11\\/26 11:44\",\"end_date\":\"2014\\/11\\/26 14:21\",\"message_total\":3,\"phone_book\":{\"id\":\"57273\",\"name\":null},\"template\":{\"id\":\"12440\",\"text\":\"Dear <TITLE> <FIRST NAME> <SURNAME>, This is a test template.\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912513\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57273\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12440\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912513\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912513\\/replies\"}]},{\"id\":\"3912514\",\"status\":\"completed\",\"schedule_id\":\"18560\",\"name\":\"Test9\",\"date\":\"2014-11-26 12:09\",\"start_date\":\"2014\\/11\\/26 12:09\",\"end_date\":\"2014\\/11\\/26 14:46\",\"message_total\":3,\"phone_book\":{\"id\":\"57273\",\"name\":null},\"template\":{\"id\":\"12440\",\"text\":\"Dear <TITLE> <FIRSTNAME> <SURNAME>, This is a test template.\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912514\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57273\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12440\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912514\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912514\\/replies\"}]},{\"id\":\"3912516\",\"status\":\"completed\",\"schedule_id\":\"18562\",\"name\":\"test10\",\"date\":\"2014-11-26 12:44\",\"start_date\":\"2014\\/11\\/26 12:44\",\"end_date\":\"2014\\/11\\/26 15:20\",\"message_total\":3,\"phone_book\":{\"id\":\"57273\",\"name\":null},\"template\":{\"id\":\"12623\",\"text\":\"Dear <TITLE> <FIRSTNAME> <SURNAME>, this is the alpha omega test sent at 1:34 Doha time on 26 November by Andre.\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912516\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57273\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12623\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912516\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912516\\/replies\"}]},{\"id\":\"3912531\",\"status\":\"completed\",\"schedule_id\":\"18577\",\"name\":\"Be A Start 20141127 Test\",\"date\":\"2014-11-27 16:26\",\"start_date\":\"2014\\/11\\/27 16:26\",\"end_date\":\"2014\\/11\\/27 18:10\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your spot prize sms WIN <EXT_ATTR_1> 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912531\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912531\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912531\\/replies\"}]},{\"id\":\"3912532\",\"status\":\"completed\",\"schedule_id\":\"18578\",\"name\":\"Be A Start 20141127 Test 2\",\"date\":\"2014-11-27 16:29\",\"start_date\":\"2014\\/11\\/27 15:38\",\"end_date\":\"2014\\/11\\/27 18:15\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your spot prize sms WIN <FIELD1> 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912532\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912532\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912532\\/replies\"}]},{\"id\":\"3912533\",\"status\":\"completed\",\"schedule_id\":\"18579\",\"name\":\"Be A Start 20141127 Test 3\",\"date\":\"2014-11-27 16:35\",\"start_date\":\"2014\\/11\\/27 16:35\",\"end_date\":\"2014\\/11\\/27 18:17\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your <COLUMN_F> spot prizes sms WIN <COLUMN_G> 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912533\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912533\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912533\\/replies\"}]},{\"id\":\"3912534\",\"status\":\"completed\",\"schedule_id\":\"18580\",\"name\":\"Be A Start 20141127 Test 4\",\"date\":\"2014-11-27 16:44\",\"start_date\":\"2014\\/11\\/27 15:54\",\"end_date\":\"2014\\/11\\/27 18:30\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your spot prizes sms WIN <EXT_ATTR2> 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912534\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912534\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912534\\/replies\"}]},{\"id\":\"3912535\",\"status\":\"completed\",\"schedule_id\":\"18581\",\"name\":\"Be A Start 20141127 Test 5\",\"date\":\"2014-11-27 17:12\",\"start_date\":\"2014\\/11\\/27 16:21\",\"end_date\":\"2014\\/11\\/27 18:58\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your spot prize sms WIN <EXT_ATTR2> to 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912535\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912535\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912535\\/replies\"}]},{\"id\":\"3912536\",\"status\":\"completed\",\"schedule_id\":\"18582\",\"name\":\"Be A Start 20141127\",\"date\":\"2014-11-27 17:15\",\"start_date\":\"2014\\/11\\/27 17:15\",\"end_date\":\"2014\\/11\\/27 18:58\",\"message_total\":46,\"phone_book\":{\"id\":\"57372\",\"name\":null},\"template\":{\"id\":\"12633\",\"text\":\"Be a Star, Thank you for voting! For your loyal support a Spot prize has been awarded to you. To claim your spot prize sms WIN <EXT_ATTR2> to 97887\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3912536\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57372\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/12633\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3912536\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3912536\\/replies\"}]},{\"id\":\"3915186\",\"status\":\"completed\",\"schedule_id\":\"20209\",\"name\":\"Test Campaign 1\",\"date\":\"2016-10-24 16:10\",\"start_date\":\"2016\\/10\\/24 16:09\",\"end_date\":\"2016\\/10\\/24 18:46\",\"message_total\":1,\"phone_book\":{\"id\":\"58333\",\"name\":null},\"template\":{\"id\":\"14853\",\"text\":\"I am testing, <TITLE> <FIRSTNAME> <SURNAME>\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3915186\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/58333\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/14853\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3915186\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3915186\\/replies\"}]},{\"id\":\"3918429\",\"status\":\"completed\",\"schedule_id\":\"21480\",\"name\":\"Testing Post 20170627 Deployment\",\"date\":\"2017-07-27 10:24\",\"start_date\":\"2017\\/07\\/27 10:24\",\"end_date\":\"2017\\/07\\/28 10:24\",\"message_total\":1,\"phone_book\":{\"id\":\"57356\",\"name\":null},\"template\":{\"id\":\"16184\",\"text\":\"Testing post deployment  <SURNAME>\"},\"links\":[{\"rel\":\"self\",\"uri\":\"\\/sentschedules\\/3918429\"},{\"rel\":\"phonebooks\",\"uri\":\"\\/phonebooks\\/57356\"},{\"rel\":\"templates\",\"uri\":\"\\/templates\\/16184\"},{\"rel\":\"sentschedule.messages\",\"uri\":\"\\/sentschedules\\/3918429\\/messages\"},{\"rel\":\"sentschedule.replies\",\"uri\":\"\\/sentschedules\\/3918429\\/replies\"}]}],\"code\":200,\"meta\":{\"total_count\":15,\"filtered_count\":15,\"limit\":20,\"total_pages\":1,\"page\":1,\"next\":\"\",\"prev\":\"\"}}"}],"_postman_id":"b911dcba-d49d-3f70-bb58-c994d52b4de5"},{"name":"Get a Sent Schedule","id":"f4f13c7c-40ad-a4b6-3518-19877af878df","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/sentschedules/:id","description":"<p><code>GET /iwin/api/v1/sentschedules/{id}</code>\nGet a single sent schedule item. Extra information (successful, failed, delivered, pending and reply totals) can be seen from viewing a single sent schedule.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","sentschedules",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"f4f13c7c-40ad-a4b6-3518-19877af878df"}],"id":"65bc0a5c-fdd7-b11d-abf3-2c26451cc42f","description":"<p>View schedules that have been sent. Each time a schedule is executed, a new sent schedule resource entry is added, which is viewable via the sentschedules resource.</p>\n<p>For example, if a schedule is set up to run every 30 days, every 30 days an entry will be added to this resource. This enables you to view schedule that have been executed already.</p>","_postman_id":"65bc0a5c-fdd7-b11d-abf3-2c26451cc42f"},{"name":"Sent Schedule Messages","item":[{"name":"Get all Sent Schedule Replies","id":"a37f89ca-e384-d19c-96aa-3d8b50a547d2","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/sentschedules/:id/replies","description":"<p><code>GET /iwin/api/v1/sentschedules/{id}/replies</code>\nView all the replies that were sent as a response to a scheduled message.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","sentschedules",":id","replies"],"host":["api","iwin","co","za"],"query":[{"disabled":true,"key":"sort","value":"{{sort}}"},{"disabled":true,"key":"dir","value":"{{dir}}"},{"disabled":true,"key":"search","value":"{{search}}"},{"disabled":true,"key":"fields","value":"{{fields}}"},{"disabled":true,"key":"limit","value":"{{limit}}"},{"disabled":true,"key":"page","value":"{{page}}"},{"disabled":true,"key":"from","value":"{{from}}"},{"disabled":true,"key":"to","value":"{{to}}"},{"disabled":true,"key":"date","value":"{{date}}"},{"disabled":true,"key":"text","value":"{{text}}"}],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"a37f89ca-e384-d19c-96aa-3d8b50a547d2"},{"name":"Get all Sent Schedule Messages","id":"e69b72a0-9534-32d7-8edf-731d5693d02f","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/sentschedules/:id/messages","description":"<p><code>GET /iwin/api/v1/sentschedules/{id}/messages</code>\nView all the messages sent out as part of a scheduled message run.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","sentschedules",":id","messages"],"host":["api","iwin","co","za"],"query":[{"disabled":true,"key":"sort","value":"{{sort}}"},{"disabled":true,"key":"dir","value":"{{dir}}"},{"disabled":true,"key":"fields","value":"{{fields}}"},{"disabled":true,"key":"limit","value":"{{limit}}"},{"disabled":true,"key":"page","value":"{{page}}"},{"disabled":true,"key":"to","value":"{{to}}"},{"disabled":true,"key":"date","value":"{{date}}"},{"disabled":true,"key":"text","value":"{{text}}"},{"disabled":true,"key":"send_status","value":"{{send_status}}"},{"disabled":true,"key":"delivery_status","value":"{{delivery_status}}"},{"disabled":true,"key":"delivery_report_enabled","value":"{{delivery_report_enabled}}"},{"disabled":true,"key":"network_reference_number","value":"{{network_reference_number}}"},{"disabled":true,"key":"search","value":"{{search}}"}],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[{"id":"f591ce97-8915-0ccb-e14c-139020a05025","name":"Get all Sent Schedule Messages","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.iwin.co.za/iwin/api/v1/sentschedules/:id/messages","protocol":"https","host":["api","iwin","co","za"],"path":["iwin","api","v1","sentschedules",":id","messages"],"query":[{"key":"sort","value":"{{sort}}","disabled":true},{"key":"dir","value":"{{dir}}","disabled":true},{"key":"fields","value":"{{fields}}","disabled":true},{"key":"limit","value":"{{limit}}","disabled":true},{"key":"page","value":"{{page}}","disabled":true},{"key":"to","value":"{{to}}","disabled":true},{"key":"date","value":"{{date}}","disabled":true},{"key":"text","value":"{{text}}","disabled":true},{"key":"send_status","value":"{{send_status}}","disabled":true},{"key":"delivery_status","value":"{{delivery_status}}","disabled":true},{"key":"delivery_report_enabled","value":"{{delivery_report_enabled}}","disabled":true},{"key":"network_reference_number","value":"{{network_reference_number}}","disabled":true},{"key":"search","value":"{{search}}","disabled":true}],"variable":[{"key":"id","value":"{{id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Charset","value":"UTF-8","name":"Charset","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"384","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 13:58:12 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Im9Ua3FjSEFYaUlSM3VDNGFHVjRBZXc9PSIsInZhbHVlIjoiTkVvczNNUGRDd3FQVXc1WWJVcjM2Y2dXb0xcLzUwaXkrbGdhWXREVzY0QkptWVRwaW5EK0RYWTlJQVh6ZndKdDlZQ1I3YmdRcjIyRDVaSmI5VWYwWFFRPT0iLCJtYWMiOiJlYTRhZGQzOGU2YzE5NjI4ZWU5NjU2Y2U3YmMyYzJiNjAwMTVkOWYyYjJhMjNhM2M0NDI1NjdkYjI1NWEwMzc4In0%3D; expires=Mon, 23-Oct-2017 15:58:12 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6ImJla0JJMWlSZ0w4S2xXYW1DN09NREE9PSIsInZhbHVlIjoiQzI2TVpReG1yRytqXC9sVTYyTzVSOG04Q1VZeEthSVN3OFVEZ1dIWjdVMHBscG9VWWlnSm1wOEJ3SWwzdjVtVzg0U0hyRkd4cmNlK1VSV2plYnJ2cFdnPT0iLCJtYWMiOiI5MDg4MTI4ZGFkODY1NDdiNmY5MWU3YzQ5NDQ1OGYyMDY2NGMyOGU2YzY0ZWMyNDRiN2QwMDFiYzhiNWUzZTFhIn0%3D; expires=Mon, 23-Oct-2017 15:58:12 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"1071","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 15:58:11 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6Im9Ua3FjSEFYaUlSM3VDNGFHVjRBZXc9PSIsInZhbHVlIjoiTkVvczNNUGRDd3FQVXc1WWJVcjM2Y2dXb0xcLzUwaXkrbGdhWXREVzY0QkptWVRwaW5EK0RYWTlJQVh6ZndKdDlZQ1I3YmdRcjIyRDVaSmI5VWYwWFFRPT0iLCJtYWMiOiJlYTRhZGQzOGU2YzE5NjI4ZWU5NjU2Y2U3YmMyYzJiNjAwMTVkOWYyYjJhMjNhM2M0NDI1NjdkYjI1NWEwMzc4In0%3D","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 15:58:11 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6ImJla0JJMWlSZ0w4S2xXYW1DN09NREE9PSIsInZhbHVlIjoiQzI2TVpReG1yRytqXC9sVTYyTzVSOG04Q1VZeEthSVN3OFVEZ1dIWjdVMHBscG9VWWlnSm1wOEJ3SWwzdjVtVzg0U0hyRkd4cmNlK1VSV2plYnJ2cFdnPT0iLCJtYWMiOiI5MDg4MTI4ZGFkODY1NDdiNmY5MWU3YzQ5NDQ1OGYyMDY2NGMyOGU2YzY0ZWMyNDRiN2QwMDFiYzhiNWUzZTFhIn0%3D","key":"laravel_session"}],"responseTime":"1089","body":"{\"data\":[{\"id\":\"12436803\",\"to\":\"97477665525\",\"date\":\"2014-11-24\",\"text\":\"Mr <FIRST NAME>, This is a test message sent via DHI SMS Portal.\",\"network_reference_number\":\"1817331693690835573\",\"send_status\":\"success\",\"delivery_status\":\"pending\",\"delivery_report_enabled\":true}],\"code\":200,\"meta\":{\"total_count\":1,\"filtered_count\":1,\"limit\":20,\"total_pages\":1,\"page\":1,\"next\":\"\",\"prev\":\"\"}}"}],"_postman_id":"e69b72a0-9534-32d7-8edf-731d5693d02f"}],"id":"af5e3727-ebd4-2ff0-de31-3b5851dc40a3","description":"<p>View messages sent as part of a scheduled campaign. This would be all the messages that has been sent out as a sent schedule run.</p>","_postman_id":"af5e3727-ebd4-2ff0-de31-3b5851dc40a3"}],"id":"e214e671-dd40-a392-2419-1aa5d5652065","_postman_id":"e214e671-dd40-a392-2419-1aa5d5652065","description":""},{"name":"Phone Books","item":[{"name":"Phone Books","item":[{"name":"Get all Phone Books","id":"b1ca5d81-4472-2437-f964-a35bd093a9d2","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks","description":"<p><code>GET /iwin/api/v1/phonebooks</code>\nGet a list of all the phone books.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1ca5d81-4472-2437-f964-a35bd093a9d2"},{"name":"Get a Phone Book","id":"8a1bb1f9-5900-2b67-8a7e-bf95e01c3496","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id","description":"<p><code>GET /iwin/api/v1/phonebooks/{id}</code>\nView a single phone book.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"8a1bb1f9-5900-2b67-8a7e-bf95e01c3496"},{"name":"Update a Phone Book","id":"8c58ffef-be89-899e-8763-d731e2c04458","request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id","description":"<p><code>PUT /iwin/api/v1/phonebooks/{id}</code>\nUpdate a phone book. Values not present in the request will not be updated.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"8c58ffef-be89-899e-8763-d731e2c04458"},{"name":"Create a New Phone Book","id":"5cb32a5c-1496-9e83-105b-4601f7862ea4","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks","description":"<p><code>POST /iwin/api/v1/phonebooks</code>\nAdd a new phone book. A phone book and its phone book entries are created separately. The phone book attribute fields are fields \nthat can be named to send personalized messages. For example, if attribute_1 has a value of \"ID\", a token \ncalled &lt;ID&gt; can be used in messages, and the phone book entry (recipient) detail will be replaced in the message.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cb32a5c-1496-9e83-105b-4601f7862ea4"},{"name":"Delete a Phone Book","id":"075252b8-a066-8f8a-e98e-925ce126ca44","request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/phonebooks/:id","description":"<p><code>DELETE /iwin/api/v1/phonebooks/{id}</code>\nDelete a phone book. Phone books already in use by a schedule cannot be deleted unless the schedule is also deleted.</p>\n","urlObject":{"protocol":"https","path":["phonebooks",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"075252b8-a066-8f8a-e98e-925ce126ca44"}],"id":"1ee02d87-35a4-6b83-8792-3e3bd0ccb31e","description":"<p>Phone books are groups of people that can be messaged at once.</p>","_postman_id":"1ee02d87-35a4-6b83-8792-3e3bd0ccb31e"},{"name":"Phone Book Entries","item":[{"name":"Get Phone Book Entries","id":"31ed30a7-f94b-3766-6143-7cc8ab281736","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id/entries?sort={{sort}}&dir={{dir}}&search={{search}}&fields={{fields}}&limit={{limit}}&page={{page}}","description":"<p><code>GET /iwin/api/v1/phonebooks/{id}/entries</code>\nGet all the entries in a phone book.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id","entries"],"host":["api","iwin","co","za"],"query":[{"key":"sort","value":"{{sort}}"},{"key":"dir","value":"{{dir}}"},{"key":"search","value":"{{search}}"},{"key":"fields","value":"{{fields}}"},{"key":"limit","value":"{{limit}}"},{"key":"page","value":"{{page}}"}],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"31ed30a7-f94b-3766-6143-7cc8ab281736"},{"name":"Create a New Phone Book Entry","id":"95e5138e-5a3d-1b9e-0fb2-097bf172ba49","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id/entries","description":"<p><code>POST /iwin/api/v1/phonebooks/{id}/entries</code>\nAdd a new phone book entry.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id","entries"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"95e5138e-5a3d-1b9e-0fb2-097bf172ba49"},{"name":"Get a Phone Book Entry","id":"9285a524-66c0-a149-8bc7-d8af50104724","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id/entries/:entry_id","description":"<p><code>GET /iwin/api/v1/phonebooks/{id}/entries/{entry_id}</code>\nGet a single phone book entry.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id","entries",":entry_id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{entry_id}}","key":"entry_id"},{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"9285a524-66c0-a149-8bc7-d8af50104724"},{"name":"Update Phone Book Entry","id":"5d963d58-34c0-02f1-d459-3f4b477590dc","request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id/entries/:entry_id","description":"<p><code>PUT /iwin/api/v1/phonebooks/{id}/entries/{entry_id}</code>\nUpdate a phone book entry. Only the values present in the request will be updated - the rest will be left unchanged.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id","entries",":entry_id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{entry_id}}","key":"entry_id"},{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"5d963d58-34c0-02f1-d459-3f4b477590dc"},{"name":"Delete Phone Book Entry","id":"f276f202-6c5e-666f-37f2-6e50adbafa0d","request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/phonebooks/:id/entries/:entry_id","description":"<p><code>DELETE /iwin/api/v1/phonebooks/{id}/entries/{entry_id}</code>\nDelete a phone book entry.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","phonebooks",":id","entries",":entry_id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{entry_id}}","key":"entry_id"},{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"f276f202-6c5e-666f-37f2-6e50adbafa0d"}],"id":"58b076c7-937c-3184-cd08-78bba8234224","description":"<p>A phone book has multiple phone book entries containing recipient's details. If you plan on using tokens in your\nmessages, it is advisable to store the additonal attribute details for each phone book entry.</p>","_postman_id":"58b076c7-937c-3184-cd08-78bba8234224"}],"id":"29f2fbe6-47d4-fcd0-5cce-c6151f094b12","_postman_id":"29f2fbe6-47d4-fcd0-5cce-c6151f094b12","description":""},{"name":"Templates","item":[{"name":"Templates","item":[{"name":"Get all Templates","id":"dcbb7887-4f36-0f53-6f3a-74ee01afe53d","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/templates?sort={{sort}}&dir={{dir}}&search={{search}}&fields={{fields}}&limit={{limit}}&page={{page}}&id={{id}}&name={{name}}&phone_book_id={{phone_book_id}}","description":"<p><code>GET /iwin/api/v1/templates</code>\nGet all your message templates.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","templates"],"host":["api","iwin","co","za"],"query":[{"key":"sort","value":"{{sort}}"},{"key":"dir","value":"{{dir}}"},{"key":"search","value":"{{search}}"},{"key":"fields","value":"{{fields}}"},{"key":"limit","value":"{{limit}}"},{"key":"page","value":"{{page}}"},{"key":"id","value":"{{id}}"},{"key":"name","value":"{{name}}"},{"key":"phone_book_id","value":"{{phone_book_id}}"}],"variable":[]}},"response":[],"_postman_id":"dcbb7887-4f36-0f53-6f3a-74ee01afe53d"},{"name":"Get a Template","id":"c5a056f1-5a76-dff8-e36a-d2c0aa2936ef","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/templates/:id","description":"<p><code>GET /iwin/api/v1/templates/{id}</code>\nGet a template.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","templates",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"c5a056f1-5a76-dff8-e36a-d2c0aa2936ef"},{"name":"Update a Template","id":"7c797681-e684-8125-53d3-3ec547ac5842","request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/templates/:id","description":"<p><code>PUT /iwin/api/v1/templates/{id}</code>\nUpdate a template.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","templates",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"7c797681-e684-8125-53d3-3ec547ac5842"},{"name":"Delete a Template","id":"fc489aee-7cbb-f5d9-055b-972544476300","request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/templates/:id","description":"<p><code>DELETE /iwin/api/v1/templates/{id}</code>\nDelete a template. A template can only be deleted if it does not belong to a schedule.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","templates",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"fc489aee-7cbb-f5d9-055b-972544476300"},{"name":"Create a New Template","id":"82f59350-71fd-e02d-4317-2d8a636ca93b","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/templates","description":"<p><code>POST /iwin/api/v1/templates</code>\nCreate a new template. A phone book ID can optionally be passed in, if you would like to use tokens in your messages.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","templates"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"82f59350-71fd-e02d-4317-2d8a636ca93b"}],"id":"016adec9-8c04-7356-4435-4aaff114fbb0","description":"<p>Message templates are stored messages that can be resent and reused. Tokens can be used to personalize messages. To use a token,\nwrap the token name in &lt;&gt;, all uppercase. Tokens must be defined in the associated phone book's attributes 1 to 5.</p>","_postman_id":"016adec9-8c04-7356-4435-4aaff114fbb0"}],"id":"a757255e-7383-063f-e900-6c0c961cc4bc","_postman_id":"a757255e-7383-063f-e900-6c0c961cc4bc","description":""},{"name":"Accounts","item":[{"name":"Accounts","item":[{"name":"Get Account","id":"26730afe-361f-27cc-829c-80ddeb37b7c6","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/account","description":"<p><code>GET /iwin/api/v1/account</code>\nSee your account details.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","account"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"26730afe-361f-27cc-829c-80ddeb37b7c6"},{"name":"Update Account","id":"94fe510e-67dc-a5a1-66ff-342208741344","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin/api/v1/account/:id","description":"<p><code>PUT /iwin/api/v1/account</code>\nUpdate your account details.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","account",":id"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"94fe510e-67dc-a5a1-66ff-342208741344"}],"id":"1b1db4b9-8f5e-82ee-dd44-4fd2b0a90cf0","description":"<p>The account resource provides an interface to update your Iwin account.</p>","_postman_id":"1b1db4b9-8f5e-82ee-dd44-4fd2b0a90cf0"}],"id":"8a61efb9-ff08-c5b1-a8cf-c8afc27414cc","_postman_id":"8a61efb9-ff08-c5b1-a8cf-c8afc27414cc","description":""},{"name":"Balance","item":[{"name":"Balance","item":[{"name":"Get Balance","id":"331a0929-05c2-ead1-7f44-3e7cba5e348e","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{api-token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/balance","description":"<p><code>GET /iwin/api/v1/balance</code>\nGet your Iwin balance. Your balance is the number of messages that can be sent until your account balance is depleted.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","balance"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[{"id":"54a5cb3a-c8c1-2b74-0139-253346046d2c","name":"Get Balance","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{api-token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin/api/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","name":"Cache-Control","description":""},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Charset","value":"UTF-8","name":"Charset","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"83","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 23 Oct 2017 14:34:24 GMT","name":"Date","description":""},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Apache/2.2.15 (Oracle)","name":"Server","description":""},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImhybDkxeDBkZVJyXC9PdEdEb0xPazlRPT0iLCJ2YWx1ZSI6IkRTbjZPOXJKTmdHa01mampPalhYck9Fb3NZYk9pQjRyclM2Z2FLUFdLSHMycUNOdzNzV2o4WVl2eHZtRkZVTU9CMitNVHBOV2xTTXBueHFjeWx4SExBPT0iLCJtYWMiOiIyZDdlYzE0NjlkZjMxNzIxMTM3ZGFmMmQwYjBhNDhlMGQ1ZWFhNTJkOGQ0MDcxMGFiNzcyZTJjZmI3Njg4MTY5In0%3D; expires=Mon, 23-Oct-2017 16:34:24 GMT; Max-Age=7200; path=/","name":"Set-Cookie","description":""},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6InhuY29rRVNGZUdQd2NWdU11UjVtOHc9PSIsInZhbHVlIjoiVmF1SW9OeWZLcXdCdERhVVUzcU96QitYeFhXamZOUGFJdUNpeUtOaGxJSCs2VDdmZ1k3Ulg4bE16Z3FNWTMwNWpEMnVhYkU5S1RNVlF6bHM0XC9oUzVRPT0iLCJtYWMiOiIyMmUyMTZmNWIwNTRiNmE3NzQ4Y2U4MDFiOWZkOTQ0YWJjZTliMWZlZDkwMzdkMzlhMDMzOTRiMTJhMDU1NTRkIn0%3D; expires=Mon, 23-Oct-2017 16:34:24 GMT; Max-Age=7200; path=/; httponly","name":"Set-Cookie","description":""},{"key":"Vary","value":"Authorization","name":"Vary","description":""},{"key":"Via","value":"kong/0.10.0","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"650","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.5.34","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"lpole81q3etd17s0fk6fe2fnk1","key":"PHPSESSID"},{"expires":"Mon Oct 23 2017 16:34:23 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6ImhybDkxeDBkZVJyXC9PdEdEb0xPazlRPT0iLCJ2YWx1ZSI6IkRTbjZPOXJKTmdHa01mampPalhYck9Fb3NZYk9pQjRyclM2Z2FLUFdLSHMycUNOdzNzV2o4WVl2eHZtRkZVTU9CMitNVHBOV2xTTXBueHFjeWx4SExBPT0iLCJtYWMiOiIyZDdlYzE0NjlkZjMxNzIxMTM3ZGFmMmQwYjBhNDhlMGQ1ZWFhNTJkOGQ0MDcxMGFiNzcyZTJjZmI3Njg4MTY5In0%3D","key":"XSRF-TOKEN"},{"expires":"Mon Oct 23 2017 16:34:23 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"api.iwin.co.za","path":"/","secure":false,"value":"eyJpdiI6InhuY29rRVNGZUdQd2NWdU11UjVtOHc9PSIsInZhbHVlIjoiVmF1SW9OeWZLcXdCdERhVVUzcU96QitYeFhXamZOUGFJdUNpeUtOaGxJSCs2VDdmZ1k3Ulg4bE16Z3FNWTMwNWpEMnVhYkU5S1RNVlF6bHM0XC9oUzVRPT0iLCJtYWMiOiIyMmUyMTZmNWIwNTRiNmE3NzQ4Y2U4MDFiOWZkOTQ0YWJjZTliMWZlZDkwMzdkMzlhMDMzOTRiMTJhMDU1NTRkIn0%3D","key":"laravel_session"}],"responseTime":"857","body":"{\"data\":{\"limit\":1001500,\"links\":[{\"rel\":\"account\",\"uri\":\"\\/account\"}]},\"code\":200}"}],"_postman_id":"331a0929-05c2-ead1-7f44-3e7cba5e348e"}],"id":"b5e24a61-952e-a40b-d1f7-ff37177b5c4e","description":"<p>Lookup your Iwin balance (credits).</p>","_postman_id":"b5e24a61-952e-a40b-d1f7-ff37177b5c4e"}],"id":"a7edd399-d687-807e-d6ae-e44dd58e013a","_postman_id":"a7edd399-d687-807e-d6ae-e44dd58e013a","description":""},{"name":"Reports","item":[{"name":"Reports","item":[{"name":"Get all reports","id":"a6292dd3-1332-b75d-2143-543a61d59e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.iwin.co.za/iwin/api/v1/reports/MESSAGE_REPLY_REPORTS","description":"<p><code>GET /iwin/api/v1/reports</code>\nGet all your reports.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","reports","MESSAGE_REPLY_REPORTS"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6292dd3-1332-b75d-2143-543a61d59e9e"},{"name":"Get a report","id":"fa1de9ad-673a-3e62-56c1-a7c6f3f3bf76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.iwin.co.za/iwin/api/v1/reports/PR_SMS_DATE_FILTER?filter_1=20200202","description":"<p><code>GET /iwin/api/v1/reports/{id}</code>\nGet a report's data.\nThe parameters for this request will be determined by the report's filters.\nSee the next section on how to view a report's filters.\nIf a filter was not passed in, the default value for the filter will be used.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","reports","PR_SMS_DATE_FILTER"],"host":["api","iwin","co","za"],"query":[{"key":"filter_1","value":"20200202"}],"variable":[]}},"response":[],"_postman_id":"fa1de9ad-673a-3e62-56c1-a7c6f3f3bf76"},{"name":"Get a report's filters","id":"1579b1f5-daef-4454-7d91-5869e481a70b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.iwin.co.za/iwin/api/v1/reports/PR_SMS_DATE_FILTER/filters","description":"<p><code>GET /iwin/api/v1/reports/{id}/filters</code>\nGet a report's filters.</p>\n","urlObject":{"protocol":"https","path":["iwin","api","v1","reports","PR_SMS_DATE_FILTER","filters"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"1579b1f5-daef-4454-7d91-5869e481a70b"}],"id":"8a77ca7d-da78-e0b1-75c9-c2410cdf26a3","description":"<p>Retrieve data per reports</p>\n","_postman_id":"8a77ca7d-da78-e0b1-75c9-c2410cdf26a3"}],"id":"a1599c98-39e9-4588-e5aa-718394a478f0","_postman_id":"a1599c98-39e9-4588-e5aa-718394a478f0","description":""},{"name":"Outbound","item":[{"name":"Outbound","item":[{"name":"Twilio","item":[{"name":"Receive Message Status Updates","id":"7a2a0a60-1a48-fdf5-0741-4c43e91c1727","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"","description":"<p>Receive Outbound Message Status Updates from routing gateway integrations</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7a2a0a60-1a48-fdf5-0741-4c43e91c1727"}],"id":"63aa9b60-c6d4-fcf1-1e32-17c47b3bcb12","description":"<p>Twilio Callback Hooks</p>\n","_postman_id":"63aa9b60-c6d4-fcf1-1e32-17c47b3bcb12"}],"id":"4172bccf-7f8e-92d0-3e95-67f9d7e6b8b7","description":"<p>Track OUtbound forwarded messages</p>\n","_postman_id":"4172bccf-7f8e-92d0-3e95-67f9d7e6b8b7"}],"id":"40543319-ad70-133a-e777-3916fb1fdd57","_postman_id":"40543319-ad70-133a-e777-3916fb1fdd57","description":""},{"name":"Inbound","item":[{"name":"Inbound","item":[],"id":"ef840ba2-79a3-7dd2-af34-4d8dd9416b19","description":"<p>Inbound Messages from integration partners</p>\n","_postman_id":"ef840ba2-79a3-7dd2-af34-4d8dd9416b19"}],"id":"1c98ce19-1cc5-3c47-07eb-2e7eaf2c3c70","_postman_id":"1c98ce19-1cc5-3c47-07eb-2e7eaf2c3c70","description":""}],"id":"d975e8f5-7a12-6f51-77b3-0483f63fa580","description":"<h1>Credits</h1>\n<p>Your Iwin credits are adjusted on the sending of a message. If a recipient number is faulty or does not exist, your credits will still be debited, so make sure that your recipient numbers are correct.</p>\n<h1>URL</h1>\n<p>The API is hosted on <code>https://api.iwin.co.za</code>. For all bulk SMS API calls, prefix the resource with <code>/iwin/api/v1</code>. For example, phone books is retrieved with <code>https://api.iwin.co.za/iwin/api/v1/phonebooks</code>.\nFor all SMS Competition API calls, prefix with <code>/iwin-competition/api/v1</code>.</p>\n<h1>Authentication</h1>\n<p>To get an API token, simply register at <a href=\"https://sms.iwin.co.za/?action=showRegisterPage\">https://sms.iwin.co.za/?action=showRegisterPage</a> and once you are logged in, click on the 'API' menu item. Click on the 'Generate Token' button.</p>\n<p>To use your token, add a 'Authorization' header, with your token, e.g. <code>'Authorization': 'bearer 3982945HHD3874dadayu'</code>.</p>\n<h1>HTTP Methods</h1>\n<ul>\n<li>\n<p><code>GET</code> - Get a list of resources or a single resource.</p>\n</li>\n<li>\n<p><code>POST</code> - Create a resource.</p>\n</li>\n<li>\n<p><code>PUT</code> - Update a resource. Values not present in the request will not be modified when updating.</p>\n</li>\n<li>\n<p><code>DELETE</code> - Delete a resource.</p>\n</li>\n</ul>\n<h1>Description Of Usual Server Responses</h1>\n<ul>\n<li>\n<p>200 <code>OK</code> - The request was successful (some API calls may return 201 instead).</p>\n</li>\n<li>\n<p>201 <code>Created</code> - The request was successful and a resource was created.</p>\n</li>\n<li>\n<p>400 <code>Bad Request</code> - The request could not be understood or failed as result of some rule.</p>\n</li>\n<li>\n<p>401 <code>Unauthorized</code> - Authentication failed or user doesn't have permissions for requested operation.</p>\n</li>\n<li>\n<p>403 <code>Forbidden</code> - Access denied.</p>\n</li>\n<li>\n<p>404 <code>Not Found</code> - Resource was not found.</p>\n</li>\n<li>\n<p>405 <code>Method Not Allowed</code> - Requested method is not supported for resource.</p>\n</li>\n<li>\n<p>422 <code>Unprocessable Entity</code> - There was a validation error on the request packet.</p>\n</li>\n<li>\n<p>500 <code>Server Error</code> - An unexpected event occurred. Please contact our support team if this occurs.</p>\n</li>\n</ul>\n<h1>Dates</h1>\n<p>Date fields should be in format <code>yyyy-mm-dd hh:mm</code>, e.g. 2015-04-16 16:03. A validation error with code 422 will be returned if dates do not conform to this format.</p>","_postman_id":"d975e8f5-7a12-6f51-77b3-0483f63fa580"},{"name":"iwin-competition","item":[{"name":"Competitions","item":[{"name":"Get competitions","id":"6a9deb91-cb9a-4d52-9b35-a8268ab65cec","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin-competition/api/v1/competitions","description":"<p><code>GET /iwin-competition/api/v1/competitions</code>\nGet all your competitions (registered premium rated SMSes). To learn more about our Short Codes, go to <a href=\"http://www.iwin.co.za/shortcodes/\">http://www.iwin.co.za/shortcodes/</a>.</p>\n","urlObject":{"protocol":"https","path":["iwin-competition","api","v1","competitions"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a9deb91-cb9a-4d52-9b35-a8268ab65cec"}],"id":"5e0aca8f-f867-0cc9-da93-2cdf75075325","_postman_id":"5e0aca8f-f867-0cc9-da93-2cdf75075325","description":""},{"name":"Categories","item":[{"name":"Create Competition Category","id":"d2855107-cab1-9156-c646-ee536b828f6e","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.iwin.co.za/iwin-competition/api/v1/competitions/:id/categories","description":"<p><code>POST /iwin-competition/api/v1/competitions/{id}/categories</code>\nCreate a new compeition category. Note that you can add the same category to multiple competitions at the same time by comma separating the competition IDs, e.g. \n<code>/iwin-competition/api/v1/competitions/2334,2322/categories</code>, where <code>2334</code> and <code>2322</code> are the respective competition IDs.\nThis is useful for situations where you have more than one short code, e.g. a R2 short code and R30 short code for the same competition, but would like entrants to use either.\nImportant: Categories refresh every evening at 00:00. If you add a category at 15:00, the category will only be recognised at 00:00.</p>\n","urlObject":{"protocol":"https","path":["iwin-competition","api","v1","competitions",":id","categories"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"d2855107-cab1-9156-c646-ee536b828f6e"},{"name":"Get Competition Categories","id":"ce54fb1c-c78c-d4d1-b342-30e7567fbd46","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin-competition/api/v1/competitions/:id/categories","description":"<p><code>GET /iwin-competition/api/v1/competitions/{id}/categories</code>\nGet all the categories (e.g. entrants) for a competition.</p>\n","urlObject":{"protocol":"https","path":["iwin-competition","api","v1","competitions",":id","categories"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"}]}},"response":[],"_postman_id":"ce54fb1c-c78c-d4d1-b342-30e7567fbd46"},{"name":"Delete Competition Category","id":"d8f745a2-e1ce-54e7-b966-131eb5f22d3f","request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin-competition/api/v1/competitions/:id/categories/:code","description":"<p><code>DELETE /iwin-competition/api/v1/competitions/{id}/categories/{code}</code>\nDelete a category. You can also delete the same category from different competitions in the same call by comma separating the competition IDs.\nImportant: Categories refresh every evening at 00:00. If you delete a category at 15:00, the category will only be recognised as deleted at 00:00.</p>\n","urlObject":{"protocol":"https","path":["iwin-competition","api","v1","competitions",":id","categories",":code"],"host":["api","iwin","co","za"],"query":[],"variable":[{"type":"any","value":"{{id}}","key":"id"},{"type":"any","value":"{{code}}","key":"code"}]}},"response":[],"_postman_id":"d8f745a2-e1ce-54e7-b966-131eb5f22d3f"}],"id":"45ed5747-e57d-65d8-351a-952e3c5a7c55","description":"<p>Cattegory operations</p>\n","_postman_id":"45ed5747-e57d-65d8-351a-952e3c5a7c55"},{"name":"Messages","item":[{"name":"Get Messages","id":"33a662b2-d13f-537c-795d-82f184723eee","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api-token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.iwin.co.za/iwin-competition/api/v1/messages?start_date={{start_date}}&end_date={{end_date}}&group_by={{group_by}}","description":"<p><code>GET /iwin-competition/api/v1/competitions/messages</code>\nGet all the messages received for all your short codes, with their categories. If you run a competition, the messages will contain the votes per category, per short code.\nThe short code is your premium rate SMS number. The short code and competition ID is linked together. The total field contains the amount of messages received for this competition and category.</p>\n","urlObject":{"protocol":"https","path":["iwin-competition","api","v1","messages"],"host":["api","iwin","co","za"],"query":[{"key":"start_date","value":"{{start_date}}"},{"key":"end_date","value":"{{end_date}}"},{"key":"group_by","value":"{{group_by}}"}],"variable":[]}},"response":[],"_postman_id":"33a662b2-d13f-537c-795d-82f184723eee"}],"id":"bcb7c9cb-aa4a-85ef-7707-71141d545fc2","_postman_id":"bcb7c9cb-aa4a-85ef-7707-71141d545fc2","description":""}],"id":"b962590f-b880-1d8d-afa4-8f7800c30318","description":"<p>Folder for iwin-competition</p>\n","_postman_id":"b962590f-b880-1d8d-afa4-8f7800c30318"},{"name":"https://api.iwin.co.za/iwin/api/v1/reports/PR_SMS_FAILURE_DATE_FILTER","id":"02c7cba9-e064-43b3-9ed7-c4514eab0004","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.iwin.co.za/iwin/api/v1/reports","urlObject":{"protocol":"https","path":["iwin","api","v1","reports"],"host":["api","iwin","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"02c7cba9-e064-43b3-9ed7-c4514eab0004"},{"name":"http://telflowpr.dfafrica.co.za/cxf/crm/opportunity","id":"3f9c014e-c874-4c8d-a221-f50273194f6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"opportunity\": {\n\t\t\"name\": \"JKTest 1\",\n\t\t\"reference\": \"JKTest 1\",\n\t\t\"description\": \"Tes - Aggr_Teraco_Gauteng - \",\n\t\t\"id\": \"e611fa1a-6239-eb11-a813-000d3ab55801\",\n\t\t\"region\": \"Gauteng South Region\"\n\t},\n\t\"customer\": {\n\t\t\"id\": \"23e0fe79-a9a3-e711-80e8-3863bb343b78\",\n\t\t\"account_number\": \"IND007\",\n\t\t\"email\": \"yves.i@indigotelecoms.co.za\",\n\t\t\"name\": \"Test Customer - Indigo Telecoms\",\n\t\t\"address\": \"1\",\n\t\t\"phone_number\": \"+27115555666\"\n\t},\n\t\"kam\": {\n\t\t\"id\": \"6c32b4ee-256d-e711-80e4-3863bb359c90\",\n\t\t\"phone_number\": \"+27 82 889 6838\",\n\t\t\"fullname\": \"Byron Jehoma\",\n\t\t\"email\": \"Byron.Jehoma@dfafrica.co.za\"\n\t},\n\t\"sales_admin\": {\n\t\t\"id\": \"73ff1275-2839-ea11-a813-000d3ab5d7e6\",\n\t\t\"phone_number\": \"+27 71 357 8890\",\n\t\t\"fullname\": \"Singo Rudzani\",\n\t\t\"email\": \"Singo.Rudzani@dfafrica.co.za\"\n\t},\n\t\"sdm\": {\n\t\t\"id\": \"27cfd515-14ac-e711-80eb-3863bb35bc00\",\n\t\t\"email\": \"zee.hogana@dfafrica.co.za\",\n\t\t\"fullname\": \"Zee Hogana\",\n\t\t\"phone_number\": \"+27\"\n\t},\n\t\"products\": [\n\t\t{\n\t\t\t\"code\": \"PRO000000000205\",\n\t\t\t\"name\": \"Tachyon\"\n\t\t}\n\t],\n\t\"product_configuration\": {\n\t},\n\t\"sites\": [\n\t\t{\n\t\t\t\"id\": \"a\",\n\t\t\t\"building\": {\n\t\t\t\t\"longitude\": \"28.19744\",\n\t\t\t\t\"spatial_ref\": \"4326\",\n\t\t\t\t\"number\": \"77\",\n\t\t\t\t\"address\": \"C/O Kiln Street & Brewery Street, Isando, Kempton Park\",\n\t\t\t\t\"latitude\": \"-26.13794\"\n\t\t\t},\n\t\t\t\"contact\": {\n\t\t\t},\n\t\t\t\"landlord\": {\n\t\t\t},\n\t\t\t\"area_code\": \"GS05\",\n\t\t\t\"region\": \"Gauteng South Region\",\n\t\t\t\"finance_territory\": \"3\",\n\t\t\t\"region_code\": \"GSR\",\n\t\t\t\"access_owner\": \"DFA\",\n\t\t\t\"access_management_company\": \"DFA\",\n\t\t\t\"territory\": \"Ekurhuleni\",\n\t\t\t\"area\": \"Kempton Park\",\n\t\t\t\"name\": \"Aggr_Teraco_Gauteng\",\n\t\t\t\"site_name\": \"Aggr_Teraco_Gauteng\",\n\t\t\t\"territory_code\": \"XXA11\"\n\t\t},\n\t\t{\n\t\t\t\"id\": \"b\",\n\t\t\t\"building\": {\n\t\t\t},\n\t\t\t\"contact\": {\n\t\t\t\t\"id\": \"c92cc17a-a123-eb11-a813-000d3ab55801\",\n\t\t\t\t\"email\": \"jacques.karsten@globetom.com\",\n\t\t\t\t\"fullname\": \"Jacques Karsten\",\n\t\t\t\t\"phone_number\": \"0723798488\"\n\t\t\t},\n\t\t\t\"landlord\": {\n\t\t\t},\n\t\t\t\"access_management_company\": \"DFA\",\n\t\t\t\"access_owner\": \"DFA\"\n\t\t}\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"http://telflowpr.dfafrica.co.za/cxf/crm/opportunity","urlObject":{"protocol":"http","path":["cxf","crm","opportunity"],"host":["telflowpr","dfafrica","co","za"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f9c014e-c874-4c8d-a221-f50273194f6f"}]}