1、报关单识别 - 接口说明
(注:调用图片为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": [
{
"itemNumber": "项号",
"commodityCode": "商品编号",
"commodityNameAndSpec": "商品名称及规格型号",
"quantityAndUnit": "数量及单位",
"unitPriceTotalPriceAndCurrency": "单价/总价/币制",
"originCountryRegion": "原产国(地区)",
"finalDestinationCountry": "最终目的国(地区)",
"domesticLocation": "境内目的地",
"taxation": "征免"
}
]
}
(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": [
{
"itemNumber": "项号",
"commodityCode": "商品编号",
"commodityNameAndSpec": "商品名称及规格型号",
"quantityAndUnit": "数量及单位",
"unitPriceTotalPriceAndCurrency": "单价/总价/币制",
"originCountryRegion": "原产国(地区)",
"finalDestinationCountry": "最终目的国(地区)",
"domesticLocation": "境内货源地",
"taxation": "征免"
}
]
}