用户工具

站点工具


侧边栏

促销订单

促销订单接口


1、订单列表

接口名称

orders/list

请求方式

get

请求参数

参数名称 参数类型 是否必填 说明
memberId int 会员ID
orderNo string 订单编号
consignee string 收货人姓名
mobile string 收货人手机号
startDate string 开始日期,格式2016-10-1
endDate string 结束日期,格式2016-10-1
orderId int 订单ID
status int 订单状态 0 待付款 1 待发货 2 待买家确认 8 交易成功 4 交易取消 5交易关闭

返回值

名称 类型 说明
items data 数据
_links data 分页信息
_meta data 查询数据信息

items数据说明

名称 类型 说明
id int 订单ID
order_no string 订单编号
activity_id int 活动ID
goods_name string 产品名称
price float 单价
buy_count int 购买数量
total float 合计
add_time string 添加时间
pay_time string 支付时间
complete_time string 完成时间
fh_time string 发货时间
status int 订单状态
status_name string 订单状态名称
consignee string 收货人姓名
address string 收货地址
mobile string 收货人手机号
express string 快递公司
express_code string 快递 号
pic string 商品图片
order_type int 订单状态 0 用户主动下单 1 系统返单

2、添加订单

接口名称

orders/create

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
activityId int 活动产品ID
memberId int 会员ID
buyCount int 购买数量
addressId int 收货地址ID

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息

3、确认收货

接口名称

orders/confirm

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
orderId int 订单ID
orderNo string 订单编号,跟订单ID一起二者必填一项
memberId int 会员ID

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息

4、获取订单支付签名

接口名称

orders/get-sign

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
orderNo string 订单编号
payType string 支付类型 llQuickPay 连连快捷支付 llApplePay 连连苹果支付 alipay 支付宝 weixin 微信支付

返回值

result string 结果 success 成功 error 失败
message string 提示信息
data string 返回数据

5、删除未付款订单

接口名称

orders/delete

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
orderId int 订单ID
memberId int 会员ID

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息
促销订单.txt · 最后更改: 2017/06/01 13:59 (外部编辑)