Skip to content

Get Shifts

Description

取得班別。

Resource

GET /v1/basic/shifts

Authorization

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

Query Parameters

Name Type Description
store_id string 門市編號

Request

GET /v1/basic/shifts?store_id=0

Response Body Parameters

Name Type Description
shifts Shift[] 班別列表

Response Body Parameters - Shift

Name Type Description
id string 班別代號
name string 班別名稱
start_time string 開始時間
stop_time string 結束時間

Response

{
  "shifts": [
    {
      "id": "1",
      "name": "早班",
      "start_time": "08:00:00",
      "stop_time": "12:00:00"
    },
    {
      "id": "2",
      "name": "晚班",
      "start_time": "16:00:00",
      "stop_time": "20:00:00"
    }
  ]
}