返还用户积分、余额接口
由开发者开发好接口后,可在淘来企业后台系统直接配置
请求方式及参数(GET请求)
| 参数 | 是否必须 | 参数类型 | 限制长度 | 参数说明 |
|---|---|---|---|---|
| uid | yes | string | 255 | 用户id |
| corp_key | yes | string | 255 | 企业的唯一标识 |
| app_id | yes | string | 255 | 应用的唯一标识 |
| refund_cash | yes | float | 20 | 返还的金额 |
| refund_points | Yes | float | 20 | 返还的积分 |
| refund_type | yes | tinyint | 3 | 返还类型(0:取消订单,1:订单失败) |
| order_id | yes | string | 255 | 淘来的订单号 |
| out_order_id | yes | string | 255 | 客户的订单号 |
| ip | no | string | 255 | 用户ip |
| ts | yes | long | 10 | 时间戳(单位:秒) |
| sign | yes | string | 255 | sign值的生成规则参考签名规则 |
接口返回参数:(JSON格式)
| 参数 | 是否必须 | 参数类型 | 限制长度 | 参数说明 |
|---|---|---|---|---|
| status | yes | string | 255 | 余额返回状态,success或fail |
| error_msg | no | string | 255 | 出错原因 |