Hàm tạm tính giá tin nhắn quảng cáo
HTTP request
POST https://api-portal.senbac.com/MainService.svc/json/SummaryMultipleSMSBrandname/
Content Type: text/plain
Response Type: application/json
curl --location 'https://api-portal.senbac.com/MainService.svc/json/SummaryMultipleSMSBrandname/' \
--header 'Content-Type: text/plain' \
--data '<RQST>
<APIKEY>{{APIKEY}}</APIKEY>
<SECRETKEY>{{SECRETKEY}}</SECRETKEY>
<CONTENT>{{CONTENT}}</CONTENT>
<SMSTYPE>1</SMSTYPE>
<BRANDNAME>{{BRANDNAME}}</BRANDNAME>
<CONTACTS>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
<CUSTOMER><PHONE>{{PHONE}}</PHONE></CUSTOMER>
</CONTACTS>
</RQST>'Cấu trúc body của request:
Thuốc tính
Kiểu dữ liệu
Tính bắt buộc
Mô tả
APIKEY
string
Yes
ApiKey của tài khoản.
SECRETKEY
string
Yes
SecretKey của tài khoản.
CONTENT
string
Yes
Nội dung tin nhắn.
SMSTYPE
string
Yes
Loại tin nhắn, SmsType = 1: Loại tin Quảng cáo.
BRANDNAME
string
Yes
Tên thương hiệu.
PHONE
string
Yes
Số điện thoại nhận tin.
Response:
Request hợp lệ.
Sai thông tin ApiKey/SecretKey.
Brandname truyền chưa đúng hoặc chưa được active.
Cấu trúc body của response:
Thuốc tính
Kiểu dữ liệu
Mô tả
CodeResult
string
Mã trả về.
ErrorMessage
string
Nội dung thông báo.
TotalPrice
string
Tổng tiền tin.
TotalReceiver
string
Tổng số điện thoại nhận tin.
Thông tin chi tiết mã lỗi xem ở bảng: Mã lỗi .
Last updated