轻易云
注册体验

领星ERP报关资料批量详情查询接口

所属平台
领星ERP
类型
WebAPI
作用
QUERY
接口版本
1.0
适配器
\Adapter\LingXing\LXQueryAdapter
授权方式
OTHER
描述
物流 · POST · 请求参数 2 个(必填 2) · 响应参数 153 个 · 限流令牌桶容量 1
更新日期
2026-11-21

报关资料批量详情查询

POST/supplyShipmentBasic/openApi/customsDeclaration/batchDetail
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/supplyShipmentBasic/openApi/customsDeclaration/batchDetail"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 1,
    "text": ""
  },
  "requestExample": "curl --location 'https://openapi.lingxing.com/supplyShipmentBasic/openApi/customsDeclaration/batchDetail?access_token=value&timestamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"declarationNos\": [\n        \"CD20260417001\"\n    ]\n}'",
  "responseExample": {
    "success": true,
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "3EBFDAD7CC8A4B2798CD8F389419498C",
    "response_time": "2026-04-22 15:35:23",
    "total": 1,
    "data": [
      {
        "declarationNo": "CD20260417001",
        "referenceNos": [
          "OWS260413002"
        ],
        "referenceType": 2,
        "shipmentNo": [],
        "shipperInfo": {
          "companyName": "领星科技有限公司",
          "socialCreditCode": null
        },
        "consigneeInfo": {
          "companyName": "505050"
        },
        "attachments": [],
        "declarationForm": {
          "unifiedNo": null,
          "preEntryNo": null,
          "customsNo": null,
          "serviceNo": null,
          "declaringCustoms": "0000",
          "exitCustoms": null,
          "exportDate": null,
          "declareDate": null,
          "recordNo": null,
          "transportMode": null,
          "transportName": null,
          "voyageNumber": null,
          "billOfLadingNo": null,
          "producerSalesUnit": "领星科技有限公司",
          "supervisionMode": "9710",
          "taxExemptionNature": "101",
          "licenseNo": null,
          "contractNo": null,
          "tradeCountry": "GBR",
          "destinationCountry": "英国",
          "destinationPort": null,
          "departurePort": null,
          "packageType": "22",
          "packageCount": 2,
          "grossWeight": "20",
          "netWeight": "216.24",
          "goodsTotalNetWeight": "216.24",
          "tradeMode": "1",
          "freightCurrency": "USD",
          "freightAmount": null,
          "freightFlag": "3",
          "insuranceCurrency": "USD",
          "insuranceAmount": null,
          "insuranceFlag": "3",
          "otherFeeCurrency": "USD",
          "otherFeeAmount": null,
          "otherFeeFlag": "3",
          "attachedDocuments": null,
          "shippingMark": null,
          "remark": null,
          "specialRelationConfirm": null,
          "priceInfluenceConfirm": null,
          "royaltyPaymentConfirm": null,
          "formulaPricingConfirm": null,
          "provisionalPriceConfirm": null,
          "selfDeclarationTaxPayment": null,
          "waterwayTransit": null
        },
        "orderInfo": {
          "orderNo": null,
          "platform": null,
          "goodsAmount": "67.65",
          "freight": "0",
          "currency": "CNY"
        },
        "products": [
          {
            "productId": "2044817235691094018",
            "itemNo": 1,
            "productCode": "8422200000",
            "productName": "款名2006-1",
            "productTitle": "组合品的单品1",
            "specification": "222",
            "customsNameCn": "组合品的单品1",
            "customsNameEn": "fd",
            "materialCn": "订单",
            "materialEn": "dfv发的",
            "useCn": "发的",
            "useEn": "梵蒂冈",
            "model": "订单",
            "brandType": "3",
            "exportPreferential": "1",
            "internalCode": "官方的不过v",
            "specialAttribute": [
              "2",
              "7"
            ],
            "identificationCode": "888888",
            "category": "xhp\\男鞋\\篮球鞋",
            "brand": "ANT",
            "firstLegalQuantity": "18",
            "firstLegalUnit": "007",
            "secondLegalQuantity": "216",
            "secondLegalUnit": "千克",
            "transactionQuantity": "18",
            "transactionUnit": "007",
            "price": "8.99",
            "batchNo": null,
            "totalPrice": "161.82",
            "currency": "AUD",
            "originCountry": null,
            "destinationCountry": "英国",
            "domesticSource": "11029",
            "taxExemption": "E",
            "sku": "spu2006-3",
            "spu": "spu2006",
            "msku": null,
            "fnsku": null,
            "listingPrice": null,
            "listingCurrency": null,
            "purchaseNo": null,
            "shipmentNo": [],
            "quarantineCode": null,
            "productLength": "16.33",
            "productWidth": "95.66",
            "productHeight": "15.34"
          },
          {
            "productId": "2044817235724648450",
            "itemNo": 2,
            "productCode": "78*&&",
            "productName": "AT-WP-SKU00013",
            "productTitle": "八八2",
            "specification": "ddff1",
            "customsNameCn": "八八2",
            "customsNameEn": "baba",
            "materialCn": "塑料",
            "materialEn": "suliao",
            "useCn": "解决问题",
            "useEn": "jjjjj",
            "model": "打火机¥",
            "brandType": "1",
            "exportPreferential": "2",
            "internalCode": "444444",
            "specialAttribute": [
              "1",
              "6"
            ],
            "identificationCode": "3345-0933",
            "category": "空格 111",
            "brand": "品牌4",
            "firstLegalQuantity": "12",
            "firstLegalUnit": "035",
            "secondLegalQuantity": "0.24",
            "secondLegalUnit": "千克",
            "transactionQuantity": "12",
            "transactionUnit": "035",
            "price": "58.66",
            "batchNo": null,
            "totalPrice": "703.92",
            "currency": "USD",
            "originCountry": "DEU",
            "destinationCountry": "英国",
            "domesticSource": "11039",
            "taxExemption": "6",
            "sku": "AT-WP-SKU00013",
            "spu": "spu2006",
            "msku": null,
            "fnsku": null,
            "listingPrice": null,
            "listingCurrency": null,
            "purchaseNo": null,
            "shipmentNo": [],
            "quarantineCode": null,
            "productLength": "10",
            "productWidth": "20",
            "productHeight": "31"
          }
        ],
        "cartons": [
          {
            "cartonNo": null,
            "boxRange": "1-2",
            "cartonCount": 2,
            "singleCartonGrossWeight": "10",
            "grossWeight": "20",
            "totalNetWeight": "216.24",
            "cartonLength": "15.99",
            "cartonWidth": "16.66",
            "cartonHeight": "74.89",
            "cbm": "0.0399",
            "products": [
              {
                "productId": "2044817235691094018",
                "batchNo": null,
                "productCode": "8422200000",
                "productName": "款名2006-1",
                "productTitle": "组合品的单品1",
                "msku": null,
                "fnsku": null,
                "sku": "spu2006-3",
                "quantityPerCarton": 9,
                "netWeightPerItem": "12",
                "totalQuantity": 18,
                "productTotalNetWeight": "216",
                "unit": "007"
              },
              {
                "productId": "2044817235724648450",
                "batchNo": null,
                "productCode": "78*&&",
                "productName": "AT-WP-SKU00013",
                "productTitle": "八八2",
                "msku": null,
                "fnsku": null,
                "sku": "AT-WP-SKU00013",
                "quantityPerCarton": 6,
                "netWeightPerItem": "0.02",
                "totalQuantity": 12,
                "productTotalNetWeight": "0.24",
                "unit": "035"
              }
            ]
          }
        ]
      }
    ]
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1declarationNos报关资料编号列表array<object>—必填报关资料编号列表,单次最多50个
1.1item报关资料编号string—必填报关资料编号

接口响应参数

序号字段名称类型默认值必填描述
1code状态码number0可选状态码,0表示成功
2message提示信息stringsuccess可选提示信息
3error_details错误详情列表array<object>[]可选错误详情列表
3.1item错误详情string—可选错误详情
4request_id请求链路IDstringD249661DE71EDD03A98BE06987F71D80可选请求链路ID
5response_time响应时间string2026-04-21 15:46:46可选响应时间
6total数据总数number1可选数据总数
7data响应数据array<object>—可选响应数据
7.1declarationNo报关资料编号stringCD20260415002必填报关资料编号
7.2referenceNos关联单号array<object>["SP260410001","SP260409005","SP260409004"]必填关联单号
7.2.1item关联单号stringSP260410001必填关联单号
7.3referenceType关联单号类型number1必填关联单号类型,1:发货单,2:备货单
7.4shipmentNo货件号/三方入库单号array<object>["FBA1700DJSRL","FBA16SY8SFH1","FBA16SY8616B"]可选货件号/三方入库单号
7.4.1item货件号/三方入库单号stringFBA1700DJSRL可选货件号/三方入库单号
7.5shipperInfo境内发货人信息object—必填境内发货人信息
7.5.1companyName境内发货人公司名string领星科技有限公司可选境内发货人公司名
7.5.2socialCreditCode社会信用代码string—可选社会信用代码
7.6consigneeInfo境外收货人信息object—必填境外收货人信息
7.6.1companyName境外收货人公司名string505050可选境外收货人公司名
7.7attachments附件array<object>—可选附件
7.7.1fileName文件名string901184306044203008_2036740114264981506_1776218057363.xlsx可选文件名
7.7.2fileUrl文件URLstring—可选文件URL
7.7.3fileType文件类型string—可选文件类型
7.8declarationForm报关单object—可选报关单
7.8.1unifiedNo统一编号string—可选统一编号
7.8.2preEntryNo预录入编号string预录入编号可选预录入编号
7.8.3customsNo海关编号string海关编号可选海关编号
7.8.4serviceNo服务商编号string—可选服务商编号
7.8.5declaringCustoms申报地海关string0000可选申报地海关,海关通关参数:海关关区
7.8.6exitCustoms出境关别string0000可选出境关别,海关通关参数:海关关区
7.8.7exportDate出口日期string2026-04-14可选出口日期
7.8.8declareDate申报日期string2026-04-15可选申报日期
7.8.9recordNo备案号string备案号可选备案号
7.8.10transportMode运输方式string2可选运输方式,2:水路运输,3:铁路运输,4:公路运输,5:航空运输,6:邮件运输,7:旅客携带,9:其他运输
7.8.11transportName运输工具名称string船可选运输工具名称
7.8.12voyageNumber航次号string船 航次号可选航次号
7.8.13billOfLadingNo提运单号string提运单号可选提运单号
7.8.14producerSalesUnit生产销售单位string领星科技有限公司可选生产销售单位
7.8.15supervisionMode监管方式string9710可选监管方式,海关通关参数:监管方式
7.8.16taxExemptionNature征免性质string101可选征免性质,海关通关参数:征免性质
7.8.17licenseNo许可证号string许可证号可选许可证号
7.8.18contractNo合同协议号string合同协议号可选合同协议号
7.8.19tradeCountry贸易国stringUSA可选贸易国,海关通关参数:国别(地区)(对应原报关、报检)
7.8.20destinationCountry运抵国string美国可选运抵国
7.8.21destinationPort指运港string991101可选指运港,海关通关参数:港口(对应原报关、报检)
7.8.22departurePort离境口岸string110001可选离境口岸,海关通关参数:国内口岸
7.8.23packageType包装种类string22可选包装种类,海关通关参数:包装种类(对应原报关、报检),00:散装,01:裸装,04:球状罐类,06:包/袋,22:纸制或纤维板制盒/箱,23:木制或竹藤等植物性材料制盒/箱,29:其他材料制盒/箱,32:纸制或纤维板制桶,33:木制或竹藤等植物性材料制桶,39:其他材料制桶,41:中型散装容器,42:便携式罐体,43:可移动罐柜,92:再生木托,93:天然木托,97:其他木制包装,98:植物性铺垫材料,99:其他包装
7.8.24packageCount件数number62可选件数
7.8.25grossWeight毛重(千克)string142可选毛重(千克)
7.8.26netWeight净重(千克)string56041.1688可选净重(千克)
7.8.27goodsTotalNetWeight商品总净重(千克)string56041.1688可选商品总净重(千克)
7.8.28tradeMode成交方式string1可选成交方式,1:CIF,2:C&F,3:FOB,4:C&I,5:市场价,6:垫仓,7:EXW
7.8.29freightCurrency运费币种stringUSD可选运费币种,海关通关参数:币制
7.8.30freightAmount运费金额string12可选运费金额
7.8.31freightFlag运费标记string3可选运费标记,1:费率,2:单价,3:总价
7.8.32insuranceCurrency保费币种stringUSD可选保费币种,海关通关参数:币制
7.8.33insuranceAmount保费金额string12可选保费金额
7.8.34insuranceFlag保费标记string3可选保费标记,1:费率,2:单价,3:总价
7.8.35otherFeeCurrency杂费币种stringUSD可选杂费币种,海关通关参数:币制
7.8.36otherFeeAmount杂费金额string12可选杂费金额
7.8.37otherFeeFlag杂费标记string3可选杂费标记,1:费率,2:单价,3:总价
7.8.38attachedDocuments随附单证及编号string12可选随附单证及编号
7.8.39shippingMark标记唛码string23可选标记唛码
7.8.40remark备注string—可选备注
7.8.41specialRelationConfirm特殊关系确认stringY可选特殊关系确认,Y:是,N:否
7.8.42priceInfluenceConfirm价格影响确认stringN可选价格影响确认,Y:是,N:否
7.8.43royaltyPaymentConfirm支付特许权使用费确认stringY可选支付特许权使用费确认,Y:是,N:否
7.8.44formulaPricingConfirm公式定价确认stringN可选公式定价确认,Y:是,N:否
7.8.45provisionalPriceConfirm暂定价格确认stringY可选暂定价格确认,Y:是,N:否
7.8.46selfDeclarationTaxPayment自报自缴stringN可选自报自缴,Y:是,N:否
7.8.47waterwayTransit水运中转stringY可选水运中转,Y:是,N:否
7.9orderInfo订单信息object—可选订单信息
7.9.1orderNo订单/订仓单号stringFBA1700DJSRL/FBA16SY8SFH1/FBA16SY8616B可选订单/订仓单号
7.9.2platform电商平台string—可选电商平台
7.9.3goodsAmount商品金额string702.1994可选商品金额
7.9.4freight运杂费string12可选运杂费
7.9.5currency币制stringCNY可选币制,海关报关参数:币制
7.10products商品信息array<object>—必填商品信息
7.10.1productId商品idstring2044700226186326017必填商品id,与箱内商品关联
7.10.2itemNo项号number1可选项号
7.10.3productCode商品编号string1必填商品编号
7.10.4productName品名stringKT7—LA4可选品名
7.10.5productTitle商品名称string1可选商品名称
7.10.6specification规格型号string—可选规格型号
7.10.7customsNameCn中文报关名string—可选中文报关名
7.10.8customsNameEn英文报关名string—可选英文报关名
7.10.9materialCn中文材质string—可选中文材质
7.10.10materialEn英文材质string—可选英文材质
7.10.11useCn中文用途string—可选中文用途
7.10.12useEn英文用途string—可选英文用途
7.10.13model型号stringLA4可选型号
7.10.14brandType品牌类型string—可选品牌类型,0:无品牌,1:境内自主品牌,2:境内收购品牌,3:境外品牌(贴牌生产),4:境外品牌(其他)
7.10.15exportPreferential出口享惠情况string—可选出口享惠情况,0:不享惠,1:享惠,2:不确定享惠情况
7.10.16additionalDeclarationItems其他申报要素string—可选其他申报要素
7.10.17internalCode内部编码string—可选内部编码
7.10.18specialAttribute特殊属性array<object>—可选特殊属性
7.10.18.1item特殊属性string—可选特殊属性,0:普货,1:含电,2:纯电,3:液体,4:粉末,5:膏体,6:带磁,7:纺织品,8:木质
7.10.19identificationCode识别码string—可选识别码
7.10.20category分类stringxhp\男鞋\篮球鞋可选分类
7.10.21brand品牌stringANT可选品牌
7.10.22firstLegalQuantity第一法定数量string2必填第一法定数量
7.10.23firstLegalUnit第一法定单位string001必填第一法定单位,海关通关参数:计量单位
7.10.24secondLegalQuantity第二法定数量string0可选第二法定数量
7.10.25secondLegalUnit第二法定单位string千克可选第二法定单位
7.10.26transactionQuantity成交数量string2必填成交数量
7.10.27transactionUnit成交单位string001必填成交单位,海关通关参数:计量单位
7.10.28price单价string99.9必填单价
7.10.29batchNo批次号string2302103184-1可选批次号
7.10.30totalPrice总价string199.8可选总价
7.10.31currency币制stringCNY必填币制,海关通关参数:币制
7.10.32originCountry原产国(地区)string—可选原产国(地区),海关通关参数:国别(地区)(对应原报关、报检)
7.10.33destinationCountry最终目的国(地区)string美国可选最终目的国(地区)
7.10.34domesticSource境内货源地string11019必填境内货源地,海关通关参数:国内地区
7.10.35taxExemption征免string2必填征免,海关通关参数:征减免税方式,1:照章征税,2:折半征税,3:全免,4:特案,5:随征免性质,6:保证金,7:保函,8:折半补税,9:全额退税,A:不计征关税、增值税和消费税,B:不计征关税,C:不计征关税、增值税,D:不计征增值税和消费税,E:不计征增值税
7.10.36skuskustringSKUKT7LA4可选SKU
7.10.37spuspustringSPUPinkW可选SPU
7.10.38mskumskustringDEE-216可选MSKU
7.10.39fnskufnskustringB085M7NH7K可选FNSKU
7.10.40goodsItemNo商品货号string—可选商品货号,仅当监管方式为9710或9810时返回,其余情况为null
7.10.41listingPricelisting价格string0可选listing价格
7.10.42listingCurrencylisting币种stringCNY可选listing币种,海关通关参数:币制
7.10.43purchaseNo采购单号string—可选采购单号
7.10.44shipmentNo货件单号array<object>["FBA1700DJSRL"]可选货件单号
7.10.44.1item货件单号stringFBA1700DJSRL可选货件单号
7.10.45quarantineCode检疫附加码string—可选检疫附加码
7.10.46productLength产品长(cm)string0可选产品长(cm)
7.10.47productWidth产品宽(cm)string0可选产品宽(cm)
7.10.48productHeight产品高(cm)string0可选产品高(cm)
7.11cartons装箱信息array<object>—必填装箱信息
7.11.1cartonNo箱号stringFBA1700DJSRLU000001可选箱号
7.11.2boxRange箱号范围string1可选箱号范围
7.11.3cartonCount箱数number1可选箱数
7.11.4singleCartonGrossWeight单箱毛重(kg)string1可选单箱毛重(kg)
7.11.5grossWeight毛重(kg)string1可选毛重(kg)
7.11.6totalNetWeight总净重(kg)string0可选总净重(kg)
7.11.7cartonLength箱子长度(cm)string1可选箱子长度(cm)
7.11.8cartonWidth箱子宽度(cm)string2可选箱子宽度(cm)
7.11.9cartonHeight箱子高度(cm)string3可选箱子高度(cm)
7.11.10cbm单箱体积(CBM)string0.000006可选单箱体积(CBM)
7.11.11products箱内商品array<object>—可选箱内商品
7.11.11.1productId商品idstring2044700226186326017必填商品id,与商品列表关联
7.11.11.2batchNo批次号string2302103184-1可选批次号
7.11.11.3productCode商品编号string1可选商品编号
7.11.11.4productName品名stringKT7—LA4可选品名
7.11.11.5productTitle商品名称string1可选商品名称
7.11.11.6mskumskustringDEE-216可选MSKU
7.11.11.7fnskufnskustringB085M7NH7K可选FNSKU
7.11.11.8skuskustringSKUKT7LA4可选SKU
7.11.11.9quantityPerCarton单箱数量number2可选单箱数量
7.11.11.10netWeightPerItem单品净重(kg)string0可选单品净重(kg)
7.11.11.11totalQuantity商品数量number2可选商品数量
7.11.11.12productTotalNetWeight商品总净重(kg)string0可选商品总净重(kg)
7.11.11.13unit单位string001可选单位,海关通关参数:计量单位

领星ERP的接口:报关资料批量详情查询(/supplyShipmentBasic/openApi/customsDeclaration/batchDetail),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。