C咖开放接口-数码生产信息查询


根据数码查询生产信息

若按单品码查询,则子码数量、箱规比例、子码清单信息为空。

请求流程

参阅 API开放平台接入指南

请求信息

协议

HTTPS

请求方法

GET

请求路径

/customer/cka/v1/open/code/getProductionInfo

请求头

Content-Type:application/json

公共参数

通用请求头

请参阅 通用请求头

请求参数

名称

是否必须

参数类型

参数说明

digit String 数码(支持单品码/箱码/二维码链接)

传出参数

名称

参数类型

参数说明

code

int

错误码,200:成功,其它为失败

message

string

消息内容

data

object

返回信息

digit

string

查询数码

productNo

string

产品编号

batchNo

string

生产批次

productionDate

string

生产日期格式为YYYY-MM-DD

expirationDate

string

有效日期格式为YYYY-MM-DD

subCodeCount

int

子码数量

boxScale

string

箱规比例

scanTime

string

生产上传日期格式为YYYY-MM-DD HH:MM:DD

subCodeList

object

子码清单

exception

string

异常信息

ext

string

扩展数据

meta

string

元数据,如参数校验的data信息等

timestamp

string

时间戳

traceId

string

链路追踪ID

请求示例

/openapi/trace/app/open/v2/inner/info/flow/pms?code=xxx

响应示例

{
    "code": 200,
    "message": "success",
    "data": {
        "digit": "123456",
        "productNo": "test001",
        "batchNo": "test",
        "productionDate": "2026-05-11",
        "expirationDate": "2028-05-10",
        "subCodeCount": 2,
        "boxScale": 2,
        "scanTime": "2026-05-11 14:26:34",
        "subCodeList": [
            "001",
            "002"
        ]
    },
    "timestamp": 1778133330115,
    "traceId": "",
    "exception": null,
    "meta": null,
    "ext": null
}


weizejun 2026年5月20日 11:41 收藏文档