简要描述:

  • 收银台确认付款接口

请求方法:

GET

请求URL:

https://你的域名/addons/yun_shop/api.php?i={{平台id}}&route=plugin.store-cashier.frontend.Order.create

参数:

参数名 是否必须 类型 说明
store_id 是 int 门店id
price 是 double 价格
dispatch_type_id 否 int 配送方式
goods 是 json 订单商品数组
address 是 json 地址信息
member_coupon_ids 是 string 优惠券id(逗号分隔)
invoice_type 是 int 发票类型(0:电子发票,1:纸质发票)
rise_type 是 int 发票抬头(0:单位,1:个人)
goods 是否必须 类型 说明
goods_id 是 int 商品id
goods_option_id 否 int 规格id
total 是 int 购买数量
orders 是否必须 类型 说明
pre_id 是 int 预下单id
deduction_ids [deduction.code] array 抵扣码
service_fee [order_service_fee.code] array 服务费码
note 否 string 订单备注
address 是否必须 类型 说明
mobile 是 int 商品id
username 否 int 收件人姓名
province 是 int 省份
city 是 int 城市
district 是 int 区县
address 是 string 详细地址
street 否 string 街道

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {}
}

错误时返回:

  • 缺少访问参数 - 商品ID
{
    "result": 0,
    "msg": "缺少访问参数",
    "data": [ ]
}
  • 未找到数据
{
    "result": 0,
    "msg": "未找到数据",
    "data": [ ]
}

返回参数说明:

参数名 类型 说明
id int 订单 ID

备注: