简要描述:
- 商品礼包套餐下单接口
请求域名:
- https://dev4.yunzshop.com
请求URL:
GET/获取商品套餐信息:route=plugin.goods-package.frontend.package.package-create.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
package_id | 是 | int | 套餐ID |
goods | 是 | json | 购买的商品信息 |
关联的goods参数 | 是否必须 | 类型 | 说明 |
---|---|---|---|
goods_id | 是 | int | 商品ID |
total | 是 | int | 购买的商品数量,当前固定为1 |
option_id | 条件 | int | 规格项id,有规格的商品必须要规格项id,没有规格则不需要,默认第一个规格 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"order_ids": "349.12",
}
}
错误时返回:
{
"result": 0,
"msg": "参数错误在"
}
更多错误信息请注意程序返回
返回参数说明:与商城下单接口返回一致
备注:
- 更多返回错误代码请看首页的错误代码描述