1、报关单识别 - 接口说明

接口地址
图片为base64流 https://netocr.com/api/recog_bgd.do
图片为file格式 https://netocr.com/api/recog_bgd_stream.do
接口调用方法 post

(注:调用图片为base64流接口时传参数img,调用图片为file格式接口传参数file)

2、请求参数

序号 名称 类型 必填 说明
1 img String 上传的文件(图片的base64流) 300kb最佳
2 file MultipartFile 上传的文件(上传文件的字段名必须是“file”) 300kb最佳
3 key String 用户ocrKey
4 secret String 用户ocrSecrert
5 typeId Integer 识别类型(进口报关单52、出口报关单53)
6 format String json

3、结果示例

(1)进口报关单

{
    "message": {
        "status": 0,
        "value": "识别完成"
    },
    "info": {
        "type": "lgStatement34",
        "保留": "",
        "保留坐标": "0_0_0_0_0_0_0_0",
        "海关编号": "",
        "海关编号坐标": "453_89_601_89_601_118_453_118",
        "境内收货人": "营口申好服装有限公司",
        "境内收货人坐标": "78_136_216_136_216_151_77_151",
        "进境关别": "营港物流",
        "进境关别坐标": "399_135_458_135_458_151_399_151",
        "进口日期": "20240320",
        "进口日期坐标": "587_135_646_135_646_152_587_152",
        "申报日期": "中报口整",
        "申报日期坐标": "782_126_837_126_837_136_782_136",
        "备案号": "B094024A0037",
        "备案号坐标": "960_136_1042_136_1042_150_960_150",
        "境外发货人": "UNITRA INTERNATIONAL CORPORATION",
        "境外发货人坐标": "80_171_295_171_295_183_80_183",
        "运输方式": "物流中心",
        "运输方式坐标": "399_169_458_169_458_186_399_186",
        "运输工具名称及航次号": "",
        "运输工具名称及航次号坐标": "584_164_772_164_772_188_584_188",
        "提运单号": "",
        "提运单号坐标": "783_168_936_168_936_191_783_191",
        "货物存放地点": "营口港保税物流园区",
        "货物存放地点坐标": "960_170_1082_170_1082_185_960_185",
        "消费使用单位": "营口申好服装有限公司",
        "消费使用单位坐标": "80_205_214_206_214_217_80_217",
        "监管方式": "来料加工",
        "监管方式坐标": "401_205_455_205_455_217_401_217",
        "征免性质": "来料加工",
        "征免性质坐标": "589_205_643_205_643_218_589_218",
        "许可证号": "",
        "许可证号坐标": "786_198_941_198_941_226_786_225",
        "启运港": "中国境内",
        "启运港坐标": "958_201_1018_204_1017_220_957_217",
        "合同协议号": "24SH-004",
        "合同协议号坐标": "80_238_136_238_136_251_80_251",
        "贸易国(地区)": "韩国",
        "贸易国(地区)坐标": "398_236_432_236_432_254_398_254",
        "启运国(地区)": "中国",
        "启运国(地区)坐标": "588_238_619_238_619_252_588_252",
        "经停港": "中国境内",
        "经停港坐标": "783_239_838_239_838_252_783_252",
        "入境口岸": "营口港保税物流园区",
        "入境口岸坐标": "960_237_1082_237_1082_252_960_252",
        "包装种类": "包/袋",
        "包装种类坐标": "78_270_118_270_118_288_78_288",
        "件数": "255",
        "件数坐标": "399_268_427_271_424_290_396_286",
        "毛重(千克)": "7540",
        "毛重(千克)坐标": "467_272_498_272_498_286_467_286",
        "净重(千克)": "7373",
        "净重(千克)坐标": "588_272_619_272_619_286_588_286",
        "成交方式": "CIF",
        "成交方式坐标": "702_269_730_270_730_287_702_287",
        "运费": "",
        "运费坐标": "784_267_916_267_916_297_784_297",
        "保费": "",
        "保费坐标": "916_268_1048_268_1048_297_916_297",
        "杂费": "",
        "杂费坐标": "1048_267_1206_267_1206_297_1048_297",
        "随附单证及编号": "随附单证1:保税核注清单QD094024I000000314",
        "随附单证及编号坐标": "80_307_349_307_349_319_80_318",
        "标记喷码及备注": "备注:出口报关单号:入驻企业账册号:L0951B23A003营口港船货代理有限责任公司卖方:UNITRAINTCHD202400SHENHAO",
        "标记喷码及备注坐标第1行": "78_340_683_338_683_353_78_355",
        "标记喷码及备注坐标第2行": "77_355_191_354_191_369_77_370",
        "特殊关系确认": "否",
        "特殊关系确认坐标": "210_702_227_702_227_719_210_719",
        "价格影响确认": "否",
        "价格影响确认坐标": "392_704_407_704_407_717_392_717",
        "支付特权使用费确认": "否",
        "支付特权使用费确认坐标": "589_702_610_702_609_717_589_717",
        "公式定价确认": "否",
        "公式定价确认坐标": "752_704_769_704_769_717_752_717",
        "暂定价格确认": "否",
        "暂定价格确认坐标": "929_704_950_704_950_717_929_717",
        "自报自缴": "否",
        "自报自缴坐标": "1100_702_1122_702_1122_719_1100_719",
        "报关人员": "",
        "报关人员坐标": "136_737_218_737_218_761_136_761",
        "报关人员证号": "",
        "报关人员证号坐标": "287_737_390_738_390_754_287_753",
        "电话": "",
        "电话坐标": "427_736_564_736_564_758_427_757",
        "申报单位": "(91210804577239745K)营口展程物流有限公司",
        "申报单位坐标": "85_762_404_761_404_777_85_779",
        "处理后的图片": "img base64",
        "核心时间": "10050"
    },
    "forms": [
        {
            "form": [
                {
                    "name": "项号",
                    "list": [
                        "(23)",
                        ......
                        ""
                    ],
                    "pos": [
                        "147_1186_226_1234",
                        ......
                    ]
                },
                {
                    "name": "商品编号",
                    "list": [
                        "5903209000",
                        ......
                    ],
                    "pos": [
                        "235_1153_426_1186",
                        .....
                    ]
                },
                {
                    "name": "商品名称及规格型号",
                    "list": [
                        "5903209000涤纶机织染色层压布无中、外文品牌名称;处理材质:聚氨酯;成分含量:100%涤纶(胶水薄膜除外);处理",
                         .....
                    ],
                    "pos": [
                        "230_1153_1213_1270",
                        ......
                    ]
                },
                {
                    "name": "数量及单位",
                    "list": [
                        "2592千克10107码",
                        ...... 
                    ],
                    "pos": [
                        "1496_1147_1667_1276",
                        ......
                    ]
                },
                {
                    "name": "单价/总价/币制",
                    "list": [
                        "3.560035980.92美元",
                           ......
                    ],
                    "pos": [
                        "1841_1150_2002_1280",
                           ......
                    ]
                },
                {
                    "name": "原产国(地区)",
                    "list": [
                        "中国(CHN)",
                           ......
                    ],
                    "pos": [
                        "2173_1147_2278_1231",
                           ......
                    ]
                },
                {
                    "name": "最终目的国(地区)",
                    "list": [
                        "中国(CHN)",
                           ......
                    ],
                    "pos": [
                        "2479_1137_2577_1231",
                           ......
                    ]
                },
                {
                    "name": "境内目的地",
                    "list": [
                        "(21089/210882)营口/营口市大石桥市",
                           ......
                    ],
                    "pos": [
                        "2479_1137_3044_1225",
                           ......
                    ]
                },
                {
                    "name": "征免",
                    "list": [
                        "全免(3)",
                        ......
                    ],
                    "pos": [
                        "3103_1150_3192_1231",
                       ......
                    ]
                }
            ]
        }
    ]
}

