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",
        "customsNumber": "海关编号",
        "domesticConsignee": "境内收货人",
        "portOfEntry": "进境关别",
        "importDate": "进口日期",
        "declareDate": "申报日期",
        "recordNumber": "备案号",
        "foreignShipper": "境外发货人",
        "modeOfTransport": "运输方式",
        "transportVehicleAndVoyage": "运输工具名称及航次号",
        "billOfLading": "提运单号",
        "goodsStorageLocation": "货物存放地点",
        "consumptionUseUnit": "消费使用单位",
        "regulationMethod": "监管方式",
        "dutyFreeNature": "征免性质",
        "licenseNumber": "许可证号",
        "portOfShipment": "启运港",
        "contractAgreementNumber": "合同协议号",
        "tradingCountryRegion": "贸易国(地区)",
        "countryOfOrigin": "启运国(地区)",
        "portOfCall": "经停港",
        "portOfEntryLocation": "入境口岸",
        "packagingType": "包装种类",
        "pieces": "件数",
        "grossWeightKg": "毛重(千克)",
        "netWeightKg": "净重(千克)",
        "transactionMethod": "成交方式",
        "freight": "运费",
        "insurance": "保费",
        "miscellaneousFees": "杂费",
        "documentsAndNumbers": "随附单证及编号",
        "markingsAndRemarks": "标记喷码及备注",
        "specialRelationshipConfirmation": "特殊关系确认",
        "priceInfluenceConfirmation": "价格影响确认",
        "royaltyPaymentConfirmation": "支付特权使用费确认",
        "formulaPricingConfirmation": "公式定价确认:",
        "provisionalPriceConfirmation": "暂定价格确认",
        "selfDeclarationAndPayment": "自报自缴",
        "customsOfficer": "报关人员",
        "customsOfficerLicenseNumber": "报关人员证号",
        "telephone": "电话",
        "declaringUnit": "申报单位"
    },
    "forms": [
        {
            "form": [
                {
                    "name": "项号",
                    "list": [
                        "",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "商品编号",
                    "list": [
                        "2208300000",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "商品名称及规格型号",
                    "list": [
                        "苏格兰威士忌0|3|苏格兰威士忌SCOTCHWHISKY|大麦麦芽、大麦、水、焦糖色|40度|201升/桶",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "数量及单位",
                    "list": [
                        "1260升1200千克1260升",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "单价/总价/币制",
                    "list": [
                        "英镑",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "原产国(地区)",
                    "list": [
                        "英国(GBR)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "最终目的国(地区)",
                    "list": [
                        "中国(CHN)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "境内目的地",
                    "list": [
                        "(31079/310107)普陀/上海市普陀区",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "征免",
                    "list": [
                        "照章征税(1)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                }
            ]
        }
    ]
}

(2)出口报关单

{
    "message": {
        "status": 0,
        "value": "识别完成"
    },
    "info": {
        "type": "lgStatement32",
        "customsNumber": "海关编号",
        "domesticShipper": "境内发货人",
        "portOfExit": "出境关别",
        "exportDate": "出口日期",
        "declareDate": "申报日期",
        "recordNumber": "备案号",
        "foreignConsignee": "境外收货人",
        "modeOfTransport": "运输方式",
        "transportVehicleAndVoyage": "运输工具名称及航次号",
        "billOfLading": "提运单号",
        "producerSalesUnit": "生产销售单位",
        "regulationMethod": "监管方式",
        "dutyFreeNature": "征免性质",
        "licenseNumber": "许可证号",
        "contractAgreementNumber": "合同协议号",
        "tradingCountryRegion": "贸易国(地区)",
        "countryOfDestination": "运抵国(地区)",
        "portOfDestination": "指运港",
        "portOfDeparture": "离境口岸",
        "packagingType": "包装种类",
        "pieces": "件数",
        "grossWeightKg": "毛重(千克)",
        "netWeightKg": "净重(千克)",
        "transactionMethod": "成交方式",
        "freight": "运费",
        "insurance": "保费",
        "miscellaneousFees": "杂费",
        "documentsAndNumbers": "随附单证及编号",
        "markingsAndRemarks": "标记唛码及备注",
        "specialRelationshipConfirmation": "特殊关系确认",
        "priceInfluenceConfirmation": "价格影响确认",
        "royaltyPaymentConfirmation": "支付特权使用费确认",
        "formulaPricingConfirmation": "公式定价确认",
        "provisionalPriceConfirmation": "暂定价格确认",
        "selfDeclarationAndPayment": "自报自缴",
        "customsOfficer": "报关人员",
        "customsOfficerLicenseNumber": "报关人员证号",
        "telephone": "电话",
        "declaringUnit": "申报单位"
    },
    "forms": [
        {
            "form": [
                {
                    "name": "项号",
                    "list": [
                        "",
                        "",
                        "",
                        "",
                        "",
                        "■"
                    ]
                },
                {
                    "name": "商品编号",
                    "list": [
                        "2710191100",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "商品名称及规格型号",
                    "list": [
                        "航空煤油010/155.7-239.4℃/公式定价|需要二次结算20211215|计价日期:2021年12月6",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "数量及单位",
                    "list": [
                        "24500000千克30527000升190365桶",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "单价/总价/币制",
                    "list": [
                        "84.099516009599.30美元",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "原产国(地区)",
                    "list": [
                        "中国(CHN)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "最终目的国(地区)",
                    "list": [
                        "孟加拉(BGD)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "境内货源地",
                    "list": [
                        "(44139)惠州其他",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                },
                {
                    "name": "征免",
                    "list": [
                        "鼠章征税(1)",
                        "",
                        "",
                        "",
                        "",
                        ""
                    ]
                }
            ]
        }
    ]
}

results matching ""

    No results matching ""