- 开发指南
- 登录授权
- 基础数据
- 公共
- 客户
- 商品
- 订单
- 退单
- 采购
- 库存
- 资金-收付款
- 常见问题与解答
- 开放接口-商家端-商家订单管理
创建订单
POST
/order-aggregation/organizations/orders
开放接口-订单
请求参数
Header 参数
access_token
string
必需
x-client-id
string
必需
Body 参数application/json
buyerId
integer
必需
sellerId
integer
可选
orderStatus
string
必需
addressId
integer
收货人地址ID
deliveryMethodId
integer
必需
deliveryDate
integer
可选
productTotalAmount
number
必需
productDiscountAmount
number
必需
orderDiscountAmount
number
必需
totalFreight
number
运费,无则为0
orderTotalAmount
number
必需
remark
string
订单备注
salesmanId
integer
买方的业务员id
orderSource
string
必需
orderDetails
array [object {15}]
订单商品明细
productCode
string
商品编码
productName
string
商品名称
productShortName
string
商品简称
productSku
integer
商品skuId
unitId
integer
下单使用单位id
purchaseNumbers
integer
必需
auxUnitId
integer
辅助计量单位的id
auxUnitNumbers
integer
辅助单位购买数量
originalPrice
number
商品原价
salePrice
number
必需
subtotal
number
必需
saleRate
number
必需
remark
string
备注
type
string
必需
combinationProductUnitId
integer
组合商品单位id
warehouseId
integer
可选
示例
{
"currentPage": 10,
"withOtherInfo": false,
"withDetails": false,
"createTimeEnd": 880555168408,
"buyerIds": [
38,
32
],
"pageSize": 81,
"orderCodes": [
"40",
"53"
],
"withRemarks": true,
"sort": "labore nisi",
"modifyTimeEnd": 1416253288895,
"createTimeBegin": 1571577315942,
"orderStatus": [
"ALLOTMENT_IN_CANCELLED",
"SUPERIOR_AUDIT_PENDING"
],
"modifyTimeBegin": 535816562634,
"withIrObjects": false
}
返回响应
🟢200OK
application/json
Body
id
integer
订单id
示例
{
"id": 0
}
修改于 2024-07-05 02:43:52