Lấy danh sách nhân viên
API này dùng để lấy danh sách nhân viên đã được tạo trước đó.
Body
Responses
200
A successful response
application/json
post
POST /GetAccountUsers HTTP/1.1
Host: $BASE_URL.Shop
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"filter": {
"extension_number": "text",
"has_extension": true,
"name": "text",
"phone": "text",
"user_ids": [
"text"
]
},
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"sort": "text"
}
}
200
A successful response
{
"account_users": [
{
"account_id": "text",
"deleted": true,
"department_id": "text",
"email": "text",
"full_name": "text",
"permissions": [
"text"
],
"phone": "text",
"position": "text",
"roles": [
"text"
],
"short_name": "text",
"user_id": "text"
}
],
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"next": "text",
"prev": "text",
"sort": "text"
}
}
Request:
curl --location '$BASE_URL.Shop/GetAccountUsers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
"filter": {
"extension_number": "<string>",
"has_extension": "<boolean>",
"name": "<string>",
"phone": "<string>",
"user_ids": [
"string",
]
},
"paging": {
"after": "<string>",
"before": "<string>",
"limit": "<integer>",
"sort": "<string>"
}
}'
Response:
{
"account_users": [
{
"account_id": "string",
"deleted": true,
"department_id": "string",
"email": "string",
"full_name": "string",
"permissions": [
"string"
],
"phone": "string",
"position": "string",
"roles": [
"string"
],
"short_name": "string",
"user_id": "string"
}
],
"paging": {
"after": "string",
"before": "string",
"limit": 0,
"next": "string",
"prev": "string",
"sort": "string"
}
}
Cấu trúc body của request:
Tên trường
Kiểu dữ liệu
Mô tả
extension_number
string
Số máy nhánh
has_extension
boolean
True
False
name
string
ID nhân viên gán máy nhánh
phone
string
Số điện thoại nhân viên
user_ids
array of int64
ID của nhân viên
Cấu trúc thuộc tính dữ liệu trả về:
Tham số
Kiểu dữ liệu
Mô tả
account_id
string<int64>
ID tài khoản chủ shop
deleted
boolean
True
False
string
Địa chỉ email
full_name
string
Tên nhân viên
phone
string
Số điện thoại nhân viên
user_id
string<int64>
ID của nhân viên
Last updated