新增商品订单

POST /api/tcc-open-platform/open-api/trade/add/product/order
消耗
  • application/json
生成
  • */*
参数
类型 名称 说明 类型
Body dto
必填
dto [订单数据迁移表单]
订单数据迁移表单
名称 说明 类型
cancelTime
可选
订单取消时间 string (date-time)
createBy
可选
创建人
样例 : "张三"
string
createTime
可选
创建时间(下单时间) string (date-time)
orderCode
可选
订单编号 string
orgId
必填
租户id
样例 : 464909140298096640
integer (int64)
paymentTime
可选
支付时间 string (date-time)
paymentType
可选
支付类型(0/现金支付 1/积分支付 2/混合支付) integer (int32)
postageType
可选
物流类型(0/自提 1/快递) integer (int32)
productAmount
可选
商品数量 integer (int32)
productId
可选
礼品主键id integer (int64)
remark
可选
备注 string
shippingAddress
可选
收货地址(自提订单为冗余自提地点) string
shippingName
可选
收货人 string
shippingPhone
可选
联系电话 string
status
可选
订单状态(0/已取消(c端用户取消) 1/未确认(待审批) 2/已确认(通过) 3/未付款 4/已付款 5/已发货 6/已取消(b端取消)) integer (int32)
totalCreditPrice
可选
订单总积分价格 integer (int32)
totalPrice
可选
订单总价格 number
userId
可选
用户(买家)id integer (int64)
调用示例
{
  "cancelTime": "2020-12-07T08:37:00.828Z",
  "createBy": "创建人",
  "createTime": "2020-12-07T08:37:00.828Z",
  "orderCode": "string",
  "orgId": 464909140298096640,
  "paymentTime": "2020-12-07T08:37:00.828Z",
  "paymentType": 0,
  "postageType": 0,
  "productAmount": 0,
  "productId": 0,
  "remark": "string",
  "shippingAddress": "string",
  "shippingName": "string",
  "shippingPhone": "string",
  "status": 0,
  "totalCreditPrice": 0,
  "totalPrice": 0,
  "userId": 0
}
响应
HTTP代码 说明 类型
200 OK RestData
201 Created 无内容
401 Unauthorized 无内容
403 Forbidden 无内容
404 Not Found 无内容

响应示例

{
	"code": 200,
	"data": {},
	"desc": ""
}