Skip to content

商户授权日志查询接口

接口描述

POST /merchant/auth/logs - 查询商户账号授权访问日志

请求参数

参数名类型必填描述
merchantIdstring商户ID
startTimestring开始时间(ISO8601格式)
endTimestring结束时间(ISO8601格式)
actionTypestring操作类型(LOGIN/LOGOUT/ACCESS)
pageNumint页码(默认1)
pageSizeint每页数量(默认20)

返回示例

json
{
  "total": 42,
  "logs": [
    {
      "logId": "LOG_20230601123000",
      "action": "LOGIN",
      "ipAddress": "192.168.1.100",
      "userAgent": "Mozilla/5.0",
      "timestamp": "2023-06-01T12:30:00Z",
      "status": "SUCCESS"
    },
    {
      "logId": "LOG_20230601123500",
      "action": "ACCESS",
      "ipAddress": "192.168.1.100",
      "userAgent": "Mozilla/5.0",
      "timestamp": "2023-06-01T12:35:00Z",
      "status": "SUCCESS"
    }
  ]
}

错误代码

  • 500: 日志查询失败
  • 500: 时间范围无效