创建外部订单


说明:目前仅适用体检和保险下单
接口地址:/api/order/add-external-order/
Http请求方式:POST
内容格式:application/json
权限:add_ex_order
参数:
参数 参数名 类型 是否必须 说明
oid oid string 订单号
organization code org_code string 公司号
employee number ee_no string 员工号
shipping fee shipping_fee decimal 运费
pay channels pay_channels List<string> 支付渠道
sku items sku_items List<sku_item> 商品列表
price price decimal 外部订单总价格
timestamp timestamp string 时间戳
sign sign string 签名

sku_item

参数 参数名 类型 是否必须 说明
partner sku partner_sku string 商品供应商货号
quantity quantity int 商品数量
unit price unit_price decimal 商品单价

请求参数说明:
  • 外部订单价格只做记录,不做实际积分扣减
  • 积分扣减以商品单价和数量乘积和为准
  • 支付渠道,可选有general_point(普通积分),exclusive_point(专属积分),默认两者都选
请求示例:
{
    "oid": "aaaaa1211263",
    "org_code": "vf",
    "ee_no": "vf600770",
    "shipping_fee": 0,
    "price": 11,
    "sku_items":[
        {
        "partner_sku":"BOE2017006",
        "quantity":1,
        "unit_price":1.50
    },{
        "partner_sku":"2017zdhq11",
        "quantity":3,
        "unit_price":1
    }
    ],
    "pay_channels":["point"]
}
返回示例:
{
    "result": {
        "oid": "aaaaa1211263",
        "number": "2018070521280444"
    },
    "result_message": "create order with external order number successfully",
    "result_code": "create_order_with_ex_num",
    "success": true
}