{"info":{"_postman_id":"69e2bc9b-6e6c-4e1b-817a-cc39bef9d315","name":"API Connect","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>The API Connect allow you to use telecom services that provided by CMC Telecom.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>API connect using basic authen to authen each API Request with <code>App ID</code> and <code>App Secret</code> provided by CMC Telecom. If Authe token is invalid, server will response with <code>401</code> status.\nExample:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"code\": 401, \n    \"message\": \"Authorization Required\",\n    \"errors\":\"\"\n}\n</code></pre><h1 id=\"base-url\">Base URL</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Production URL: https://api-connect.io\nDevelopment URL: https://dev.api-connect.io\n</code></pre><p>The API connect is served over <code>HTTPS</code>. To ensure data privacy, unencrypted HTTP is not supported.</p>\n<h1 id=\"subresources\">Subresources</h1>\n<p>The API connect have the following subresources. Click link for detail information each of resource</p>\n<h4 id=\"voice-otp\">Voice-OTP</h4>\n<p><a href=\"https://doc.api-connect.io/?version=latest#ca692c59-2e7b-45c5-b0e4-c4200d085cb2\">Sending Voice-OTP call</a><br><a href=\"https://doc.api-connect.io/?version=latest#e7dab69a-0e20-4dd3-b7fd-ea7b7201cdb0\">Retrieve voice list</a><br><a href=\"https://doc.api-connect.io/?version=latest#4596850e-4442-4baa-92a5-0b12a43b92b9\">Set default voice</a></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":"Base URL","slug":"base-url"},{"content":"Subresources","slug":"subresources"}],"owner":"10838871","collectionId":"69e2bc9b-6e6c-4e1b-817a-cc39bef9d315","publishedId":"SzzefzGn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"03DBFC"},"publishDate":"2020-06-28T10:41:55.000Z"},"item":[{"name":"Voice OTP","item":[{"name":"Retrieve voice list","id":"e7dab69a-0e20-4dd3-b7fd-ea7b7201cdb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"","description":"<p>Basic &lt;Base64 encoded \"app-id\" and \"app-secret\"&gt;</p>\n","type":"text"}],"url":"BASE_URL/voice-otp/voice","description":"<h6 id=\"get-voice-list-for-user-to-choose\">Get voice list for user to choose</h6>\n<p>You can retrieve your available voices.\nDetailed information of fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>It is <strong>voiceId</strong> when making a voice otp call</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of voice</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Detailed information of voice</td>\n</tr>\n<tr>\n<td>isDefault</td>\n<td>boolean</td>\n<td>if <strong>true</strong>, system will use id of voice to make voice otp call</td>\n</tr>\n<tr>\n<td>isActive</td>\n<td>boolean</td>\n<td>Status of voice. If <strong>false</strong>, system will not use to make voice otp call</td>\n</tr>\n<tr>\n<td>orgId</td>\n<td>string</td>\n<td>id of your organization in CMC Telecom system</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["voice-otp","voice"],"host":["BASE_URL"],"query":[],"variable":[]}},"response":[{"id":"ee64c01c-cdfa-44a3-9177-abe941a2a474","name":"Retrieve voice list","originalRequest":{"method":"GET","header":[{"description":"API connect is protected by a token. Server will response `401` status code if token is invalid","key":"Authorization","type":"text","value":"Basic <Base64 encoded \"app-id\" and \"app-secret\">"}],"url":"https://api-connect.io/voice-otp/voice"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"giong-nu\",\n        \"name\": \"Giong nu\",\n        \"description\": \"system\",\n        \"voiceType\": \"system\",\n        \"isDefault\": false,\n        \"isActive\": true,\n        \"orgId\": \"5cfc8bee087e5f035b2cbabf\",\n        \"createdBy\": {\n            \"userId\": \"5eb4c4967a647222d551b7ce\",\n            \"orgId\": \"5cfc8bee087e5f035b2cbabf\"\n        },\n        \"createdAt\": \"2020-06-24T10:48:26.474Z\",\n        \"updatedAt\": \"2020-06-28T02:35:26.708Z\",\n    },\n    {\n        \"id\": \"giong-theo-yeu cau\",\n        \"name\": \"giọng theo yêu cầu\",\n        \"description\": \"giọng theo yêu cầu\",\n        \"voiceType\": \"user\",\n        \"isDefault\": true,\n        \"isActive\": true,\n        \"orgId\": \"5cfc8bee087e5f035b2abcd\",\n        \"createdBy\": {\n            \"userId\": \"5eb4c4967a647222d551b7ce\",\n            \"orgId\": \"5cfc8bee087e5f035b2cbabf\"\n        },\n        \"createdAt\": \"2020-06-28T02:35:26.759Z\",\n        \"updatedAt\": \"2020-06-28T02:35:26.759Z\",\n    }\n]"}],"_postman_id":"e7dab69a-0e20-4dd3-b7fd-ea7b7201cdb0"},{"name":"Set default voice","id":"4596850e-4442-4baa-92a5-0b12a43b92b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-type","value":"application/json","type":"text"},{"key":"Authorization","value":"","description":"<p>Basic &lt;Base64 encoded \"app-id\" and \"app-secret\"&gt;</p>\n","type":"text"}],"url":"BASE_URL/voice-otp/voice/set-default/{voiceId}","description":"<h6 id=\"you-can-set-default-voice-when-sending-a-otp-call-if-voice-is-set-you-will-not-need-send-a-voiceid-in-data-of-voice-otp-api-in-here\">You can set default voice when sending a otp call. If voice is set, you will <strong>NOT</strong> need send a <code>voiceId</code> in data of voice-otp API in <a href=\"https://doc.api-connect.io/?version=latest#69ba50db-4cae-44aa-a466-873033c97e24\">here</a></h6>\n","urlObject":{"path":["voice-otp","voice","set-default","{voiceId}"],"host":["BASE_URL"],"query":[],"variable":[]}},"response":[{"id":"3caa3f46-db29-4fde-ad4d-5d0cc062c4b3","name":"Set default voice","originalRequest":{"method":"POST","header":[{"key":"Content-type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","description":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","type":"text"}],"url":"https://api-connect.io/voice-otp/voice/set-default/{voiceId}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4596850e-4442-4baa-92a5-0b12a43b92b9"},{"name":"Send voice-otp call","id":"ca692c59-2e7b-45c5-b0e4-c4200d085cb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"","description":"<p>Basic &lt;Base64 encoded \"app-id\" and \"app-secret\"&gt;</p>\n"}],"body":{"mode":"raw","raw":"{\n\t\"from\":\"02471060033\",\n\t\"to\":\"09775705345\",\n\t\"otp\":{\n\t\t\"encrypted\":\"AB6B2B941C662F46DA0392610D7F91C3\",\n\t\t\"algorithm\": \"aes-256-cbc\",\n\t\t\"iv\":\"0000000000000000\"\n\t},\n\t\"voiceId\": \"giong-nu\",\n\t\"repeat\":true\n}"},"url":"BASE_URL/voice-otp/voice-otp","description":"<h6 id=\"to-send-voice-otp-call-for-customers-partners-system-have-to-connect-with-voice-otp-of-cmc-telecom\">To send Voice OTP call for customers, partner's system have to connect with Voice-OTP of CMC Telecom</h6>\n<p>The available attributes and the conditions in which they are required are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>from</td>\n<td>string</td>\n<td>Phone number make a OTP notification call</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>to</td>\n<td>string</td>\n<td>Phone number receive a OTP notification call</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>otp</td>\n<td>object</td>\n<td>OTP code will be sent to user. User's OTP code is encrypted by AES 256 CBC along with IV. Encrypted Key is agreed between CMC and partner's system</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>otp.encrypted</td>\n<td>string</td>\n<td>otp code is encrypted.</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>otp.algorithm</td>\n<td>string</td>\n<td>using aes-256-cbc.</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>otp.iv</td>\n<td>string</td>\n<td>IV used to encrypted</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>voiceId</td>\n<td>string</td>\n<td>voice. Ex: 'giong-nu'. If voiceId don't set, system will get default voiceId of user or system</td>\n<td>no</td>\n</tr>\n<tr>\n<td>repeat</td>\n<td>boolean</td>\n<td>If <strong>true</strong>, otp code will repeat 2 times, <strong>false</strong> is once</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["voice-otp","voice-otp"],"host":["BASE_URL"],"query":[],"variable":[]}},"response":[{"id":"92721e47-49e5-46ab-8840-ccc700856385","name":"200 - Thành công","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Basic <Base64 encoded \"app-id\" and \"app-secret\">"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"from\":\"02471060033\",\n\t\"to\":\"0977570592\",\n\t\"otp\":{\n\t\t\"encrypted\":\"283CF28529F6C318218E5591CC7036D8\",\n\t\t\"algorithm\": \"aes-256-cbc\",\n\t\t\"iv\": \"0000000000000000\"\n\t},\n    \"sendSMS\":true\n}"},"url":"https://api-connect.io/voice-otp/voice-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=0; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"ETag","value":"W/\"eb-HVrh4APU0AzwT84koZaGz35/Lvg\""},{"key":"Date","value":"Mon, 12 Nov 2018 10:12:08 GMT"},{"key":"X-Kong-Upstream-Latency","value":"30"},{"key":"X-Kong-Proxy-Latency","value":"1"},{"key":"Via","value":"kong/0.14.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5d2d2b930a90818f93402ef0\",\n    \"from\": \"02471060008\",\n    \"to\": \"0912205468\",\n    \"otp\": {\n        \"encrypted\": \"c2ce21e5f023c9f6d7b807a709091468\",\n\t\t\"algorithm\": \"aes-256-cbc\"\n    },\n    \"blocks\": 1,\n    \"status\": \"answered\",\n    \"createdAt\": \"2019-07-16T01:42:43.827Z\"\n}"}],"_postman_id":"ca692c59-2e7b-45c5-b0e4-c4200d085cb2"},{"name":"Webhook for Voice-OTP event","id":"e4eed646-5033-4dc7-a0c7-62e10b8841e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"5be4c210fcbcecd0c2f24516\",\n    \"status\": \"answered\",\n    \"duration\":9,\n    \"block\": 1\n}"},"url":"URL API of Customer","description":"<p>Customer need to build a API to receive events when Voice-OTP's status change. CMC Telecom's Voice-OTP system will perform <code>POST</code> request to API's customer</p>\n<p>Passing parameters in the body in JSON format:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>ID of Voice OTP</td>\n<td></td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Voice OTP status includes:<br /> - <strong>failed</strong>: System failed to make call.<br /> - <strong>answered</strong>: User receive the call, answer and listen to the content.<br /> - <strong>busy</strong>: User reject the call, or user is in other call.<br /> - <strong>no-answered</strong>: User don't receive the call, phone off or out of coverage area</td>\n<td></td>\n</tr>\n<tr>\n<td>duration</td>\n<td>number</td>\n<td>Time for making the call. Unit: second (s)</td>\n<td></td>\n</tr>\n<tr>\n<td>block</td>\n<td>number</td>\n<td>Block number according to the rules of the contract calculation method</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"host":["URL API of Customer"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4eed646-5033-4dc7-a0c7-62e10b8841e1"},{"name":"Retrieve CDR(call detail records)","id":"89494d53-9191-4269-91b9-118853e954e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"","description":"<p>Basic &lt;Base64 encoded \"app-id\" and \"app-secret\"&gt;</p>\n","type":"text"}],"url":"BASE_URL/voice-otp/voice-otp?filter={\"where\":{\"and\":[{\"status\":\"pending\"},{\"from\":1593767524},{\"to\": 1594026724}]},\"skip\":0,\"limit\":40}","urlObject":{"path":["voice-otp","voice-otp"],"host":["BASE_URL"],"query":[{"description":{"content":"<ul>\n<li><strong>from</strong> field is start time of query clause, <strong>to</strong> field is end time of query clause -  using <strong>GMT timestamp</strong> format.Ex: 1594030703 is equivalent Mon, 06 Jul 2020 10:18:23 GMT</li>\n<li><strong>status</strong> is status of the call in query clause</li>\n<li><strong>skip</strong> The number of items to skip.</li>\n<li><strong>limit</strong> The number of items that will be selected.</li>\n</ul>\n","type":"text/plain"},"key":"filter","value":"{\"where\":{\"and\":[{\"status\":\"pending\"},{\"from\":1593767524},{\"to\": 1594026724}]},\"skip\":0,\"limit\":40}"}],"variable":[]}},"response":[{"id":"a93734ad-ba39-482d-900c-49902b0804af","name":"Retrieve CDR(call detail records)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","description":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","type":"text"}],"url":{"raw":"https://api-connect.io/voice-otp/voice-otp?filter={\"where\":{\"and\":[{\"status\":\"pending\"},{\"from\":1593767524},{\"to\": 1594026724}]},\"skip\":0,\"limit\":40}","protocol":"https","host":["api-connect","io"],"path":["voice-otp","voice-otp"],"query":[{"key":"filter","value":"{\"where\":{\"and\":[{\"status\":\"pending\"},{\"from\":1593767524},{\"to\": 1594026724}]},\"skip\":0,\"limit\":40}","description":"- **from** field is start time of query clause, **to** field is end time of query clause -  using **GMT timestamp** format.Ex: 1594030703 is equivalent Mon, 06 Jul 2020 10:18:23 GMT\n- **status** is status of the call in query clause\n- **skip** The number of items to skip.\n- **limit** The number of items that will be selected."}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"89494d53-9191-4269-91b9-118853e954e2"}],"id":"90a85aa1-73c1-4a69-b255-4af94e7998a4","description":"<h4 id=\"allowing-you-to-send-a-voice-otp-call-retrieve-voice-list-set-default-voice-for-voice-otp-call\">Allowing you to send a voice-otp call, retrieve voice list, set default voice for voice-otp call</h4>\n","_postman_id":"90a85aa1-73c1-4a69-b255-4af94e7998a4"},{"name":"Messaging","item":[{"name":"SMS","item":[{"name":"Send Single SMS","id":"b585f3ec-28c6-4b51-b256-c3a0a57c3f71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"from\":\"CMC Telecom\",\n\t\"to\":\"0977XXXXX\",\n\t\"body\":\"SMS from CMC Telecom\"\n}"},"url":"{{BASE_URL}}/messaging/sms","description":"<h6 id=\"to-send-a-single-sms-to-customer-partners-system-have-to-connect-with-sms-api-of-cmc-telecom\">To send a Single SMS to customer, partner's system have to connect with SMS API of CMC Telecom</h6>\n<p>API using <code>POST</code> method with payload is JSON Body. The available parameters and the conditions in JSON Body are below:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>from</td>\n<td>string</td>\n<td>Registered sender using to send SMS. Each sending direction will use different value</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>to</td>\n<td>string</td>\n<td>Mobile phone number receive a SMS</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>body</td>\n<td>string/object</td>\n<td>Content of SMS to send. Using object type to define value when sending to ZALO</td>\n<td><strong>yes</strong></td>\n</tr>\n<tr>\n<td>templateId</td>\n<td>string</td>\n<td>TemplateId is registered successful with Zalo</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["messaging","sms"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"6fd27d74-f5f0-43a3-84c4-31556d8e04be","name":"Send Zalo SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"","description":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"from\": \"CMC Zalo\",\n    \"to\": \"0977XXXXX\",\n    \"body\": {\n        \"end_date\": \"01/08/2020\",\n        \"month\": \"month\",\n        \"customer_name\": \"customer_name\",\n        \"customer_code\": \"customer_code\",\n        \"start_date\": \"01/08/2020\",\n        \"billing\": \"billing\"\n    },\n    \"templateId\":\"287658\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/messaging/sms"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"6037223745fe090007a6bdba\",\n    \"msgId\": \"\",\n    \"from\": \"CMC Zalo\",\n    \"to\": \"84977570592\",\n    \"body\": \"{\\\"end_date\\\":\\\"01/08/2020\\\",\\\"month\\\":\\\"month\\\",\\\"customer_name\\\":\\\"customer_name\\\",\\\"customer_code\\\":\\\"customer_code\\\",\\\"start_date\\\":\\\"01/08/2020\\\",\\\"billing\\\":\\\"billing\\\"}\",\n    \"createdAt\": \"2021-02-25T04:06:15.580Z\",\n    \"status\": \"queued\",\n    \"isUnicode\": false,\n    \"characters\": 151,\n    \"parts\": 1,\n    \"mno\": \"viettel\",\n    \"packageId\": \"\"\n}"},{"id":"9d2e195d-78d8-4e7c-9fb3-d6c77a276836","name":"Send Single SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"","description":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"from\":\"CMC Telecom\",\n\t\"to\":\"0977XXXXX\",\n\t\"body\":\"SMS from CMC Telecom\"\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/messaging/sms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"603722d645fe090007a6bdbb\",\n    \"msgId\": \"\",\n    \"from\": \"CMC Zalo\",\n    \"to\": \"84977570592\",\n    \"body\": \"Body content\",\n    \"createdAt\": \"2021-02-25T04:08:54.471Z\",\n    \"status\": \"queued\",\n    \"isUnicode\": false,\n    \"characters\": 12,\n    \"parts\": 1,\n    \"mno\": \"viettel\",\n    \"packageId\": \"\"\n}"}],"_postman_id":"b585f3ec-28c6-4b51-b256-c3a0a57c3f71"},{"name":"Receive SMS Status hook","id":"c57f6724-fbb8-4a44-ba85-2b2641e9a750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":\"612261bb7cf5dd0014a03908\",\n    \"status\":\"sent\",\n    \"detail\": \"\",\n    \"sentAt\": \"2021-08-04T08:13:12.973Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{CUSTOMER_URL}}","urlObject":{"host":["{{CUSTOMER_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c57f6724-fbb8-4a44-ba85-2b2641e9a750"},{"name":"Get SMS Details","id":"13067844-00c0-4461-89b5-ee0ed18947b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{BASE_URL}}/messaging/sms/{:id}","description":"<p>status  </p>\n<p>pending: chờ gửi</p>\n<p>published: đã phân bổ để gửi</p>\n<p>queued: tin nằm trong hàng đợi chờ gửi</p>\n<p>sent: đã gửi</p>\n<p>failed: gửi thất bại</p>\n","urlObject":{"path":["messaging","sms","{:id}"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a445bd4b-9746-4963-850e-405f8c49a9b4","name":"Get SMS Status","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"","description":"Basic <Base64 encoded \"app-id\" and \"app-secret\">","disabled":true}],"body":{"mode":"raw","raw":""},"url":"https://api-connect.io/messaging/sms/5d715c6d10824a5a6e4afe1d"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=0; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"ETag","value":"W/\"10b-f9aSTdXeUuR/OMRm5TLlMCCJMCQ\""},{"key":"Date","value":"Mon, 14 Mar 2022 07:04:46 GMT"},{"key":"X-Kong-Upstream-Latency","value":"75"},{"key":"X-Kong-Proxy-Latency","value":"1"},{"key":"Via","value":"kong/1.2.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5d715c6d10824a5a6e4afe1d\",\n    \"msgId\": \"\",\n    \"from\": \"CMC Telecom\",\n    \"to\": \"0912205468\",\n    \"body\": \"CMC TEST SMS\",\n    \"createdAt\": \"2019-09-05T19:05:17.698Z\",\n    \"sentAt\": \"2019-09-05T19:05:23.852Z\",\n    \"status\": \"sent\",\n    \"isUnicode\": false,\n    \"characters\": 12,\n    \"parts\": 1,\n    \"mno\": \"gpc\",\n    \"packageId\": \"\"\n}"}],"_postman_id":"13067844-00c0-4461-89b5-ee0ed18947b0"}],"id":"9af22a11-a378-4b6b-96fa-11c2c0c0e732","_postman_id":"9af22a11-a378-4b6b-96fa-11c2c0c0e732","description":""}],"id":"d9976513-63ce-4437-a6c5-bde11de88e8f","_postman_id":"d9976513-63ce-4437-a6c5-bde11de88e8f","description":""},{"name":"MNP","item":[{"name":"Get Provider","id":"84e1578f-a922-4bef-a786-4a3ca151984a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"UslVZ9h5SZ0ZCFdDaBr1dgqWEAfwqLCun73dQaX1jyCAUmfNzDs67LIOcGy3ECh2"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://dev.api-connect.io/mnp-int/mnp/get-provider?filter={\"phoneNumber\": \"\"}","description":"<h6 id=\"get-provider-of-a-phone-number\">Get provider of a phone number</h6>\n<p>Detailed filter information of fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phoneNumber</td>\n<td>string</td>\n<td>phone number, which used to find out</td>\n</tr>\n</tbody>\n</table>\n</div><p>Result: provider code with string type</p>\n","urlObject":{"protocol":"https","path":["mnp-int","mnp","get-provider"],"host":["dev","api-connect","io"],"query":[{"key":"filter","value":"{\"phoneNumber\": \"\"}"}],"variable":[]}},"response":[{"id":"f9d634f1-688c-441c-b9e2-c0ae77c3463e","name":"200 - Thành công","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic <Base64 encoded \"app-id\" and \"app-secret\">"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https://api-connect.io/voice-otp/voice-otp/:id","protocol":"https","host":["api-connect","io"],"path":["voice-otp","voice-otp",":id"],"variable":[{"key":"id","value":"5d2d2b930a90818f93402ef0","description":"ID của bản tin Voice OTP"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=0; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"ETag","value":"W/\"eb-HVrh4APU0AzwT84koZaGz35/Lvg\""},{"key":"Date","value":"Mon, 12 Nov 2018 10:13:26 GMT"},{"key":"X-Kong-Upstream-Latency","value":"22"},{"key":"X-Kong-Proxy-Latency","value":"1"},{"key":"Via","value":"kong/0.14.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"from\": \"02471060008\",\n    \"to\": \"0912205468\",\n    \"otp\": {\n        \"encrypted\": \"c2ce21e5f023c9f6d7b807a709091468\",\n\t\t\"algorithm\": \"aes-256-cbc\"\n    },\n    \"blocks\": 1,\n    \"status\": \"answered\",\n    \"createdAt\": \"2019-07-16T01:42:43.827Z\",\n    \"id\": \"5d2d2b930a90818f93402ef0\"\n}"}],"_postman_id":"84e1578f-a922-4bef-a786-4a3ca151984a"}],"id":"31b2b839-dbba-4a28-8be4-18bf2010767d","_postman_id":"31b2b839-dbba-4a28-8be4-18bf2010767d","description":""}],"event":[{"listen":"prerequest","script":{"id":"fab1eaca-46a7-4fbc-84c5-2da51864657a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8967a342-e50d-46f4-b8b3-9c8a1ee9697f","type":"text/javascript","exec":[""]}}]}