开发平台

电话咨询 400-000-7749

1. 查询访问量配置


接口地址 http://host:port/pospal-api2/openapi/v1/openApiLimitAccess/queryAccessTimes
请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "appId": "abcdefghijklmn"
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    任何门店的AppId都可以查出当前门店及连锁门店所有的访问量配置
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": [
  • {
  • "appId": "9CE71412C6B26D0C7EF894Bcccc4DDDD",
  • "limitTimes": 3000,
  • "startDate": "2017-10-27 00:00:00",
  • "endDate": "2018-11-02 23:59:59"
  • },
  • {
  • "appId": "9CE71412C6B26D0C7EF894Bcccc4DDDD",
  • "limitTimes": 3000,
  • "startDate": "2017-05-16 00:00:00",
  • "endDate": "2018-11-02 23:59:59"
  • }
  • ]
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json 访问量实体数据
    appId String 账号对应的appId
    limitTimes long 每日访问量
    startDate String 开始时间格式为yyyy-MM-dd HH:mm:ss,当startDate=null 或endDate=null 时,表示此此账号一直都是使用默认访问量。
    endDate String 到期时间格式为yyyy-MM-dd HH:mm:ss,可为null。如果当前时间大于结束到期,访问量降为默认访问量

    2. 查询每日访问量


    接口地址 http://host:port/pospal-api2/openapi/v1/openApiLimitAccess/queryDailyAccessTimesLog
    请求头
  • User-Agent: openApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • time-stamp: 1437528688233
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D
  • 请求方式 POST
    请求体
  • {
  • "appId": "abcdefghijklmn",
  • "beginDate": "2016-12-23",
  • "endDate": "2016-12-30"
  • }
  • 参数名 是否必须 类型 说明
    appId String Pospal配置的访问凭证
    任何门店的AppId都可以查出当前门店及连锁门店所有的访问量配置
    beginDate String 开始日期,格式yyyy-MM-dd
    endDate String 结束日期,格式yyyy-MM-dd
    endDate – beginDate <=7 天
    返回结果
  • {
  • "status": "success",
  • "messages": [],
  • "data": [
  • {
  • "appId": "EC48AD85DCDDF5D69567C82E4565B127",
  • "accessDate": "2016-12-23",
  • "limitTimes": 3000,
  • "haveAcessTimes": 996
  • },
  • {
  • "appId": "EC48AD85DCDDF5D69567C82E4565B127",
  • "accessDate": "2016-12-24",
  • "limitTimes": 3000,
  • "haveAcessTimes": 456
  • }
  • ]
  • }
  • 字段名 类型 说明
    status String 是否正确处理请求,返回success或error,不区分大小写
    messages String[] 处理结果的消息
    errorCode int 业务处理的错误代码,参见错误代码表
    data Json 访问量实体数据
    appId String 账号对应的appId
    limitTimes long 每日访问量
    accessDate String 访问日期,格式为yyyy-MM-dd
    haveAcessTimes long 已使用的访问量