七鱼开发文档中心
总览服务端 APIWebiOSAndroid鸿蒙Uniapp微信小程序插件三方接入
在线系统数据接口

订单绩效统计

查询订单绩效统计数据,支持按客服组、客服筛选和排序。时间范围不超过 365 天。需同时传 startTime 和 endTime 或都不传(默认近 30 天)。pageSize 上限 1000。

请求参数

名称类型必填描述示例值
appKeystring是应用 AppKey
timeint64是请求时间戳(秒)
checksumstring是请求签名校验和

请求体

名称类型必填描述示例值
startTimeint64否开始时间(毫秒时间戳),与 endTime 同时传或都不传1685548800000
endTimeint64否结束时间(毫秒时间戳),与 startTime 同时传或都不传1688140799000
pageint32否页码,从 1 开始1
pageSizeint32否每页条数,上限 1000(可配置)100
staffIdListint64[]否客服 ID 列表(可选)
staffGroupListint64[]否客服组 ID 列表(可选)
orderstring否排序字段(可选)

返回参数

名称类型描述示例值
codeint32状态码,200 表示成功200
messageobject订单绩效统计数据
└ordersobject[]客服订单绩效列表
└staffIdint64客服 ID
└userNamestring客服登录名
└nameSpellstring客服姓名拼音,用于排序
└kefuNamestring客服姓名
└serviceNumsint64接待人数
└validServiceNumsint64有效接待人数,不包含没有对话的会话
└totalServiceNumsint64接待人数,包含匿名访客
└sellNumsint64销售人数
└sell48Numsint64接待后 48 小时内支付的销售人数
└translationRadiodouble询单转化成功率
└translation48Radiodouble48 小时询单转化成功率
└sellMoneydouble销售额
└sell48Moneydouble接待后 48 小时内支付的销售额
└sellMoneyRadiodouble客服销售额占总销售额的比例
└orderNumsint64订单数
└order48Numsint64接待后 48 小时内支付的订单数
└pieceNumsint64商品件数
└piece48Numsint64接待后 48 小时内支付的商品件数
└kePieceNumsdouble平均每个订单的商品件数
└ke48PieceNumsdouble48 小时平均每个订单的商品件数
└keOrderPricedouble平均订单价格
└ke48OrderPricedouble48 小时平均订单价格
└unsoldServiceNumsint64未下单的有效接待人数,仅单日查询且开关开启时返回
└unsoldTranslationRadiodouble未下单访客的最终询单转化率
└sumobject客服订单绩效记录
└staffIdint64客服 ID
└userNamestring客服登录名
└nameSpellstring客服姓名拼音,用于排序
└kefuNamestring客服姓名
└serviceNumsint64接待人数
└validServiceNumsint64有效接待人数,不包含没有对话的会话
└totalServiceNumsint64接待人数,包含匿名访客
└sellNumsint64销售人数
└sell48Numsint64接待后 48 小时内支付的销售人数
└translationRadiodouble询单转化成功率
└translation48Radiodouble48 小时询单转化成功率
└sellMoneydouble销售额
└sell48Moneydouble接待后 48 小时内支付的销售额
└sellMoneyRadiodouble客服销售额占总销售额的比例
└orderNumsint64订单数
└order48Numsint64接待后 48 小时内支付的订单数
└pieceNumsint64商品件数
└piece48Numsint64接待后 48 小时内支付的商品件数
└kePieceNumsdouble平均每个订单的商品件数
└ke48PieceNumsdouble48 小时平均每个订单的商品件数
└keOrderPricedouble平均订单价格
└ke48OrderPricedouble48 小时平均订单价格
└unsoldServiceNumsint64未下单的有效接待人数,仅单日查询且开关开启时返回
└unsoldTranslationRadiodouble未下单访客的最终询单转化率
└totalint32符合条件的客服总数100

错误码

状态码描述
14001AppKey 不存在
14002checksum 校验失败
14003请求时间戳与服务器时间误差超过 10 分钟
14004请求体 JSON 格式错误或参数缺失
14500服务内部异常
14501时间范围超过限制(>365 天);结束时间不合法
postEndpoint
/openapi/statistic/performance
POST
/openapi/statistic/performance
curl -X POST "https://qiyukf.com/openapi/statistic/performance?appKey=string&time=1739347200&checksum=a1b2c3d4e5f607182930abcdefabcdef" \  -H "Content-Type: application/json" \  -d '{}'
{
  "code": 200,
  "message": {
    "orders": [
      {
        "staffId": 0,
        "userName": "string",
        "nameSpell": "string",
        "kefuName": "string",
        "serviceNums": 0,
        "validServiceNums": 0,
        "totalServiceNums": 0,
        "sellNums": 0,
        "sell48Nums": 0,
        "translationRadio": 0.1,
        "translation48Radio": 0.1,
        "sellMoney": 0.1,
        "sell48Money": 0.1,
        "sellMoneyRadio": 0.1,
        "orderNums": 0,
        "order48Nums": 0,
        "pieceNums": 0,
        "piece48Nums": 0,
        "kePieceNums": 0.1,
        "ke48PieceNums": 0.1,
        "keOrderPrice": 0.1,
        "ke48OrderPrice": 0.1,
        "unsoldServiceNums": 0,
        "unsoldTranslationRadio": 0.1
      }
    ],
    "sum": {
      "staffId": 0,
      "userName": "string",
      "nameSpell": "string",
      "kefuName": "string",
      "serviceNums": 0,
      "validServiceNums": 0,
      "totalServiceNums": 0,
      "sellNums": 0,
      "sell48Nums": 0,
      "translationRadio": 0.1,
      "translation48Radio": 0.1,
      "sellMoney": 0.1,
      "sell48Money": 0.1,
      "sellMoneyRadio": 0.1,
      "orderNums": 0,
      "order48Nums": 0,
      "pieceNums": 0,
      "piece48Nums": 0,
      "kePieceNums": 0.1,
      "ke48PieceNums": 0.1,
      "keOrderPrice": 0.1,
      "ke48OrderPrice": 0.1,
      "unsoldServiceNums": 0,
      "unsoldTranslationRadio": 0.1
    },
    "total": 100
  }
}
{
  "code": 14001,
  "message": "AppKey 不存在"
}
{
  "code": 14002,
  "message": "checksum 校验失败"
}
{
  "code": 14003,
  "message": "请求时间戳与服务器时间误差超过 10 分钟"
}
{
  "code": 14004,
  "message": "请求体 JSON 格式错误或参数缺失"
}
{
  "code": 14500,
  "message": "服务内部异常"
}
{
  "code": 14501,
  "message": "时间范围超过限制(>365 天);结束时间不合法"
}

这篇文档有帮助吗?