Hàm lấy danh sách template tin chăm sóc khách hàng

Đối với các Brandname SMS, các doanh nghiệp sẽ cần đăng ký Template là các tin nhắn mẫu với nhà mạng trước khi được gửi. Hàm này cho phép lấy về danh sách các Template của 1 Brandname thuộc tài khoản

HTTP request

POST arrow-up-right

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

  • Content Type: application/json

  • Response Type: application/json

curl --location 'https://api-portal.senbac.com/MainService.svc/json/GetTemplate/' \
--header 'Content-Type: application/json' \
--data '{
 "ApiKey":"{{ApiKey}}",
 "SecretKey":"{{SecretKey}}",
 "SmsType":"2",
 "Brandname":"{{Brandname}}"
}'
  • 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.

SecretKey

string

Yes

Secretkey của tài khoản.

SmsType

string

Yes

Loại tin nhắn 2: Loại tin Chăm sóc khách hàng.

BrandName

string

Yes

Tên brandname.


  • Response:

Request hợp lệ.

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

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

NetworkID

string

1: Viettel

2: Mobi

3: Vinaphone

4: Vietnammobile

5: Gtel

6: Itel

7: Reddi

TempContent

string

Content đã đăng ký với nhà mạng

TempId

string

TempId của nhà mạng

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

Last updated