商品条码追溯API接口是一种通过API调用实现商品条码追溯功能的接口。通过该接口,可以根据商品的条码获取商品的追溯信息,包括生产厂家、生产日期、检验报告等相关信息。
接口的调用方式一般是通过发送HTTP请求访问指定的API地址,并将需要查询的条码作为参数传递给API。API会根据条码进行查询,并返回相应的追溯信息。
通过商品条码追溯API接口,可以方便地实现商品的追溯功能,提高商品质量的管理和溯源能力,保障消费者的权益和安全。
商品条码追溯
1) 请求地址
2) 调用方式:HTTP get
3) 接口描述:
- 商品条码追溯
4) 请求参数:
GET参数:
| 字段名称 | 字段说明 | 类型 | 必填 | 备注 |
|---|---|---|---|---|
| productCode | string | Y | 条码号 | |
| mac | string | Y | - | |
| sessionKey | string | Y | - |
5) 请求返回结果:
{
"status": 200,
"msg": "获取成功",
"data": {
"codeSource": "china",
"showStatus": "1",
"showStatusInfo": "经查,该商品条码已在中国物品编码中心注册,编码信息已按规定通报",
"firmStatus": "有效",
"productBo": {
"firmName": "福建恒安集团有限公司",
"firmAddress": "晋江市安海镇恒安工业城",
"diffYearsMonthsDays": "[32,3,4]",
"codeYear": "32年",
"productCode": "06903244679763",
"itemName": "心相印面巾纸",
"brandName": "心相印",
"itemSpecification": "1包",
"netContent": "1",
"netContentUnit": "PH",
"productDescribe": "心相印面巾纸",
"have": true
},
"safetyList": {},
"entinfoList": {},
"resultProductCode": "06903244679763"
},
"success": true
}
6) 请求返回结果参数说明:
| 字段名称 | 字段说明 | 类型 | 必填 | 备注 |
|---|---|---|---|---|
| status | string | Y | - | |
| msg | string | Y | - | |
| data | string | Y | - | |
| codeSource | string | Y | - | |
| showStatus | string | Y | - | |
| showStatusInfo | string | Y | - | |
| firmStatus | string | Y | - | |
| productBo | string | Y | - | |
| firmName | string | Y | - | |
| firmAddress | string | Y | - | |
| diffYearsMonthsDays | string | Y | - | |
| codeYear | string | Y | - | |
| productCode | string | Y | - | |
| itemName | string | Y | - | |
| brandName | string | Y | - | |
| itemSpecification | string | Y | - | |
| netContent | string | Y | - | |
| netContentUnit | string | Y | - | |
| productDescribe | string | Y | - | |
| have | string | Y | - | |
| safetyList | string | Y | - | |
| entinfoList | string | Y | - | |
| resultProductCode | string | Y | - | |
| success | string | Y | - |

2847

被折叠的 条评论
为什么被折叠?



