Skip to content

获取班次列表

适用版本>=v7.0.2604.20260423

接口说明:获取班次列表

标签打卡班次

请求说明

字段
请求地址
配置域名+/openapi+/v7/attendance/shifts
HTTP 方法
GET
接口描述
查询班次列表
签名方式
KSO-1(配置域名+/openapi不参与签名)
限频策略
权限要求
查询考勤组(应用授权) kso.attendance_group.read

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Id-Type
string类型
* internal - 内部
* external - 外部
internal, external
X-Kso-Date
stringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT-
X-Kso-Authorization
stringKSO-1 签名值,详见《签名方法》-
Authorization
string授权凭证,格式为:Bearer {access_token}-

查询参数 (Query)

属性名类型是否必填描述可选值
page_size
integer每页大小,最大为100,默认为50-
page_token
string下一页参数-
with_total
boolean是否返回总数-

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "items": [
      {
        "flexible_punch_rules": [
          {
            "in_time_come_late": 0,
            "out_time_leave_early": 0
          }
        ],
        "grace_period_punch_rules": [
          {
            "in_time_come_late": 0,
            "mode": "earliest_and_latest",
            "out_time_leave_early": 0
          }
        ],
        "punch_time_period_rules": [
          {
            "in_need_punch": true,
            "in_time": "string",
            "in_time_after": 0,
            "in_time_before": 0,
            "in_time_day_type": "current",
            "out_need_punch": true,
            "out_time": "string",
            "out_time_after": 0,
            "out_time_before": 0,
            "out_time_day_type": "current"
          }
        ],
        "rest_time_rules": [
          {
            "end_time": "string",
            "end_time_day_type": "current",
            "start_time": "string",
            "start_time_day_type": "current"
          }
        ],
        "ctime": 0,
        "id": "string",
        "mtime": 0,
        "name": "string",
        "owner_id": "string",
        "version": 0
      }
    ],
    "next_page_token": "string",
    "total": 0
  }
}