出口报关单获取接口
POST
/post/rest/manifest/dii此接口支持获取外贸企业自身的出口报关单数据(含:报关单的出口日期,报关单号,申报日期,合同协议号,境内收发货人,境外收发货人名称,申报单位,提运单号,监管方式,运保杂费,美元离岸价,随附单证,集装箱,报关回执等信息),帮助外贸企业实时拿到出口关单数据,提升工作效率,同时规避申报数据错误的风险。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
authorize
object
安全凭证
appSecId
string
密钥ID
平台随机生成
appSec
string
签名串
根据密钥ID和KEY生成的签名串
globalInfo
object
接口信息
appId
string
接口ID
例:CKBGD
version
string
接口版本号
例:V1.0
interfaceCode
string
接口编码
例:MANIFEST.MGET
enterpriseCode
string
企业编码
dataExchangeId
string
接口数据加密
例:默认值dataExchangeId
data
object
获取条件参数
由获取条件参数通过用Base64加密生成的字符串
bgdNo
string
报关单号
cusDecStatus
string
报关单状态
例:1-保存 2-已申报 3-预录入接收失败 4-海关入库成功 5-海关入库失败 6-退单 7-审结 8-删单 9-放行 10-结关 11-查验通知
endDate
string
出口结束日期
格式:yyyy-MM-dd
flag
string
数据类型
条件判断
1:结关(startDate,endDate,cusDecStatust条件必填)
2:未结关
3或为空:全部
optStartDate
string
最新操作开始日期
格式:yyyy-MM-dd
optEndDate
string
最新操作结束日期
格式:yyyy-MM-dd
preEntryId
string
报关单预录入号
pageSize
integer
页数
默认10条
page
integer
当前第几页
默认从1开始
startDate
string
出口开始日期
格式:yyyy-MM-dd
spDecSeqNo
string
统一编号
hgOpStartDate
string
海关最新操作开始时间
hgOpEndDate
string
海关最新操作结束时间
示例
{
"authorize": {
"appSecId": "2AE5415E6FBD2BE9E3AFCEDE949EA889",
"appSec": "BinJa5Q93i1x8f7npQeF1UINSQQ="
},
"globalInfo": {
"appId": "CKBGD",
"version": "V1.0",
"interfaceCode": "MANIFEST.MGET",
"enterpriseCode": "ALYDT",
"dataExchangeId": "dataExchangeId"
},
"data": "eyJvcHRTdGFydERhdGUiOiIyMDIyLTAxLTAxIiwiZmxhZyI6IiIsIm9wdEVuZERhdGUiOiIyMDIzLTAyLTE3IiwiZW5kRGF0ZSI6IiIsImJnZE5vIjoiIiwiY3VzRGVjU3RhdHVzIjoiIiwicHJlRW50cnlJZCI6IiIsInBhZ2VTaXplIjoxMCwicGFnZSI6MSwic3RhcnREYXRlIjoiIiwic3BEZWNTZXFObyI6IiJ9"
}
//加密的获取参数
{
"optStartDate": "2022-01-01",
"flag": "",
"optEndDate": "2023-02-17",
"endDate": "",
"bgdNo": "",
"cusDecStatus": "",
"preEntryId": "",
"pageSize": 10,
"page": 1,
"startDate": "",
"spDecSeqNo": "",
"hgOpStartDate":"",
"hgOpEndDate":""
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
返回参数
由返回的参数通过用Base64加密生成的字符串
totalRows
integer
数据的总条数
currentRows
integer
当前返回条数
result
array [object {126}]
报关单列表数据
returnStateInfo
object
接口状态信息
returnCode
string
返回状态编码
例:0000
returnMessage
string
返回信息
例:处理成功
示例
{
"data": "nQ29kZU5hbWUiOiIiLCJ3cmFwVHlwZSI6IiIsIndyYXBUeXBlTmFtZSI6IuacqOeusSJ9XX0=....",
"returnStateInfo": {
"returnCode": "0000",
"returnMessage": "处理成功"
}
}
//data加密前的数据
{
"totalRows": 1,
"currentRows": 1,
"result": [
{
"agentCode": "1113980001",
"agentName": "物流公司",
"agentScc": "",
"appCertCode": "",
"appCertName": "",
"attaDocuCds": [
],
"attaDocuCdstr": "",
"billNo": "123",
"bonNo": "",
"ciqBillNo": "",
"cnsnTradeCode": "1113210076",
"cnsnTradeScc": "",
"consigneeCode": "",
"consigneeEname": "XP POWER LLC",
"consignorCname": "北京凯达恒业农业技术开发有限公司",
"consignorCode": "",
"contaCount": "",
"containers": [
],
"contrNo": "",
"correlationDeclNo": "",
"correlationReasonFlag": "",
"correlationReasonFlagName": "",
"cusCiqNo": "E20220000838691431",
"cusDecStatus": "10",
"cusDecStatusName": "结关",
"cusRemark": "",
"cusTradeCountry": "USA",
"cusTradeCountryName": "美国",
"cusTradeNationCode": "USA",
"cusTradeNationCodeName": "美国",
"cusTrafMode": "",
"cusTrafModeName": "其它运输",
"cusVoyageNo": "",
"customMaster": "",
"customMasterName": "京机场关",
"customsField": "",
"customsFieldName": "",
"cutMode": "",
"cutModeName": "",
"dDate": "2022-05-11",
"decOtherPacksVo": "",
"declRegNo": "",
"despDate": "",
"despPortCode": "",
"despPortCodeName": "",
"detailList": [
{
"bgdNo": "010120220000305638001",
"ciqCode": " ",
"ciqDestCode": " ",
"ciqDestCodeName": " ",
"ciqName": " ",
"codeTs": "8504409999",
"contrItem": " ",
"cusOriginCountry": "USA",
"cusOriginCountryName": "美国",
"cusSupvDmd": " ",
"declPrice": 16350,
"declTotal": 32700,
"destinationCountry": "USA",
"destinationCountryName": "美国",
"districtCode": "11132",
"districtCodeName": "北京经济技术开发区",
"dutyMode": "3",
"dutyModeName": "全免",
"exgNo": " ",
"exgVersion": " ",
"gModel": "测试规格型号",
"gName": "测试商品",
"gNo": "1",
"gQty": 2,
"gUnit": "007",
"gUnitName": "个",
"goodsAttr": " ",
"goodsAttrName": " ",
"inspGoodsLicenceInfo": " ",
"inspGoodsTarget": " ",
"origPlaceCode": " ",
"origPlaceCodeName": " ",
"pId": "729a7fb777f7455890af4b8771bb668e",
"preDecCiqGoodsLimit": " ",
"purpose": " ",
"purposeName": " ",
"qty1": 2,
"qty2": 48,
"rmbPrice": 191957,
"tradeCurr": "USD",
"tradeCurrName": "美元",
"unit1": "007",
"unit1Name": "个",
"unit2": "035",
"unit2Name": "千克",
"usdPrice": 30081,
"workUsd": " "
}
],
"distinatePort": "",
"distinatePortName": "洛杉矶(美国)",
"entQualifNo": "",
"entryId": "010120220000305638",
"entryType": "",
"entryTypeName": "",
"feeCurr": "CNY",
"feeCurrName": "人民币",
"feeMark": "3",
"feeMarkName": "总价",
"feeRate": 16682,
"goodsPlace": "",
"grossWt": 54.32,
"iEDate": "2022-07-07",
"iEPort": "",
"iEPortName": "京机场关",
"id": "729a7fb777f7455890af4b8771bb668e",
"inDbTime": "",
"inRatio": "",
"inspOrgCode": "",
"inspOrgCodeName": "",
"insurCurr": "",
"insurCurrName": "",
"insurMark": "",
"insurMarkName": "率",
"insurRate": 0.3,
"jhfs": "",
"jnhyddm": "11132",
"jnhydmc": "北京经济技术开发区",
"jzxh": "",
"licenseNo": "",
"manualNo": "",
"markNo": "",
"netWt": 48,
"newFlag": "Y",
"noteS": "产品报废不再返回国内,SN号:53893502、53893503,原出口运单号:28869968846_7963221081 原出口报关单号:010120210000707579,返修协议号:NMC-CG20212233A",
"nsdw": "",
"nsdwName": "",
"orgCode": "",
"orgCodeName": "",
"origBoxFlag": "",
"origBoxFlagName": "",
"otherCurr": "",
"otherCurrName": "",
"otherMark": "",
"otherMarkName": "",
"otherRate": 0,
"ownerCiqCode": "",
"ownerCode": "1231231231",
"ownerName": "北京凯达恒业农业技术开发有限公司",
"ownerScc": "",
"packNo": "2",
"preDecEntQualifListVo": "",
"preDecRequCertList": "",
"preDecUserList": "",
"preEntryId": "",
"promiseItems": "",
"purpOrgCode": "",
"purpOrgCodeName": "",
"pzwh": "",
"qyxz": "",
"receipts": [
{
"channel": "P",
"channelName": "海关已放行",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742446921",
"dDate": "2022-05-11",
"entryId": "010120220000305638",
"iEDate": "",
"note": "报关单已放行",
"noticeDate": "2022-05-11 10:08:59",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "J",
"channelName": "通关无纸化审结",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742289813",
"dDate": "2022-05-11",
"entryId": "010120220000305638",
"iEDate": "",
"note": "海关已接受申报",
"noticeDate": "2022-05-11 09:29:14",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "L",
"channelName": "海关入库成功",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742273313",
"dDate": "2022-05-11",
"entryId": "010120220000305638",
"iEDate": "",
"note": "入库成功!",
"noticeDate": "2022-05-11 09:24:04",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "7",
"channelName": "申报到海关预录入系统成功",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742272687",
"dDate": "",
"entryId": "",
"iEDate": "",
"note": "E20220000838691431直接申报成功",
"noticeDate": "2022-05-11 09:24:03",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "E",
"channelName": "海关退单/不受理",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742258243",
"dDate": "2022-05-11",
"entryId": "010120220000305638",
"iEDate": "",
"note": "退单,逻辑检查不通过:集中汇总征税报关单征免方式只能为照章或者特案或者随征免性质;",
"noticeDate": "2022-05-11 09:20:17",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "L",
"channelName": "海关入库成功",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742241615",
"dDate": "2022-05-11",
"entryId": "010120220000305638",
"iEDate": "",
"note": "入库成功!",
"noticeDate": "2022-05-11 09:15:08",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
},
{
"channel": "7",
"channelName": "申报到海关预录入系统成功",
"cusCiqNo": "E20220000838691431",
"cusRetSeqNo": "202200004742241379",
"dDate": "",
"entryId": "",
"iEDate": "",
"note": "E20220000838691431直接申报成功",
"noticeDate": "2022-05-11 09:15:07",
"spDecSeqNo": "E20220000838691431",
"updateTime": "",
"updateUser": ""
}
],
"relManNo": "",
"relativeId": "",
"rmbAmt": 191957,
"rn": 0,
"sbztDm": "N",
"sccj": "",
"sfqygts": "0",
"spDecSeqNo": "000000000747562757",
"specDeclFlag": "",
"status": "结关报关单新增数据,国税总局接收成功",
"supvModeCdde": "9900",
"supvModeCddeName": "其他",
"trafName": "",
"transMode": "1",
"transModeName": "CIF",
"usdAmt": 30081,
"vsaOrgCode": "",
"vsaOrgCodeName": "",
"wrapType": "",
"wrapTypeName": "其它"
}
]
}
最后修改时间: 10 个月前