跳到主要内容

tinywms.products.create

创建产品

  • 请求路由: tinywms.products.create
  • 交互模型: Request Response
  • 访问限制: 无

请求​

RSocket.rr({
"route" : "tinywms.products.create",
"data" : {
"skuNo" : "TH-1812-10",
"exportRoute" : "泛盈直接发泰国",
"productName" : "NAPKIN PAPER TH-1812-10\n茵自然餐巾用纸 TH-1812-10 四层",
"productCategory" : "NAPKIN",
"productSpec" : "180*120",
"productModel" : "TH-1812-10",
"exportPriceRmb" : 28.0,
"boxSize" : {
"length" : 400,
"width" : 300,
"height" : 250
},
"emptyBoxWeight" : 0.32,
"grossWeight" : 2.83,
"netPaperWeight" : 2.51,
"boxCapacity" : 10.0,
"boxVolume" : 0.032,
"specDetails" : {
"plyCount" : "4"
},
"shippingMark" : "PANDA,&ELE,"
}
});

请求参数​

名称类型必须说明
productIdString否产品id
skuNoString是SKU
productNameString是商品名称
productNameEnString否商品名称(英文)
productCategoryString否产品类别
productSpecString否产品规格
productModelString是产品型号
exportRouteString否报关出口路径
importPriceRmbNumber否进口单价(人民币)
exportPriceRmbNumber否出口单价(人民币)
boxSizeObject否外箱尺寸(毫米)
boxSize.lengthNumber否长
boxSize.widthNumber否宽
boxSize.heightNumber否高
emptyBoxWeightNumber否空箱重量(公斤)
grossWeightNumber否满箱重量(公斤)
netPaperWeightNumber否纸巾净重(公斤)
boxCapacityNumber否每箱数量
boxVolumeNumber否箱体容积(立方米)
specDetailsObject否特定规格
shippingMarkString否唛头/箱唛标识
targetWarehouseObject否目标仓库
targetWarehouse.unitIdString否往来单位id
targetWarehouse.countryString否国家
targetWarehouse.unitNameString否往来单位名称(中文)
targetWarehouse.unitNameEnString否往来单位名称(英文)
targetWarehouse.unitAbbreviationString否往来单位缩写
targetWarehouse.unitAddressString否往来单位地址(中文)
targetWarehouse.unitAddressEnString否往来单位地址(英文)
targetWarehouse.contactPersonObject否联系人信息
targetWarehouse.contactPerson.usernameString否用户标识
targetWarehouse.contactPerson.nameString否用户名称
targetWarehouse.contactPerson.mobileString否用户手机号
targetWarehouse.extraPropsObject否扩展信息
legalEntityIdString否法人主体id
customerIdString否客户id
extraPropsObject否扩展属性
crByString否创建者
upByString否最后修改者
crDateString否创建时间
upDateString否最后修改时间
tenantIdString否租户ID
idVaries否

返回​

创建成功的产品信息

{
"skuNo" : "TH-1812-10",
"exportRoute" : "泛盈直接发泰国",
"productName" : "NAPKIN PAPER TH-1812-10\n茵自然餐巾用纸 TH-1812-10 四层",
"productCategory" : "NAPKIN",
"productSpec" : "180*120",
"productModel" : "TH-1812-10",
"exportPriceRmb" : 28.0,
"boxSize" : {
"length" : 400,
"width" : 300,
"height" : 250
},
"emptyBoxWeight" : 0.32,
"grossWeight" : 2.83,
"netPaperWeight" : 2.51,
"boxCapacity" : 10.0,
"boxVolume" : 0.032,
"specDetails" : {
"plyCount" : "4"
},
"shippingMark" : "PANDA,&ELE,"
}

返回属性​

名称类型说明
productIdString产品id
skuNoStringSKU
productNameString商品名称
productNameEnString商品名称(英文)
productCategoryString产品类别
productSpecString产品规格
productModelString产品型号
exportRouteString报关出口路径
importPriceRmbNumber进口单价(人民币)
exportPriceRmbNumber出口单价(人民币)
boxSizeObject外箱尺寸(毫米)
boxSize.lengthNumber长
boxSize.widthNumber宽
boxSize.heightNumber高
emptyBoxWeightNumber空箱重量(公斤)
grossWeightNumber满箱重量(公斤)
netPaperWeightNumber纸巾净重(公斤)
boxCapacityNumber每箱数量
boxVolumeNumber箱体容积(立方米)
specDetailsObject特定规格
shippingMarkString唛头/箱唛标识
targetWarehouseObject目标仓库
targetWarehouse.unitIdString往来单位id
targetWarehouse.countryString国家
targetWarehouse.unitNameString往来单位名称(中文)
targetWarehouse.unitNameEnString往来单位名称(英文)
targetWarehouse.unitAbbreviationString往来单位缩写
targetWarehouse.unitAddressString往来单位地址(中文)
targetWarehouse.unitAddressEnString往来单位地址(英文)
targetWarehouse.contactPersonObject联系人信息
targetWarehouse.contactPerson.usernameString用户标识
targetWarehouse.contactPerson.nameString用户名称
targetWarehouse.contactPerson.mobileString用户手机号
targetWarehouse.extraPropsObject扩展信息
legalEntityIdString法人主体id
customerIdString客户id
extraPropsObject扩展属性
crByString创建者
upByString最后修改者
crDateString创建时间
upDateString最后修改时间
tenantIdString租户ID
idVaries

下载结果模型定义