公路舱单 (交易接口)


创建

请求

  • 接口路径:v1/rmft
  • 请求方法:POST
  • 请求头内容:
    • Content-Type: application/json
  • 请求Body内容
{
  "requestId": "1",
  "manifestType": "MT1401",
  "data": {
    "manifest": {
      "consignmentList": [
        {
          "billNo": "提单号"
        }
      ]
    }
  }
}
属性 类型 是否必填 说明
requestId String 非必填 请求ID: 确保幂等性,相同请求重发请用同一个请求ID 。空值代表不使用幂等
manifestType String 必填 业务类型: 看下文描述
region String 非必填 申报通道
data RmftData 必填 公路舱单表单,请查看公路舱单数据模型
  • 业务类型:
    • MT1401 - 原始舱单
    • MT2401 - 预配舱单

响应

  • HTTP状态: 200 代表调用成功

  • 响应正文:

{
  "success": true,
  "message": null,
  "result": {
    "rmftId": "公路舱单id",
    "cargoBatchNo": "货物批次号"
  },
  "error": null
}

属性 类型 说明
success Boolean 创建是否成功 true成功 false 失败
message String 创建失败返回错误消息
result Object 返回数据
error String 错误代码

result结构

属性 类型 说明
rmftId String 公路舱单id
cargoBatchNo String 货物批次号

申报/撤销申报

请求

  • 接口路径:v1/rmft/declare
  • 请求方法:POST
  • 请求头内容:
    • Content-Type: application/json
  • 请求Body内容
{
  "requestId": "1",
  "rmftId": "公路舱单id",
  "billNoStr": "T1234,T9876",
  // 提单号 多个用英文逗号隔开
  "functionCode": "9"
  // 功能码 9-申报  3-撤销申报
}
属性 类型 是否必填 说明
requestId String 非必填 请求ID: 确保幂等性,相同请求重发请用同一个请求ID 。空值代表不使用幂等
rmftId String 必填 公路舱单id
billNoStr String 必填 提运单号 多个用英文逗号隔开
functionCode String 必填 功能码 9-申报 3-撤销申报

响应

  • HTTP状态: 200 代表调用成功

  • 响应正文:

{
  "success": true,
  "message": null,
  "result": {
    "success": true,
    // 请求是否成功
    "message": null,
    // 失败信息
    "succeedTotal": 1,
    // 成功数量
    "failedTotal": 1,
    // 失败数量
    "billMessages": [
      // 失败的提单信息
      {
        "billNo": "T26031211382",
        "message": "该状态不允许申报。"
      }
    ]
  },
  "error": null
}
{
  "success": false,
  "message": "异常信息",
  "result": null,
  "error": null
}
属性 类型 说明
success Boolean 是否成功 true成功 false 失败
message String 异常返回错误消息
result Object 具体申报结果
error String 错误代码

result的结构

属性 类型 说明
success Boolean 是否成功 true成功 false 失败
message String 失败返回错误消息
succeedTotal Number 成功数量
failedTotal Number 失败数量
billMessages Array 失败的提单信息
billNo String 失败的提单
message String 失败的原因

附:数据模型

公路舱单数据模型

{
  "manifest": {
    "iePort": "0105",
    "cargoBatchNo": null,
    "content": null,
    "plateLicenseNo": null,
    "agentCode": null,
    "transportType": "3",
    "carrierCode": null,
    "loadingPlace": null,
    "unloadingPlace": " 88888",
    "dataExchangeIdText": null,
    "loadingDate": 1773207641907,
    "arrivalDate": null,
    "agentName": null,
    "representativeCode": null,
    "representativePerson": "深圳徐测试网络科技有限公司",
    "customsMaster": "0100",
    "consignmentList": [
      {
        "consignmentIndex": 1,
        "billNo": "T26031211381",
        "changeReasonCode": null,
        "reason": null,
        "contact": null,
        "phone": null,
        "conditionCode": null,
        "freightPaymentMethods": null,
        "cargoClearanceCode": "RD01",
        "transitDestination": null,
        "totalPackageQuantity": 10,
        "packingType": "BA",
        "grossVolumeMeasure": null,
        "totalGrossMeasure": 100,
        "cargoValue": 100,
        "amountType": null,
        "deconsolidator": null,
        "consigneeCode": null,
        "consigneeName": null,
        "consigneePhone": null,
        "consignorCode": null,
        "consignorName": null,
        "consignorPhone": null,
        "notifyCode": null,
        "notifyName": null,
        "notifyPhone": null,
        "dangercontactName": null,
        "dangercontactPhone": null,
        "consignmentCargoList": [],
        "consignmentContainerList": [],
        "consignmentCountryList": []
      }
    ]
  },
  "manifestType": "MT1401"
}

字段说明

RmftData 根节点字段

