ECJiaWiki:Api:refund/reasons

来自ECJiaWiki
跳转至: 导航搜索

应用场景

 订单退款原因

接口名称

 refund/reasons

Header请求参数

字段名 变量名 必填 类型 示例值 描述 since deprecated
设备唯一ID device-udid String a46d663d675d4858ea7d0a21c2de06e9 设备的唯一编号 1.3.0
设备客户端类型 device-client String android,iphone,h5,weapp 设备类型的描述 1.3.0
产品编号 device-code String 6015 产品编号 1.3.0
API版本 api-version String 1.6 API接口版本号 1.3.0

举例如下

{
    "device-udid" : "a46d663d675d4858ea7d0a21c2de06e9",
    "device-client" : "weapp",
    "device-code " : "6015",
    "api-version" : "1.6",
}

请求参数

字段名 变量名 必填 类型 示例值 描述
token请求凭证 token String 79218f8e710fc755a222de45f43c3fd969b87972 调用接口凭证
类型 type String 类型(await_ship待发货售后原因,shipped待收货售后原因, finished已完成售后原因)

举例如下

{
      "token" : "d122e3c72332c5af12a71d77c9f1462f5901d276"
      "type":"await_ship",
}

返回参数

字段名 变量名 必填 类型 示例值 描述
返回状态码 status Array() {"succeed" : 1} 返回请求接口后的数据,succeed为1代表成功,0则为失败,失败后则返回error_code(错误code)及error_desc(错误说明)
返回信息 data array 请求接口提供的返回信息
└ 原因id reason_id Int 原因id
└ 原因 reason_name String 原因

成功举例如下

{
    "data": [
        {
             "reason_id": 1,
             "reason_name": "暂时不想购买了",
        },
        {
             "reason_id": 2,
             "reason_name": "忘记使用优惠券",
        },
        {
             "reason_id": 3,
             "reason_name": "商家缺货,不想买了",
        },
        {
             "reason_id": 4,
             "reason_name": "商家服务态度有问题",
        },
        {
             "reason_id": 5,
             "reason_name": "商家长时间未发货",
        },
        {
             "reason_id": 6,
             "reason_name": "信息填写有误,重新购买",
        },
    ],
    "status": {
        "succeed": 1
    }
}


{
    "data": [
        {
             "reason_id": 11,
             "reason_name": "商品质量问题",
        },
        {
             "reason_id": 12,
             "reason_name": "发错货",
        },
        {
             "reason_id": 13,
             "reason_name": "缺斤少两",
        },
        {
             "reason_id": 14,
             "reason_name": "外表损伤(包装,商品等)",
        },
        {
             "reason_id": 15,
             "reason_name": "未在时效内送达",
        },
        {
             "reason_id": 16,
             "reason_name": "误购",
        },
    ],
    "status": {
        "succeed": 1
    }
}


{
    "data": [
        {
             "reason_id": 21,
             "reason_name": "暂时不想购买了",
        },
        {
             "reason_id": 22,
             "reason_name": "忘记使用优惠券",
        },
        {
             "reason_id": 23,
             "reason_name": "商家服务态度有问题",
        },
        {
             "reason_id": 24,
             "reason_name": "快递太慢了",
        },
        {
             "reason_id": 25,
             "reason_name": "信息填写有误,重新购买",
        }
    ],
    "status": {
        "succeed": 1
    }
}

注:错误编码