# 1.1 SMS Send

# URL

{domain}/open-api/sms/send

# Method

POST

# Request Header

Parameter name Required Type of data Description
Content-Type Y string application/json

# Request Param

Parameter name Required Type of data Description
appId Y string Application APPID
param Y string Parameter body
sign Y string Signature

# Request Param

Parameter name Required Type of data Length Example Description
timestamp Y long - 1677495496979 current timestamp
requestId Y string - - Merchant Sms request ID
bizType Y string - - Business Type: OTPMARKETING
templateCode Y string - - Sms Template ID
mobileNum Y string - - Thai mobile phone
templateParams Y string - - Sms Content Params

How to construct request body

# Request body

{
  "appId": "xxxxx",
  "param": "{\"requestId\":\"REQ202601210001\",\"bizType\":\"OTP\",\"templateCode\":\"SMS_001\",\"mobileNum\":\"08123456789\",\"templateParams\":{\"name\":\"Li Ning\",\"code\":\"110120\"},\"timestamp\":1676017834369}",
  "sign": "xxxxx"
}

# param example

{
  "requestId": "REQ202601210001",
  "bizType": "OTP",
  "templateCode": "SMS_001",
  "mobileNum": "08123456789",
  "templateParams": {
    "name": "Li Ning",
    "code": "110120"
  },
  "timestamp": 1676017834369
}

# Response example

paramter name type description
code integer response code
message string response message
data Object data

# data参数

paramter name type description
requestId string Merchant Sms request ID
smsId string Bluepay Sms ID
bizType string Business Type: OTPMARKETING
mobileNum string Thai mobile phone
templateCode string Sms Template ID
smsContent string Sms Content
smsStatus string SMS Send status PENDING, SUCCESS, FAIL

# Response example

code collection

{
    "code": 10000,
    "message": "Success",
    "data": {
      "requestId": "REQ202601210001",
      "smsId": "SMS000000001",
      "bizType": "MARKETING",
      "mobileNum": "08123456789",
      "templateCode": "SMS_001",
      "smsContent": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "smsStatus": "PENDING"
    }
}