文档中心 > API类目 > 阿里健康追溯码

alibaba.alihealth.tracecodeseller.milk.trace.tosource.add.data (奶粉溯源-同步数据)

奶粉溯源-同步数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ent_id String 必须 huiShi 奶粉品牌ID
json_str String 必须 [{"traceCode":"81000000000000000000","milkEnterpriseInfo":{"productionCertificateURL":"原产生产证书","enterpriseRegisterAddrss":"企业注册地","businessCertificateURL":"经营许可证","enterpriseName":"企业名称"},"milkProductInfo":{"batchNo":"生产批号","produceDate":"生产日期","productSpecification":"商品规格","expire":"保质期","materialsCountry":"原料产地","patentedFormula":"专利配方","expireDate":"有效日期","produceCountry":"原产国家","productName":"商品名称"},"milkProductLogisticsInfo":{"milkOverseasShippingInfo":{"pickUpDate":"提货时间","inspectionAddress":"监装地址","pickUpCountry":"提货国家","inspectionMethod":"监装方式"},"milkProduceOutInfo":{"outDate":"出库时间","fillingDate":"罐装时间","produceCountry":"生产地点","fillingCountry":"罐装地点"},"milkImportDeclarationInfo":{"inStorageDate":"国内入库时间","declarationBillCode":"报关单号","importDate":"进口时间","declarationBillURL":"报关单","inStorageAddress":"国内入库地点","importPort":"进口口岸"}},"milkQualityInformationInfo":{"qualityInspectionReportURL":"国内质检报告"},"entrance":"1:国产 ; 2:进口"}] 奶粉数据

响应参数

名称 类型 示例值 描述
model Boolean true 服务出参true
msg_code String 1000 操作码
msg_info String demo 操作说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataRequest req = new AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataRequest();
req.setEntId("huiShi");
req.setJsonStr("[{\"traceCode\":\"81000000000000000000\",\"milkEnterpriseInfo\":{\"productionCertificateURL\":\"原产生产证书\",\"enterpriseRegisterAddrss\":\"企业注册地\",\"businessCertificateURL\":\"经营许可证\",\"enterpriseName\":\"企业名称\"},\"milkProductInfo\":{\"batchNo\":\"生产批号\",\"produceDate\":\"生产日期\",\"productSpecification\":\"商品规格\",\"expire\":\"保质期\",\"materialsCountry\":\"原料产地\",\"patentedFormula\":\"专利配方\",\"expireDate\":\"有效日期\",\"produceCountry\":\"原产国家\",\"productName\":\"商品名称\"},\"milkProductLogisticsInfo\":{\"milkOverseasShippingInfo\":{\"pickUpDate\":\"提货时间\",\"inspectionAddress\":\"监装地址\",\"pickUpCountry\":\"提货国家\",\"inspectionMethod\":\"监装方式\"},\"milkProduceOutInfo\":{\"outDate\":\"出库时间\",\"fillingDate\":\"罐装时间\",\"produceCountry\":\"生产地点\",\"fillingCountry\":\"罐装地点\"},\"milkImportDeclarationInfo\":{\"inStorageDate\":\"国内入库时间\",\"declarationBillCode\":\"报关单号\",\"importDate\":\"进口时间\",\"declarationBillURL\":\"报关单\",\"inStorageAddress\":\"国内入库地点\",\"importPort\":\"进口口岸\"}},\"milkQualityInformationInfo\":{\"qualityInspectionReportURL\":\"国内质检报告\"},\"entrance\":\"1:国产 ; 2:进口\"}]");
AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_tracecodeseller_milk_trace_tosource_add_data_response>
    <model>true</model>
    <msg_code>1000</msg_code>
    <msg_info>demo</msg_info>
</alibaba_alihealth_tracecodeseller_milk_trace_tosource_add_data_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部