参数名称 参数含义 数据类型 参数说明 (或示例) 必填
manifest 舱单数据 Manifest 舱单详细信息,包含表头和提单列表
manifestType 舱单类型 String MT1401-原始舱单;MT2401-预配舱单

Manifest 表头字段

参数名称 参数含义 数据类型 参数说明 (或示例) 必填
iePort 进出境口岸海关代码 String 5352
cargoBatchNo 货物运输批次号 String 为空系统生成
content 备注 String
plateLicenseNo 车牌 String
agentCode 运输工具代理企业代码 String
transportType 运输方式代码 String 3
carrierCode 承运人代码 String
loadingPlace 装货地代码 String 5352
unloadingPlace 卸货地代码 String
dataExchangeIdText 中蒙数据交换项 String
loadingDate 货物装载时间 Date 货物装船/装车的日期时间戳
arrivalDate 到达卸货地日期 Date
agentName 申报单位名称 String
representativeCode 舱单传输人代码 String
representativePerson 舱单传输人名称 String 舱单传输人姓名
customsMaster 备案关区 String 5000
consignmentList 提单列表 List 包含一个或多个提单信息

ManifestConsignment 提单字段

参数名称 参数含义 数据类型 参数说明 (或示例) 必填
consignmentIndex 提单序号 Integer 提单在列表中的顺序号(如:1, 2)
billNo 提单号 String 提运单号(如:T26031211381)
changeReasonCode 变更原因代码 String 变更时的原因代码
reason 原因说明 String 变更原因的文字说明
contact 联系人 String 业务联系人姓名
phone 联系电话 String 联系人电话
conditionCode 运输条款 String 运输条款代码(10)
freightPaymentMethods 运费支付方式 String 运费支付方式代码
cargoClearanceCode 海关货物通关代码 String 货物清关代码(如:RD01)
transitDestination 跨境指运地 String 跨境指运地
totalPackageQuantity 件数 Integer 货物总件数(如:10)
packingType 包装种类 String 包装种类代码(如:BA)
grossVolumeMeasure 总体积 BigDecimal 货物总体积
totalGrossMeasure 总毛重 BigDecimal 货物总毛重(KG)
cargoValue 货物价值 BigDecimal 货物金额
amountType 金额类型 String 币种代码
deconsolidator 拆箱人 String 负责拆箱的人员/企业
consigneeCode 收货人代码 String 收货人的海关编码
consigneeName 收货人名称 String 收货人企业全称
consigneePhone 收货人电话 String 收货人联系电话
consigneeComminicateType 收货人通讯方式类别代码 String
consigneePhone 收货人通讯号码 String 收货人通讯号码
consigneeContactName 收货具体联系人名称 String
consigneeContactCt 收货具体联系人通讯方式类别代码 String
consigneeContactPhone 收货具体联系人通讯号码 String
consignorCode 发货人代码 String 发货人的海关编码
consignorName 发货人名称 String 发货人企业全称
consignorPhone 发货人电话 String 发货人联系电话
consignorComminicateType 发货人通讯方式类别代码 String
consignorPhone 发货人通讯号码 String
notifyCode 通知方代码 String 通知方的海关编码
notifyName 通知方名称 String 通知方企业全称
notifyPhone 通知方电话 String 通知方联系电话
notifyEmail 通知人地址(街道,邮箱) String
notifyComminicateType 通知人通讯方式类别代码 String
notifyPhone 通知人通讯号码 String
dangercontactName 危险品联系人姓名 String 危险品业务联系人
dangercontactPhone 危险品联系人电话 String 危险品业务联系电话
consignmentCargoList 商品项信息 List 该提单项下的货物明细列表
consignmentContainerList 集装箱列表 List 该提单项下的集装箱信息
consignmentCountryList 途经国家列表 List 货物运输途经的国家

ManifestConsignmentCountry 途径国家列表信息

参数名称 描述 数据类型 参数说明 (或示例) 必填
countryKey 国家key String 国家地区两位编码(AE)
countryCode 国家代码 String 英文CODE(UNITED ARAB EMIRATES)

ManifestConsignmentCargo 商品项信息

参数名称 描述 数据类型 参数说明 (或示例) 必填
cargoIndex 序号 Integer 商品在列表中的顺序号(如:1, 2)
billNo 提运单号 String
quantity 商品项件数 Integer 商品项件数
cargoPackingType 包装种类 String 包装种类
grossMeasure 商品项毛重 BigDecimal 商品项毛重(KG)
cargoBriefDesc 商品项简要描述 String 商品项简要描述

ManifestConsignmentContainer 集装箱信息

参数名称 描述 数据类型 参数说明 (或示例) 必填
containerIndex 序号 Integer 集装箱在列表中的顺序号(如:1, 2)
containerNo 集装箱号 String XXXX1234567
containerSize 尺寸和类型 String 20P5
containerSources 来源代码 String AA
ewIdentification 重箱或空箱标识 String 4