Partner tạo hotline
API này cho phép Partner thêm mới hotline trên hệ thống
POST /PartnerAddHotline HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 113
{
"description": "text",
"hotline": "text",
"is_free_charge": true,
"name": "text",
"network": "unknown",
"owner_id": "text"
}
A successful response
{
"connection_id": "text",
"connection_method": "unknown",
"created_at": "2025-07-15T08:55:43.487Z",
"description": "text",
"hotline": "text",
"id": "text",
"is_free_charge": true,
"name": "text",
"network": "unknown",
"owner_id": "text",
"status": "Z",
"updated_at": "2025-07-15T08:55:43.487Z"
}
Request:
curl --location 'BASE_URL.Etelecom/PartnerAddHotline' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"description": "string",
"hotline": "string",
"is_free_charge": true,
"name": "string",
"network": "unknown",
"owner_id": "string"
}'
Response:
{
"connection_id": "string",
"connection_method": "unknown",
"created_at": "2019-08-24T14:15:22Z",
"description": "string",
"hotline": "string",
"id": "string",
"is_free_charge": true,
"name": "string",
"network": "unknown",
"owner_id": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Cấu trúc body của request:
description
string
Mô tả hotline
hotline require
string
Số hotline muốn tạo
is_free_charge
boolean
true
: không kiểm tra số dư khi gọi
false
: kiểm tra số dư khi gọi
name required
string
Tên hotline
network
string (tcMobileNetwork) Enum
Nhà mạng unknown
mobifone
vinaphone
viettel
other
Cấu trúc thuộc tính dữ liệu trả về:
connection_id
string<int64>
ID phiên kết nối
connection_method
string
Phương thức kết nối
created_at
string<date-time>
Thời gian khởi tạo
description
string
Mô tả hotline
hotline
string<int64>
Số hotline
id
string<int64>
ID của hotline
is_free_charge
boolean
true
: không kiểm tra số dư khi gọi
false
: kiểm tra số dư khi gọi
name
string
Tên hotline
network
string
Nhà mạng unknown
mobifone
vinaphone
viettel
other
owner_id
string<int64>
ID người quản lý
status
string
Trạng thái
Z
: Mới tạo
P
: Enable
N
: Disable
updated_at
string<date-time>
Ngày cập nhật
Last updated