{"info":{"_postman_id":"d3c3d4c1-794d-44b0-9224-abb00cda21a3","name":"SmartSMSBulk","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2696207","collectionId":"d3c3d4c1-794d-44b0-9224-abb00cda21a3","publishedId":"2sAYJ4j1oe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-25T09:32:09.000Z"},"item":[{"name":"Send SMS","item":[{"name":"Send SMS","id":"a2ed0643-cef7-447f-a65a-5c312c8171ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"phoneNo\": \"66852262236\",\n  \"userId\": 42,\n  \"partnerId\": 21,\n  \"senderId\": 25,\n  \"message\": \"สวัสดี\",\n  \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n  \"chksum\": \"00a210e3bf53de285cf33e5dcece1bc7\" //MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendSMS","description":"<h4 id=\"api-for-request-send-sms-to-smartsmsbulk\"><strong>API for request send SMS to SmartSMSBulk</strong></h4>\n<blockquote>\n<p>⚠️ สามารถส่งครั้งละ <strong>1 หมายเลขต่อ 1 Request</strong> </p>\n</blockquote>\n<p><strong>phoneNo</strong> = หมายเลขโทรศัพท์ปลายทางที่จะส่ง SMS.</p>\n<p><strong>userId</strong> = userId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk.</p>\n<p><strong>partnerId</strong> = partnerId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>senderId</strong> = senderId ที่จะใช้ส่ง ​SMS</p>\n<p><strong>message</strong> = ข้อความที่ต้องการส่ง SMS</p>\n<p><strong>callbackUrl</strong> = Callback URL ของ Partner กรณีที่ ​Partner ต้องการให้ระบบ SmartSMSBulk ส่งข้อมูล Delivery กลับไปให้ ​Partner</p>\n<p><strong>chksum</strong> = คำสำหรับตรวจสอบสิทธิ์การใช้งาน สร้างได้จาก MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))</p>\n","urlObject":{"path":["api","v2","SendSMS"],"host":["https://services.smartsmsbulk.com"],"query":[],"variable":[]}},"response":[{"id":"873c3186-bc2a-41c4-9b6d-9870fe4908a1","name":"Success - Send SMS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"phoneNo\": \"66818593778\",\n  \"userId\": \"42\",\n  \"partnerId\": \"21\",\n  \"senderId\": \"25\",\n  \"message\": \"สวัสดี\",\n  \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n  \"chksum\": \"14508a8adfafwasfad62f7768ef6\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendSMS"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 26 Dec 2024 08:39:33 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"94"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"detail\": \"SUCCESS\",\n    \"refId\": \"241226153934-99232fdc-f4ba-48f2-93ee-86513188d2b8\"\n}"},{"id":"02d390c3-26a1-416d-881a-70d7a934380e","name":"Fail - Send SMS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"phoneNo\": \"\",\n  \"userId\": \"42\",\n  \"partnerId\": \"21\",\n  \"senderId\": \"25\",\n  \"message\": \"สวัสดี\",\n  \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n  \"chksum\": \"00a210easfasdeas2fdcfece1bc7\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendSMS"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 26 Dec 2024 08:42:50 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"73"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"Invalid format parameter phoneNo\",\n    \"refId\": null\n}"}],"_postman_id":"a2ed0643-cef7-447f-a65a-5c312c8171ca"},{"name":"Send Bulk SMS","id":"6b5ecb8f-b05b-4607-9db0-f1ebb4f2de62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"phoneNo\": \"66818593778\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n        \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n        \"chksum\": \"5fasdf86d9dfas59fbf4fasdfa65sdfhtr92a\"\n    },\n    {\n        \"phoneNo\": \"66818593779\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n        \"callbackUrl\": \"https://partner.com/callback\",  // Option callbackUrl partner\n        \"chksum\": \"5faafaf86d9dfas59fbsfaf4fasdasdcag\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendBulkSMS","description":"<h4 id=\"api-for-request-send-sms-to-smartsmsbulk\"><strong>API for request send SMS to SmartSMSBulk</strong></h4>\n<blockquote>\n<p>⚠️ สามารถส่งได้สูงสุด <strong>100 หมายเลขต่อ 1 Request</strong> </p>\n</blockquote>\n<p><strong>phoneNo</strong> = หมายเลขโทรศัพท์ปลายทางที่จะส่ง SMS.</p>\n<p><strong>userId</strong> = userId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk.</p>\n<p><strong>partnerId</strong> = partnerId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>senderId</strong> = senderId ที่จะใช้ส่ง ​SMS</p>\n<p><strong>message</strong> = ข้อความที่ต้องการส่ง SMS</p>\n<p><strong>callbackUrl</strong> = Callback URL ของ Partner กรณีที่ ​Partner ต้องการให้ระบบ SmartSMSBulk ส่งข้อมูล Delivery กลับไปให้ ​Partner</p>\n<p><strong>chksum</strong> = คำสำหรับตรวจสอบสิทธิ์การใช้งาน สร้างได้จาก MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))</p>\n","urlObject":{"path":["api","v2","SendBulkSMS"],"host":["https://services.smartsmsbulk.com"],"query":[],"variable":[]}},"response":[{"id":"d1132fcb-90c2-4df7-90f4-3976bf22415c","name":"Success - Send Bulk SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"phoneNo\": \"66818593778\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n        \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n        \"chksum\": \"14508a8adfafwasfad62f7768ef6\" //MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))\n    },\n    {\n        \"phoneNo\": \"66826495417\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n        \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n        \"chksum\": \"5399d86d959fbagafsee6554ea4892a\" //MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendBulkSMS"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"detail\": \"\",\n    \"totalSubmit\": 2,\n    \"totalValid\": 2,\n    \"totalInvalid\": 0,\n    \"data\": [\n        {\n            \"status\": \"OK\",\n            \"detail\": null,\n            \"refId\": \"251112174727-1ffddf78-e41f-4da5-b58e-f28fd2fc85a1\",\n            \"smsReqBody\": {\n                \"phoneNo\": \"66818593778\",\n                \"userId\": 6,\n                \"senderId\": 40,\n                \"chksum\": \"14508a8adfafwasfad62f7768ef6\",\n                \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n                \"partnerId\": 2,\n                \"callbackUrl\": \"https://partner.com/callback\"\n            }\n        },\n        {\n            \"status\": \"OK\",\n            \"detail\": null,\n            \"refId\": \"251112174727-9694f6b0-62f9-4563-9fdd-dafc44e3f25b\",\n            \"smsReqBody\": {\n                \"phoneNo\": \"66826495417\",\n                \"userId\": 6,\n                \"senderId\": 40,\n                \"chksum\": \"5399d86d959fbagafsee6554ea4892a\",\n                \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n                \"partnerId\": 2,\n                \"callbackUrl\": \"https://partner.com/callback\",\n            }\n        }\n    ]\n}"},{"id":"c5f07eb7-edb8-412b-aaff-c2c75edf3ae8","name":"Fail - Send Bulk SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"phoneNo\": \"66818593778\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้ฝนตก\",\n        \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n        \"chksum\": \"226be1agafa45bc8909a45011b60f\" //MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))\n    },\n    {\n        \"phoneNo\": \"66826495417\",\n        \"userId\": 6,\n        \"partnerId\": 2,\n        \"senderId\": 40,\n        \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n        \"callbackUrl\": \"https://partner.com/callback\",  //Option callbackUrl partner\n        \"chksum\": \"5399d86d959fbf4afafaea4892a\" //MD5(str(userId)+str(partnerId)+str(senderId)+str(phoneNo)+str(message)+str(apiKey))\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/v2/SendBulkSMS"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"Not found data for send SMS.\",\n    \"totalSubmit\": 2,\n    \"totalValid\": 0,\n    \"totalInvalid\": 2,\n    \"data\": [\n        {\n            \"status\": \"ERR\",\n            \"detail\": \"Invalid checksum\",\n            \"refId\": \"251112175231-7e648dbd-c431-4f4c-9f60-8e35fcef5678\",\n            \"smsReqBody\": {\n                \"phoneNo\": \"66818593778\",\n                \"userId\": 6,\n                \"senderId\": 40,\n                \"chksum\": \"226be1agafa45bc8909a45011b60f\",\n                \"message\": \"สวัสดีครับ วันนี้ฝนตก\",\n                \"partnerId\": 2,\n                \"callbackUrl\": \"https://partner.com/callback\"\n            }\n        },\n        {\n            \"status\": \"ERR\",\n            \"detail\": \"Invalid checksum\",\n            \"refId\": \"251112175231-96439415-b3b3-406b-800f-864dee00398f\",\n            \"smsReqBody\": {\n                \"phoneNo\": \"66826495417\",\n                \"userId\": 6,\n                \"senderId\": 40,\n                \"chksum\": \"5399d86d959fbf4afafaea4892a\",\n                \"message\": \"สวัสดีครับ วันนี้อากาศสดใส\",\n                \"partnerId\": 2,\n                \"callbackUrl\": \"https://partner.com/callback\"\n            }\n        }\n    ]\n}"}],"_postman_id":"6b5ecb8f-b05b-4607-9db0-f1ebb4f2de62"}],"id":"fedf4d82-cac2-4425-a39c-187574052363","_postman_id":"fedf4d82-cac2-4425-a39c-187574052363","description":""},{"name":"Query Delivery report","item":[{"name":"QueryDR","id":"375c5653-14fa-4004-87ff-60e01e5c4901","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"refId\": \"20241226173310654-5ab708ec-25bb-493a-adf4-fb0cfb9ac691\",\n    \"userId\": 42,\n    \"partnerId\": 21,\n    \"chksum\": \"000f92bff5ce79bf3edae32c01ff99c5\" //MD5(str(userId)+str(partnerId)+str(refId)+str(apiKey))\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/delivery/QueryDR","description":"<h4 id=\"api-for-request-query-delivery-report-to-smartsmsbulk\"><strong>API for request query delivery report to SmartSMSBulk</strong></h4>\n<p><strong>refId</strong> = ค่า refId ที่จได้จากส่ง sms ผ่านระบบ <strong>SmartSMSBulk</strong></p>\n<p><strong>userId</strong> = userId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>partnerId</strong> = partnerId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>chksum</strong> = คำสำหรับตรวจสอบสิทธิ์การใช้งาน สร้างได้จาก MD5(str(userId)+str(partnerId)+str(refId)+str(apiKey))</p>\n","urlObject":{"path":["api","delivery","QueryDR"],"host":["https://services.smartsmsbulk.com"],"query":[],"variable":[]}},"response":[{"id":"5da62159-9d35-4a3b-ac0f-25afb64caea8","name":"Success Query Delivery","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"refId\": \"20241226173310654-5ab708ec-25bb-493a-adf4-fb0cfb9ac691\",\n    \"userId\": 42,\n    \"partnerId\": 21,\n    \"chksum\": \"000f92bff5ce79bf3edae32c01ff99c5\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/delivery/QueryDR"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:37:14 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"122"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"refId\": \"20241226173310654-5ab708ec-25bb-493a-adf4-fb0cfb9ac691\",\n    \"drStatus\": \"OK\",\n    \"drDetail\": \"Successfully sent to phone\"\n}"},{"id":"b42fdd6f-374d-4c59-9fc8-b1e7d59bdaa6","name":"Fail Invalid parameter userId","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"refId\": \"20241226173310654-5ab708ec-25bb-493a-adf4-fb0cfb9ac691\",\n    \"userId\": 0,\n    \"partnerId\": 21,\n    \"chksum\": \"000f92bff5ce79bf3edae32c01ff99c5\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/delivery/QueryDR"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:38:35 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"121"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"refId\": \"20241226173310654-5ab708ec-25bb-493a-adf4-fb0cfb9ac691\",\n    \"drStatus\": \"ERR\",\n    \"drDetail\": \"Invalid parameter userId\"\n}"}],"_postman_id":"375c5653-14fa-4004-87ff-60e01e5c4901"}],"id":"c8d97236-91f5-4a6c-b2a8-37ae3256b41e","_postman_id":"c8d97236-91f5-4a6c-b2a8-37ae3256b41e","description":""},{"name":"Send OTP SMS","item":[{"name":"Send OTP SMS","id":"c7a9eaa6-9a6d-4074-8474-ddf5b05c9750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66852262236\",\n  \"userId\": 42,\n  \"partnerId\": 21,\n  \"chksum\": \"d49a487b7985a8dc212c8499ab100027\",  //MD5(str(otpId)+str(userId)+str(partnerId)+str(phoneNo)+str(apiKey))\n  \"otpCode\": \"string\",\n  \"refCode\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptSendSms","description":"<h4 id=\"api-for-request-send-otp-code-to-smartsmsbulk\"><strong>API for request send OTP code to SmartSMSBulk</strong></h4>\n<p><strong>otpId</strong> = ค่า otp config id ที่ได้จากระบบตอนสร้าง Otp config</p>\n<p><strong>phoneNo</strong> = หมายเลขโทรศัพท์ปลายทางที่จะส่ง Otp</p>\n<p><strong>userId</strong> = userId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>partnerId</strong> = partnerId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>chksum</strong> = คำสำหรับตรวจสอบสิทธิ์การใช้งาน สร้างได้จาก MD5(str(otpId)+str(userId)+str(partnerId)+str(phoneNo)+str(apiKey))</p>\n<p><strong>otpCode</strong> (Option) = Otp Code สำหรับส่งไปยังผู้รับกรณีที่ พาร์ทนอร์ต้องการใช้ Otp Code และ refCode ของพาร์ทเนอร์เอง (จะต้องใช้ otpId ที่สร้างเป็นประเภท OTP Type=Company Code เท่านั้น)</p>\n<p><strong>refCode</strong> (Option) = refCode สำหรับส่งไปยังผู้รับกรณีที่ พาร์ทนอร์ต้องการใช้ Otp Code และ refCode ของพาร์ทเนอร์เอง (จะต้องใช้ otpId ที่สร้างเป็นประเภท OTP Type=Company Code เท่านั้น)</p>\n","urlObject":{"protocol":"https","path":["api","OptSendSms","OptSendSms"],"host":["services","smartsmsbulk","com"],"query":[],"variable":[]}},"response":[{"id":"459a1088-c05a-4087-a3ac-8458f472df71","name":"Success Send OTP Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66852262236\",\n  \"userId\": 42,\n  \"partnerId\": 21,\n  \"chksum\": \"d49a487b7985a8dc212c8499ab100027\",\n  \"otpCode\": \"string\",\n  \"refCode\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptSendSms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:45:43 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"70"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"detail\": \"SUCCESS\",\n    \"refCode\": \"G3kJHLAH\",\n    \"prefix\": \"PRT\"\n}"},{"id":"5e06167f-232f-4183-b9b0-1adb97ea1028","name":"Fail Send OTP Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66852262236\",\n  \"userId\": 42,\n  \"partnerId\": 21,\n  \"chksum\": \"d49a487b7985a8dc212c8499ab100027x\",\n  \"otpCode\": \"string\",\n  \"refCode\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptSendSms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:46:10 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"73"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"Invalid checksum\",\n    \"refCode\": null,\n    \"prefix\": null\n}"}],"_postman_id":"c7a9eaa6-9a6d-4074-8474-ddf5b05c9750"},{"name":"Verify OTP Code","id":"8a7ee004-a0f9-4203-ac27-286593ab02c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66852262236\",\n  \"refCode\": \"rmOzMMLW\",\n  \"otpCode\": \"2443\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptVerify","description":"<h4 id=\"api-for-request-verify-otp-code-to-smartsmsbulk\"><strong>API for request verify OTP code to SmartSMSBulk</strong></h4>\n<p><strong>otpId</strong> = ค่า otp config id ที่ได้จากระบบตอนสร้าง Otp config</p>\n<p><strong>phoneNo</strong> = หมายเลขโทรศัพท์ปลายทางที่จะส่ง Otp</p>\n<p><strong>otpCode</strong> = Otp Code ที่จะตรวจสอบ</p>\n<p><strong>refCode</strong> = refCode ที่จะตรวจสอบ</p>\n","urlObject":{"path":["api","OptSendSms","OptVerify"],"host":["https://services.smartsmsbulk.com"],"query":[],"variable":[]}},"response":[{"id":"7269deab-052e-404c-8e61-48dcbef1a319","name":"Success Verify OTP Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66818593778\",\n  \"refCode\": \"G3kJHLAH\",\n  \"otpCode\": \"4256\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptVerify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:49:13 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"40"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"detail\": \"OTP is verify\"\n}"},{"id":"13e6f372-0e33-40ec-8adb-2045044486a4","name":"Fail Already verify OTP Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66818593778\",\n  \"refCode\": \"G3kJHLAH\",\n  \"otpCode\": \"4256x\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptVerify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:49:59 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"49"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"OTP is already Verify\"\n}"},{"id":"1ee6228b-a8b4-43e7-a1fe-fa6dbe2ad9a2","name":"Fail OTP not valid","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"otpId\": \"20241226547ED26AAA\",\n  \"phoneNo\": \"66818593778\",\n  \"refCode\": \"rmOzMMLW\",\n  \"otpCode\": \"2443\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/OptSendSms/OptVerify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Dec 2024 10:51:21 GMT"},{"key":"Server","value":"uvicorn"},{"key":"content-length","value":"49"},{"key":"content-type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=3, max=500"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"OTP CODE IS NOT VALID\"\n}"}],"_postman_id":"8a7ee004-a0f9-4203-ac27-286593ab02c7"}],"id":"03ceb9a2-b814-4c99-af4b-c0e7de1c1b67","_postman_id":"03ceb9a2-b814-4c99-af4b-c0e7de1c1b67","description":""},{"name":"Partner Callback URL","item":[{"name":"Example Partner callback url","id":"0d50f2d0-313f-45a4-a99f-e81b981e80b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n   {\n      \"refId\":\"20241219173202568-aead90dc-5343-5s5w-n34s-bde1d22d4456\",\n      \"status\":\"OK\",\n      \"detail\":\"Successfully sent to phone\",\n      \"phoneNo\":\"66818593778\",\n      \"message\":\"test\",\n      \"sendTime\":\"2024-12-20 13:44:27.487000\"\n   },\n   {\n      \"refId\":\"20241219173202568-aead90dc-1440-4e22-b2f4-a0e1d22d4d18\",\n      \"status\":\"OK\",\n      \"detail\":\"Successfully sent to phone\",\n      \"phoneNo\":\"66812223456\",\n      \"message\":\"test\",\n      \"sendTime\":\"2024-12-20 13:44:27.588000\"\n   }\n]","options":{"raw":{"language":"json"}}},"url":"https://partner.com/callback","description":"<h4 id=\"example-parnter-callback-url-and-data-for-recieve-delivery-callback-from-smartsmsbulk\"><strong>Example parnter Callback URL and data for recieve delivery callback from SmartSMSBulk</strong></h4>\n<p>รูปแบบ API ของพาร์ทเนอร์สำหรับให้ทาง SmartSMSBulk ส่งค่า Delivery callback กลับไปยังพาร์ทเนอร์เมื่อ SMS ส่งไปยังหมายเลขปลายทางสำเร็จ</p>\n<p>เมื่อพาร์ทเนอร์ได้รับ callback ที่ระบบ SmartSMSBulk ส่งไปให้แล้ว ทางพาร์ทเนอร์ต้องตอบกลับ HTTP Response 200 เพื่อยืนยันว่าพาร์ทเนอร์ได้รับ Delivery callback ของการส่งเรียบร้อยแล้ว</p>\n<p><strong>refId</strong> = ค่า refId ที่จได้จากส่ง sms ผ่านระบบ <strong>SmartSMSBulk</strong></p>\n<p><strong>status</strong> = สถานการส่ง SMS ไปยังหมายเลขปลายทาง</p>\n<p><strong>detail</strong> = รายละเอียดสถานการส่ง SMS ไปยังหมายเลขปลายทาง</p>\n<p><strong>phoneNo</strong> = หมายเลขปลายทาง</p>\n<p><strong>message</strong> = ข้อความที่ส่ง</p>\n<p><strong>sendTime</strong> = เวลาที่ได้รับ Delivery report</p>\n","urlObject":{"protocol":"https","path":["callback"],"host":["partner","com"],"query":[],"variable":[]}},"response":[{"id":"8114bb1a-59dd-4a98-97e2-42b96c518302","name":"Success, partner receive delivery callback","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n   {\n      \"refId\":\"20241219173202568-aead90dc-5343-5s5w-n34s-bde1d22d4456\",\n      \"status\":\"OK\",\n      \"detail\":\"Successfully sent to phone\",\n      \"phoneNo\":\"66818593778\",\n      \"message\":\"test\",\n      \"sendTime\":\"2024-12-20 13:44:27.487000\"\n   },\n   {\n      \"refId\":\"20241219173202568-aead90dc-1440-4e22-b2f4-a0e1d22d4d18\",\n      \"status\":\"OK\",\n      \"detail\":\"Successfully sent to phone\",\n      \"phoneNo\":\"66812223456\",\n      \"message\":\"test\",\n      \"sendTime\":\"2024-12-20 13:44:27.588000\"\n   }\n]","options":{"raw":{"language":"json"}}},"url":"https://partner.com/callback"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0d50f2d0-313f-45a4-a99f-e81b981e80b3"}],"id":"7ffb96d7-3181-4dde-b07c-7b1fb94f03f2","description":"<p>ตัวอย่าง API ที่พาร์ทเนอร์สร้างสำหรับรับ Delivery Callback จากทางระบบ SmartSMSBulk</p>\n","_postman_id":"7ffb96d7-3181-4dde-b07c-7b1fb94f03f2"},{"name":"Credit","item":[{"name":"CheckBalance","id":"2431c216-8e70-4705-885e-97049a47fee7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": 6,\n  \"partnerId\": 2,\n  \"timestamp\": 1763321555,\n  \"chksum\": \"354cdbafadbb4basdf409730casdfadcdd6d\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/credit/CheckBalance","description":"<h4 id=\"api-for-check-credit-balance\"><strong>API for check credit balance</strong></h4>\n<p><strong>userId</strong> = userId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk.</p>\n<p><strong>partnerId</strong> = partnerId ของพาร์ทเนอร์ที่ได้จากระบบ SmartSMSBulk</p>\n<p><strong>timestamp</strong> = <strong>Unix Timestamp แบบวินาที (seconds)</strong></p>\n<p><strong>chksum</strong> = คำสำหรับตรวจสอบสิทธิ์การใช้งาน สร้างได้จาก MD5(str(userId)+str(partnerId)+str(timestamp)+str(apiKey))</p>\n","urlObject":{"protocol":"https","path":["api","credit","CheckBalance"],"host":["services","smartsmsbulk","com"],"query":[],"variable":[]}},"response":[{"id":"5c5d6b49-5c65-4b9e-9150-216bf6456a5a","name":"Success - CheckBalance","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": 6,\n    \"partnerId\": 2,\n    \"timestamp\": 1763321555,\n    \"chksum\": \"354cdbadbb4bf78d409730c755dcdd6d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/credit/CheckBalance"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"detail\": null,\n    \"creditBalance\": 555\n}"},{"id":"9ca74098-c993-4a25-9db1-63749ec88f79","name":"Fail - CheckBalance","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": 6,\n  \"partnerId\": 2,\n  \"timestamp\": 1763321555,\n  \"chksum\": \"34sgdbadbb4535409730c7553fhdd6d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://services.smartsmsbulk.com/api/credit/CheckBalance"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERR\",\n    \"detail\": \"Invalid checksum\",\n    \"creditBalance\": 0\n}"}],"_postman_id":"2431c216-8e70-4705-885e-97049a47fee7"}],"id":"00fc7119-67c6-4189-8731-9b2d9907412f","_postman_id":"00fc7119-67c6-4189-8731-9b2d9907412f","description":""}],"event":[{"listen":"prerequest","script":{"id":"c08c5599-1395-4115-87f1-6adbf3112878","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"0daff62c-4b96-447c-9ca9-55815305cc01","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"API_URL_PROD","value":"https://services.smartsmsbulk.com"},{"key":"API_URL_DEV","value":"https://services-dev.smartsmsbulk.com"},{"key":"API_URL_LOCAL","value":"http://localhost:20035","disabled":true}]}