Skip to content

Get Employees

Description

取得員工列表。

Resource

GET /v1/user/employees

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Query Parameters

Name Type Description
store_id string 門市代碼
(optional)

Request

GET /v1/user/employees?store_id=0

Response Body Parameters

Name Type Description
employees Employee[] 員工列表

Response Body Parameters - Employee

Name Type Description
id string 員工編號
name string 員工姓名
password string 密碼
work_title string 職稱
arrive_date string 到職日期
leave_date string 離職日期
type string 員工類型
ALLOWED VALUES:
  • HEAD_OFFICE_USER
  • BRANCH_USER
store_id string 門市代碼
store_name string 門市名稱

Response

{
  "employees": [
    {
      "id": "test123",
      "name": "李小鐵",
      "password": "EWIOIEGX",
      "work_title": "加油人員",
      "arrive_date": "2021-08-01",
      "leave_date": null,
      "type": "BRANCH_USER",
      "store_id": "0",
      "store_name": "測試門市"
    }
  ]
}