简要描述:
- 退款申请
请求域名:
请求URL:
GET:route=refund.edit.store
参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| order_id | 是 | int | 订单id |
| refund_id | 是 | int | 退款申请id |
| reason | 是 | string | 理由 |
| refund_type | 是 | string | 申请类型 0 退款(仅退款不退货) 1 退款退货 2 换货 |
| images | 否 | array | 图片 |
| content | 否 | array | 内容 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"images": "[]",
"content": "",
"reason": "不要了",
"order_id": "179",
"uniacid": "3",
"price": "369.00",
"updated_at": "2017-04-12 17:16:51",
"created_at": "2017-04-12 17:16:51",
"id": 12
}
}
错误时返回:
- 缺少访问参数 - 订单ID
{
"result": 0,
"msg": "缺少访问参数",
"data": [ ]
}
- 未找到数据
{
"result": 0,
"msg": "未找到数据",
"data": [ ]
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 退款申请id |
| order_id | int | 订单id |
| refund_type | int | 申请类型 |
| price | int | 退款金额 |
| content | string | 内容 |
| reason | reason | 理由 |