七鱼开发文档中心
总览服务端 APIWebiOSAndroid鸿蒙Uniapp微信小程序插件三方接入
系统设置自定义字段

分页查询自定义字段列表

分页查询企业自定义字段基础信息。请求体可以为空;为空时 limit 默认 500,offset 默认 0。结果按修改时间倒序返回,并按 keywords 对字段名称做包含匹配。

请求参数

名称类型必填描述示例值
appKeystring是应用 AppKey
timeint64是请求时间戳(秒)
checksumstring是请求签名校验和
checksumAlgorithmint32否签名算法:0 - 默认(SHA1),1 - SHA256

请求体

名称类型必填描述示例值
limitint32否每页数量;请求体为空或字段缺失时默认 500500
offsetint32否查询偏移量;请求体为空或字段缺失时默认 0。0
keywordsstring否查询关键字,按字段名称做包含匹配。客户

返回参数

名称类型描述示例值
codeint32状态码,200 表示成功200
dataobject分页数据{"total":1,"result":[{"id":10001,"name":"客户意向","type":1,"description":"[{\"text\":\"高意向\",\"opId\":\"high\"}]","updateTime":1739347200000,"status":0}]}
└totalint32当前查询返回总数20
└resultobject[]自定义字段基础信息列表[{"id":10001,"name":"客户意向","type":1,"description":"[{\"text\":\"高意向\",\"opId\":\"high\"}]","updateTime":1739347200000,"status":0}]
└idint64自定义字段 ID10001
└namestring自定义字段名称客户意向
└typeint32字段类型:0-文本,1-单选,2-多选,3-时间,5-新版数据,6-级联,7-附件1
└descriptionstring字段描述。单选/多选字段通常是枚举项 JSON 数组字符串,元素包含 text 和可选 opId。[{"text":"高意向","opId":"high"},{"text":"低意向","opId":"low"}]
└updateTimeint64字段更新时间,毫秒时间戳1739347200000
└statusint32字段状态:0-正常,1-删除0

错误码

状态码描述
14001AppKey 不存在
14002checksum 校验失败
14003time 缺失,或请求时间戳与服务器时间误差超过 10 分钟
14500服务内部异常;请求体无法解析或自定义字段读取失败
postEndpoint
/openapi/customfield/getCustomFieldList
POST
/openapi/customfield/getCustomFieldList
curl -X POST "https://qiyukf.com/openapi/customfield/getCustomFieldList?appKey=9f1d7c2b8a6e4d3c&time=1739347200&checksum=a1b2c3d4e5f607182930abcdefabcdef&checksumAlgorithm=0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "code": 200,
  "data": {
    "total": 1,
    "result": [
      {
        "id": 10001,
        "name": "客户意向",
        "type": 1,
        "description": "[{\"text\":\"高意向\",\"opId\":\"high\"}]",
        "updateTime": 1739347200000,
        "status": 0
      }
    ]
  }
}
{
  "code": 14001,
  "message": "AppKey 不存在"
}
{
  "code": 14002,
  "message": "checksum 校验失败"
}
{
  "code": 14003,
  "message": "time 缺失,或请求时间戳与服务器时间误差超过 10 分钟"
}
{
  "code": 14500,
  "message": "服务内部异常;请求体无法解析或自定义字段读取失败"
}

这篇文档有帮助吗?