Tin gencode tự động multichanel: Zalo -> SMS

Khác với tin gencode tự động SMS, tin gencode ở hàm này sẽ là multichanel. Nếu tin ZNS thất bại sẽ về tin nhắn SMS brandname với cùng một mã OTP.

HTTP request

POST https://api-portal.senbac.com/MainService.svc/json/SendMessageAutoGenCode_V5

  • Content Type: application/json

  • Response Type: application/json

Copy

curl --location 'https://api-portal.senbac.com/MainService.svc/json/SendMessageAutoGenCode_V5' \
--header 'Content-Type: application/json' \
--data '{
 "ApiKey": "{{ApiKey}}",
 "Phone": "{{Phone}}",
 "TimeAlive": "{{TimeAlive}}",
 "SecretKey": "{{SecretKey}}",
 "MultiChannelTempId": "{{MultiChannelTempId}}",
 "TypeId":"{{TypeId}}"
}'
  • Cấu trúc body của request:

Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả

ApiKey

string

Yes

ApiKey của tài khoản.

Phone

string

Yes

Số điện thoại nhận tin.

TimeAlive

string

Yes

Thời gian hiệu lực của mã code. Đơn vị tính: Phút. Giới hạn từ 2 phút đến 15 phút.

SecretKey

string

Yes

Secretkey của tài khoản.

MultiChannelTempId

string

Yes

Id do SenBac cung cấp. Khi muốn sử dụng hàm này tài khoản của bạn phản có OA ZNS và brandname. Bạn cung cấp tempid của ZNS và template của tin SMS cho nhân viên kinh doanh để tạo MultiChannelTempId.

TypeId

string

Yes

1: Chỉ tạo ra mã Code. 2: Tạo ra và gửi tin nhắn về máy.


  • Response:

Sai thông tin ApiKey/SecretKey.

  • Cấu trúc body của response:

Thuốc tính
Kiểu dữ liệu
Mô tả

CodeResult

string

Mã trả về.

SMSID

string

ID tin nhắn do esms trả về.

ErrorMessage

string

Thông tin lỗi trả về (nếu có lỗi)

  • Thông tin chi tiết mã lỗi xem ở bảng: Mã lỗi .

Last updated