tinywms.declarations.create
创建一个新的报关单
- 请求路由:
tinywms.declarations.create- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "tinywms.declarations.create",
"data" : {
"replaceMe" : "要创建的对象"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
declarationId | String | 否 | 报关单唯一ID,主键 |
entrustNo | String | 否 | 委托单号 |
targetWarehouse | Object | 否 | 目标仓库 |
targetWarehouse.unitId | String | 否 | 往来单位id |
targetWarehouse.country | String | 否 | 国家 |
targetWarehouse.unitName | String | 否 | 往来单位名称(中文) |
targetWarehouse.unitNameEn | String | 否 | 往来单位名称(英文) |
targetWarehouse.unitAbbreviation | String | 否 | 往来单位缩写 |
targetWarehouse.unitAddress | String | 否 | 往来单位地址(中文) |
targetWarehouse.unitAddressEn | String | 否 | 往来单位地址(英文) |
targetWarehouse.contactPerson | Object | 否 | 联系人信息 |
targetWarehouse.contactPerson.username | String | 否 | 用户标识 |
targetWarehouse.contactPerson.name | String | 否 | 用户名称 |
targetWarehouse.contactPerson.mobile | String | 否 | 用户手机号 |
targetWarehouse.extraProps | Object | 否 | 扩展信息 |
type | String | 否 | 报关类型:入口或出口 |
contract | Object | 否 | 合同信息 |
contract.seller | Object | 否 | 卖方 |
contract.seller.name | String | 否 | 名称(英文) |
contract.seller.address | String | 否 | 地址(英文) |
contract.seller.tel | String | 否 | 电话 |
contract.seller.fax | String | 否 | 传真 |
contract.seller.contactPerson | String | 否 | 联系人 |
contract.seller.tax | String | 否 | 税号 |
contract.buyer | Object | 否 | 买方 |
contract.buyer.name | String | 否 | 名称(英文) |
contract.buyer.address | String | 否 | 地址(英文) |
contract.buyer.tel | String | 否 | 电话 |
contract.buyer.fax | String | 否 | 传真 |
contract.buyer.contactPerson | String | 否 | 联系人 |
contract.buyer.tax | String | 否 | 税号 |
contract.contractNo | String | 否 | 合同号 |
contract.contractData | String | 否 | 合同日期 |
contract.signAt | String | 否 | 签约地点 |
contract.tradeTerm | String | 否 | 贸易条款 |
contract.timeOfShipment | String | 否 | 装货时间(yyyy-MM-dd) |
contract.loadingPortDestination | String | 否 | 装货港到目的地描述 |
contract.termsOfPayment | String | 否 | 付款条款 |
contract.shippingMarks | String | 否 | 唛头 所有packingList唛头去重后拼接而成 |
contract.theBuyer | Object | 否 | 目的地买方 |
contract.theBuyer.name | String | 否 | 名称(英文) |
contract.theBuyer.address | String | 否 | 地址(英文) |
contract.theBuyer.tel | String | 否 | 电话 |
contract.theBuyer.fax | String | 否 | 传真 |
contract.theBuyer.contactPerson | String | 否 | 联系人 |
contract.theBuyer.tax | String | 否 | 税号 |
contract.theSeller | Object | 否 | 目的地卖方 |
contract.theSeller.name | String | 否 | 名称(英文) |
contract.theSeller.address | String | 否 | 地址(英文) |
contract.theSeller.tel | String | 否 | 电话 |
contract.theSeller.fax | String | 否 | 传真 |
contract.theSeller.contactPerson | String | 否 | 联系人 |
contract.theSeller.tax | String | 否 | 税号 |
invoice | Object | 否 | 发票信息 |
invoice.shipperExporter | String | 否 | 卖方信息(注意换行) 卖方名称英文 卖方英文地址 卖方联系人 卖方税号 |
invoice.invoiceNo | String | 否 | 发票号 |
invoice.invoiceData | String | 否 | 发票日期 |
invoice.deliveryTerm | String | 否 | 交货条款 |
invoice.consigneeImporter | String | 否 | 买方信息(注意换行) 买方名称英文 买方英文地址 |
invoice.notifyParty | String | 否 | 和收货人相同 |
invoice.portOfDeparture | String | 否 | 出发港 |
invoice.portOfDestination | String | 否 | 目的港 |
invoice.packingAndShippingMarks | String | 否 | 包装唛头 所有packingList唛头去重后拼接而成 |
packingList | Object[] | 否 | 装箱清单列表 |
packingList.[].containerNo | String | 否 | 集装箱号 |
packingList.[].sealNo | String | 否 | 封签号 |
packingList.[].model | String | 否 | 型号(SKU) |
packingList.[].productName | String | 否 | 商品名 |
packingList.[].productNameEn | String | 否 | 商品英文名 |
packingList.[].carton | Number | 否 | 箱数 |
packingList.[].unit | String | 否 | 单位 |
packingList.[].netWeight | Number | 否 | 净重(kg) |
packingList.[].unitNetWeight | Number | 否 | 单箱净重(kg) |
packingList.[].grossWeight | Number | 否 | 毛重(kg) |
packingList.[].unitGrossWeight | Number | 否 | 单箱毛重(kg) |
packingList.[].packageSize | String | 否 | 包装尺寸(mm) |
packingList.[].cbm | Number | 否 | 体积(包装尺寸换算后立方米 * 箱数) |
packingList.[].importPriceRmb | Number | 否 | 进口单价(人民币) |
packingList.[].exportPriceRmb | Number | 否 | 出口单价(人民币) |
packingList.[].importPriceUsd | Number | 否 | 进口单价(美元) |
packingList.[].exportPriceUsd | Number | 否 | 出口单价(美元) |
packingList.[].spec | String | 否 | 规格(字典值) |
packingList.[].boxCapacity | Number | 否 | 每箱数量 |
packingList.[].shippingMark | String | 否 | 唛头/箱唛标识 |
packingList.[].tareWeightKGS | Number | 否 | 柜重(公斤) |
modifiedFields | String[] | 否 | 修改过的字段列表 |
legalEntityId | String | 否 | 法人主体id |
customerId | String | 否 | 客户id |
extraProps | Object | 否 | 扩展属性 |
crBy | String | 否 | 创建者 |
upBy | String | 否 | 最后修改者 |
crDate | String | 否 | 创建时间 |
upDate | String | 否 | 最后修改时间 |
tenantId | String | 否 | 租户ID |
id | Varies | 否 |
返回
创建成功后的对象
{ }
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
declarationId | String | 报关单唯一ID,主键 |
entrustNo | String | 委托单号 |
targetWarehouse | Object | 目标仓库 |
targetWarehouse.unitId | String | 往来单位id |
targetWarehouse.country | String | 国家 |
targetWarehouse.unitName | String | 往来单位名称(中文) |
targetWarehouse.unitNameEn | String | 往来单位名称(英文) |
targetWarehouse.unitAbbreviation | String | 往来单位缩写 |
targetWarehouse.unitAddress | String | 往来单位地址(中文) |
targetWarehouse.unitAddressEn | String | 往来单位地址(英文) |
targetWarehouse.contactPerson | Object | 联系人信息 |
targetWarehouse.contactPerson.username | String | 用户标识 |
targetWarehouse.contactPerson.name | String | 用户名称 |
targetWarehouse.contactPerson.mobile | String | 用户手机号 |
targetWarehouse.extraProps | Object | 扩展信息 |
type | String | 报关类型:入口或出口 |
contract | Object | 合同信息 |
contract.seller | Object | 卖方 |
contract.seller.name | String | 名称(英文) |
contract.seller.address | String | 地址(英文) |
contract.seller.tel | String | 电话 |
contract.seller.fax | String | 传真 |
contract.seller.contactPerson | String | 联系人 |
contract.seller.tax | String | 税号 |
contract.buyer | Object | 买方 |
contract.buyer.name | String | 名称(英文) |
contract.buyer.address | String | 地址(英文) |
contract.buyer.tel | String | 电话 |
contract.buyer.fax | String | 传真 |
contract.buyer.contactPerson | String | 联系人 |
contract.buyer.tax | String | 税号 |
contract.contractNo | String | 合同号 |
contract.contractData | String | 合同日期 |
contract.signAt | String | 签约地点 |
contract.tradeTerm | String | 贸易条款 |
contract.timeOfShipment | String | 装货时间(yyyy-MM-dd) |
contract.loadingPortDestination | String | 装货港到目的地描述 |
contract.termsOfPayment | String | 付款条款 |
contract.shippingMarks | String | 唛头 所有packingList唛头去重后拼接而成 |
contract.theBuyer | Object | 目的地买方 |
contract.theBuyer.name | String | 名称(英文) |
contract.theBuyer.address | String | 地址(英文) |
contract.theBuyer.tel | String | 电话 |
contract.theBuyer.fax | String | 传真 |
contract.theBuyer.contactPerson | String | 联系人 |
contract.theBuyer.tax | String | 税号 |
contract.theSeller | Object | 目的地卖方 |
contract.theSeller.name | String | 名称(英文) |
contract.theSeller.address | String | 地址(英文) |
contract.theSeller.tel | String | 电话 |
contract.theSeller.fax | String | 传真 |
contract.theSeller.contactPerson | String | 联系人 |
contract.theSeller.tax | String | 税号 |
invoice | Object | 发票信息 |
invoice.shipperExporter | String | 卖方信息(注意换行) 卖方名称英文 卖方英文地址 卖方联系人 卖方税号 |
invoice.invoiceNo | String | 发票号 |
invoice.invoiceData | String | 发票日期 |
invoice.deliveryTerm | String | 交货条款 |
invoice.consigneeImporter | String | 买方信息(注意换行) 买方名称英文 买方英文地址 |
invoice.notifyParty | String | 和收货人相同 |
invoice.portOfDeparture | String | 出发港 |
invoice.portOfDestination | String | 目的港 |
invoice.packingAndShippingMarks | String | 包装唛头 所有packingList唛头去重后拼接而成 |
productInfo | Object[] | 产品信息列表 |
productInfo.[].productNo | String | SKU |
productInfo.[].productNameEn | String | 商品英文名 |
productInfo.[].productName | String | 商品名 |
productInfo.[].spec | String | 规格 |
productInfo.[].unit | String | 单位 |
productInfo.[].boxCapacity | Number | 每箱数量 |
productInfo.[].unitPrice | Number | 单价(USD) |
packingList | Object[] | 装箱清单列表 |
packingList.[].containerNo | String | 集装箱号 |
packingList.[].sealNo | String | 封签号 |
packingList.[].model | String | 型号(SKU) |
packingList.[].productName | String | 商品名 |
packingList.[].productNameEn | String | 商品英文名 |
packingList.[].carton | Number | 箱数 |
packingList.[].unit | String | 单位 |
packingList.[].netWeight | Number | 净重(kg) |
packingList.[].unitNetWeight | Number | 单箱净重(kg) |
packingList.[].grossWeight | Number | 毛重(kg) |
packingList.[].unitGrossWeight | Number | 单箱毛重(kg) |
packingList.[].packageSize | String | 包装尺寸(mm) |
packingList.[].cbm | Number | 体积(包装尺寸换算后立方米 * 箱数) |
packingList.[].importPriceRmb | Number | 进口单价(人民币) |
packingList.[].exportPriceRmb | Number | 出口单价(人民币) |
packingList.[].importPriceUsd | Number | 进口单价(美元) |
packingList.[].exportPriceUsd | Number | 出口单价(美元) |
packingList.[].spec | String | 规格(字典值) |
packingList.[].boxCapacity | Number | 每箱数量 |
packingList.[].shippingMark | String | 唛头/箱唛标识 |
packingList.[].tareWeightKGS | Number | 柜重(公斤) |
modifiedFields | String[] | 修改过的字段列表 |
legalEntityId | String | 法人主体id |
customerId | String | 客户id |
extraProps | Object | 扩展属性 |
crBy | String | 创建者 |
upBy | String | 最后修改者 |
crDate | String | 创建时间 |
upDate | String | 最后修改时间 |
tenantId | String | 租户ID |
id | Varies |