文档
测试

立即购买

POST
http://yun-pay.hs499.com/app/localLife/now/buy

请求头

参数名
类型
描述
必填
sign
String
验证签名,防止参数篡改,测试可以不填
必填

请求参数

参数名
类型
描述
必填
user_id
String
用户ID
必填
product_id
String
产品ID
必填

响应参数

参数名
类型
描述
必填
code
number
示例:0 成功 -1 失败
必填
errors
object
数据字典
必填
msg
string
示例:操作成功
必填
result
object
数据字典
必填
product_id
string
产品ID
必填
product_img
string
产品封面图
必填
product_name
string
产品名称
必填
platform_price
decimal
产品价格
必填
balance_score
int
积分余额
必填
deduct_score
int
抵扣积分
必填
deduct_amount
decimal
抵扣金额
必填
real_pay_amount
decimal
实际付款金额
必填

说明 / 示例

{ "code": 1, "errors": {}, "msg": "操作成功", "result": { "deduct_amount": 119.95, "real_pay_amount": 2279.05, "platform_price": 2399, "product_id": "8b646a46b61243b095d44082a53e31b8", "balance_score": 129020, "deduct_score": 11995, "product_name": "巨无霸汉堡", "product_img": "test.png" } }