Partner lấy danh sách tổng đài
API này cho phép Partner lấy danh sách tổng đài đã tạo trước đó
Body
Responses
200
A successful response
application/json
post
POST /GetPartnerTenantList HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"filter": {
"name": "text",
"owner_id": "text"
},
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"sort": "text"
}
}
200
A successful response
{
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"next": "text",
"prev": "text",
"sort": "text"
},
"tenants": [
{
"connection_id": "text",
"connection_method": "unknown",
"created_at": "2025-08-02T04:35:16.571Z",
"domain": "text",
"id": "text",
"name": "text",
"owner_id": "text",
"status": "Z",
"updated_at": "2025-08-02T04:35:16.571Z"
}
]
}
Request:
curl --location 'BASE_URL.Etelecom/GetPartnerTenantList' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"filter": {
"name": "string",
"owner_id": "string"
},
"paging": {
"after": "string",
"before": "string",
"limit": 0,
"sort": "string"
}
}'
Response:
{
"paging": {
"after": "string",
"before": "string",
"limit": 0,
"next": "string",
"prev": "string",
"sort": "string"
},
"tenants": [
{
"connection_id": "string",
"connection_method": "unknown",
"created_at": "2019-08-24T14:15:22Z",
"domain": "string",
"id": "string",
"name": "string",
"owner_id": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}
Cấu trúc thuộc tính dữ liệu trả về:
Tham số
Kiểu dữ liệu
Mô tả
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
domain
string
Domain của tổng đài
id
string<int64>
ID của tổng đài
name
string
Tên của tổng đài
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