(2)出口报关单

{
    "message": {
        "status": 0,
        "value": "识别完成"
    },
    "info": {
        "type": "lgStatement32",
        "保留": "",
        "保留坐标": "0_0_0_0_0_0_0_0",
        "海关编号": "420820191000037379",
        "海关编号坐标": "417_120_614_119_614_142_417_143",
        "境内发货人": "华农贸易(上海)有限公司",
        "境内发货人坐标": "82_159_322_158_322_175_82_176",
        "出境关别": "烟加区",
        "出境关别坐标": "423_159_848_157_848_175_423_177",
        "出口日期": "",
        "出口日期坐标": "0_0_0_0_0_0_0_0",
        "申报日期": "",
        "申报日期坐标": "0_0_0_0_0_0_0_0",
        "备案号": "",
        "备案号坐标": "0_0_0_0_0_0_0_0",
        "境外收货人": "事外爱景人",
        "境外收货人坐标": "82_190_331_189_331_215_82_216",
        "运输方式": "用口加工区",
        "运输方式坐标": "423_190_855_188_855_212_423_214",
        "运输工具名称及航次号": "",
        "运输工具名称及航次号坐标": "631_149_846_148_846_174_631_175",
        "提运单号": "",
        "提运单号坐标": "858_146_1117_145_1117_174_858_175",
        "生产销售单位": "酒费伸用单位(91310107MA1G04469E)",
        "生产销售单位坐标": "82_224_340_223_340_245_82_246",
        "监管方式": "一般贸易()一般征税)",
        "监管方式坐标": "424_227_859_225_859_248_424_250",
        "征免性质": "工具名称及撤次号",
        "征免性质坐标": "631_185_827_184_827_208_631_209",
        "许可证号": "货物存放地",
        "许可证号坐标": "856_183_1065_183_1065_205_856_205",
        "合同协议号": "",
        "合同协议号坐标": "0_0_0_0_0_0_0_0",
        "贸易国(地区)": "",
        "贸易国(地区)坐标": "0_0_0_0_0_0_0_0",
        "运抵国(地区)": ")()",
        "运抵国(地区)坐标": "628_236_773_236_773_276_628_276",
        "指运港": "Ccanm0o8",
        "指运港坐标": "856_244_900_244_900_276_856_276",
        "离境口岸": ")",
        "离境口岸坐标": "1021_236_1169_235_1169_274_1021_275",
        "包装种类": "其他材料制桶",
        "包装种类坐标": "82_308_303_307_304_328_83_329",
        "件数": "612511200",
        "件数坐标": "422_307_722_306_723_329_423_330",
        "毛重(千克)": "",
        "毛重(千克)坐标": "732_306_809_305_810_329_733_330",
        "净重(千克)": "200",
        "净重(千克)坐标": "631_305_732_305_733_329_632_329",
        "成交方式": "F",
        "成交方式坐标": "753_306_849_305_850_325_754_326",
        "运费": "",
        "运费坐标": "859_305_961_305_962_328_860_328",
        "保费": "",
        "保费坐标": "975_304_1105_303_1106_325_976_326",
        "杂费": "",
        "杂费坐标": "1119_304_1272_304_1273_325_1120_325",
        "随附单证及编号": "随附单证1:保税核注清单QD123419E000004373随",
        "随附单证及编号坐标": "83_342_387_341_387_364_83_365",
        "标记唛码及备注": "备注:原进境报关单12342019100033310原产国;英国",
        "标记唛码及备注坐标": "86_367_422_366_422_398_86_399",
        "特殊关系确认": "游识:否",
        "特殊关系确认坐标": "236_745_297_744_297_776_236_777",
        "价格影响确认": "6旅服务;支付",
        "价格影响确认坐标第1行": "463_736_604_743_602_779_461_772",
        "价格影响确认坐标第2行": "715_746_749_742_749_768_715_772",
        "支付特许权使用费确认": "妻",
        "支付特许权使用费确认坐标": "715_746_741_742_741_768_715_772",
        "公式定价确认": "否",
        "公式定价确认坐标": "842_745_872_741_873_767_842_771",
        "暂定价格确认": "自银自款:是",
        "暂定价格确认坐标": "1027_745_1123_744_1123_776_1027_777",
        "自报自缴": "",
        "自报自缴坐标": "1180_737_1253_737_1253_776_1180_776",
        "报关人员": "",
        "报关人员坐标": "215_787_238_787_238_809_215_809",
        "报关人员证号": "42107594",
        "报关人员证号坐标": "307_786_366_786_366_808_307_808",
        "电话": "招关专用章)鲜疗限上内容承担加安申源、依法销8",
        "电话坐标": "460_790_814_788_814_816_460_818",
        "申报单位": "中报单位(01234567898765432W)山东朗越国际运输服务有*公用)",
        "申报单位坐标": "84_816_488_815_488_847_84_848",
        "处理后的图片": "img base64"
        "核心时间": "5817"
    },
    "forms": [
        {
            "form": [
                {
                    "name": "项号",
                    "list": [
                        "",
                        ......
                    ],
                    "pos": [
                        "95_442_115_474",
                        ......
                    ]
                },
                {
                    "name": "商品编号",
                    "list": [
                        "22083000008",
                       ......
                    ],
                    "pos": [
                        "115_442_197_474",
                       ......
                    ]
                },
                {
                    "name": "商品名称及规格型号",
                    "list": [
                        "格兰威士品古信品票营大界*",
                        ......
                    ],
                    "pos": [
                        "166_438_504_511",
                       ......
                    ]
                },
                {
                    "name": "数量及单位",
                    "list": [
                        "1260升1200千克1260升",
                       ......
                    ],
                    "pos": [
                        "595_452_668_501",
                      ......
                    ]
                },
                {
                    "name": "单价/总价/币制",
                    "list": [
                        "英镑",
                       ......
                    ],
                    "pos": [
                        "749_482_797_502",
                     ......
                    ]
                },
                {
                    "name": "原产国(地区)",
                    "list": [
                        "英国(GBR)",
                       ......
                    ],
                    "pos": [
                        "847_450_906_491",
                      ......
                    ]
                },
                {
                    "name": "最终目的国(地区)",
                    "list": [
                        "中国(31079/310(CHN)",
                        "",
                       ......
                    ],
                    "pos": [
                        "966_450_1080_491",
                        ......
                    ]
                },
                {
                    "name": "境内货源地",
                    "list": [
                        "107)普陀/上海市照章普陀区",
                       ......
                    ],
                    "pos": [
                        "1080_451_1215_491",
                       ......
                    ]
                },
                {
                    "name": "征免",
                    "list": [
                        "征松()",
                      ......
                    ],
                    "pos": [
                        "1215_450_1260_494",
                      ......
                    ]
                }
            ]
        }
    ]
}

results matching ""

    No results matching ""