创建代客订单

企业可通过接口创建crm代客订单

请求方式: POST(HTTPS)

请求地址: https://open.wshoto.com/openapi/valetorder/create?access_token=x

Query参数:

参数 类型 必填 说明
access_token string 调用接口凭证

Body参数:

{
  "user_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
  "account": 36700,
  "company_name": "上升电力科技有限公司",
  "customer_id": "wmvvCXcAAA-Szs4aldpROsiAM9kLBO9Q",
  "discount": 10,
  "discount_price": 0,
  "goods": [
    {
      "goods_price": "1123",
      "goods_content": "",
      "pic_urls": ["https://cos-test-1302358358.file.myqcloud.com/app/wpDkH9EAAAU313n90ANS71ehjCBAfH3A/2022/04/da29a83a-59f5-4c17-a2a5-c47f801eb5c6.png"],
      "goods_type": 2,
      "count": 1,
      "goods_name": "哇哇"
    }
  ],
  "order_account": 36900,
  "remark": "",
  "field_map": {
  }
}
参数 类型 必填 说明
user_id string 创建人
customer_id string 客户id
account long 订单原价
discount double 订单折扣
order_account long 订单折扣后金额
discount_price long 订单折扣金额
remark string 备注
goods object[] 订单下单商品列表
 goods_name string 商品名称
 goods_content string 商品内容
 goods_id string 商品id
 goods_type int 商品类型
 goods_price long 商品价格
 discount_price long 折扣金额
 discount double 抵扣
 count long 数量
 opportunity_id string 关联赢单商机id
 pic_urls string[] 商品的图片地址
 sku_id string 商城商品规格id
 sku_price string 商品规格价格
 select_attrVal string 商城商品级别
 opportunity_name string 商机名称
 mall_goods_params_bo string 商城商城规格字符串
 id string id
 self_map string 自定义商品的自定义字段集合
order_contract object[] 订单合同
 file_url string 图片地址
 file_name string 图片名称
 file_format string 文件格式
 file_size string 文件大小
 image_base_url string 图片base地址
 image_base string 图片base
 cos_url string cos地址
 type string 文件类型
field_map map 自定义字段内容json

返回值:

{
  "code": 0,
  "msg": "请求成功",
  "data": 1531517114528779266
}

参数说明:

参数 类型 说明
code int 返回码
msg string 对返回码的文本描述内容
data object 订单id

results matching ""

    No results matching ""