提交物品信息
提交订单内的物品信息。
请求
POST /boss/order/addGoods
请求体
参数 |
类型 |
是否必须 |
描述 |
orderId |
string |
是 |
订单ID |
consignee |
string |
是 |
收货人姓名 |
consigneePhone |
string |
是 |
收货人电话 |
consigneeAddress |
string |
是 |
收货人地址 |
belong |
string |
是 |
物品归属信息 |
goods |
array |
是 |
物品信息列表 |
goods.orderId |
string |
是 |
订单ID |
goods.storeId |
string |
是 |
所在仓库ID |
goods.storeName |
string |
是 |
所在仓库名称 |
goods.serialNo |
string |
否 |
序列号 |
goods.feeTypeCodeName |
string |
是 |
费用类型名称 |
goods.resourceSubTypeId |
string |
是 |
资源小类ID |
goods.resourceKindName |
string |
是 |
小类名称 |
goods.resourceSkuName |
string |
是 |
型号名称 |
goods.pricePlanName |
string |
是 |
价格计划名称 |
goods.priceId |
string |
是 |
价格ID |
goods.brandCode |
string |
是 |
品牌 |
goods.resourceKindId |
string |
是 |
资源小类ID |
goods.feeTypeCode |
string |
是 |
费用类型 |
goods.guidePrice |
number |
是 |
指导价 |
goods.resourceSkuId |
string |
是 |
型号ID |
goods.offerId |
string |
是 |
物品ID |
goods.resourceGroupId |
string |
是 |
资源组ID |
goods.resourceInstanceId |
string |
是 |
资源实例ID |
goods.pricePlanType |
string |
是 |
价格计划类型 |
goods.resourceSubTypeName |
string |
是 |
资源小类名称 |
goods.salePriceY |
string |
是 |
售价 |
goods.pricePlanId |
string |
是 |
价格计划ID |
goods.number |
integer |
是 |
物品数量 |
goods.price |
number |
是 |
单价 |
goods.totalPrice |
number |
否 |
总价 |
goods.useModelId |
string |
是 |
用途ID |
goods.useModelName |
string |
是 |
用途名称 |
示例
{
"orderId": "123456",
"consignee": "张三",
"consigneePhone": "13812345678",
"consigneeAddress": "北京市朝阳区",
"goods": [
{
"orderId": "123456",
"storeId": "001",
"storeName": "北京仓库",
"serialNo": "A123456",
"feeTypeCodeName": "运费",
"resourceSubTypeId": "001",
"resourceKindName": "电脑",
"resourceSkuName": "ThinkPad X1 Carbon",
"pricePlanName": "标准价格",
"priceId": "001",
"brandCode": "Lenovo",
"resourceKindId": "001",
"feeTypeCode": "001",
"guidePrice": 8999.00,
"resourceSkuId": "001",
"offerId": "001",
"resourceGroupId": "001",
"resourceInstanceId": "001",
"pricePlanType": "标准",
"resourceSubTypeName": "运输",
"salePriceY": "7999.00",
"pricePlanId": "001",
"number": 1,
"price": 7999.00,
"totalPrice": 7999.00,
"useModelId": "001",
"useModelName": "办公"
}
]
}
响应
成功
参数 |
类型 |
描述 |
code |
integer |
返回码,20000表示成功 |
data |
object |
返回数据,通常为空 |
失败
参数 |
类型 |
描述 |
code |
integer |
返回码,非20000表示失败 |
data |
object |
返回数据,通常为空 |
示例
{
"code": 20000,
"data": {}
}