wiki:app/refund

Version 27 (modified by zhanzhenchao, 10 years ago) (diff)

--

赔付

赔付列表

线上:/appIntf/refund/refundList.jsp

说明

赔付列表

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
pageNo第几页int1
pageSize一页的数据量int10
common_session_id(cookie参数)-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: [
                {
                     orderId:  123456             //订单id
                     refundId:  123456            //赔付id 
                     refundNo: 1482817            //赔付编号
                     status: '1'                  //赔付状态
                     imgUrl: "xxx.xxxx...",           //商品图片
                     enName: 'ECCO Men's Dress Moccasin Penny Loafer'       //商品标题
                     property: "Size: 42 M EU / 8-8.5 D(M) US|Color: Black" //商品参数
                }
              ]
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
-4验证出错!签名验证未通过

提交赔付申请

线上:/appIntf/refund/submitRefund.jsp

说明

创建赔付

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
causeType赔付原因int0
cause赔付说明string""
proofs凭证图片,多张图片用","隔开string""
common_session_id(cookie参数)-string""

返回

result {
        status: 1,
        msg: '请求成功'
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
-4验证出错!签名验证未通过
17订单不存在!订单不存在或不属于当前登录用户
41请勿重复提交!赔付提交间隔不能少于3秒!!||
50赔付理由不能为空赔付原因或赔付说明不能为空
51赔付说明不能超过200字赔付说明不能超过200字
52赔付凭证照片不能为空赔付凭证照片不能为空
53当前订单不能申请赔付!订单状态不符合申请赔付条件
54不能修改赔付申请! 不能修改赔付申请!

获取赔付详情

线上:/appIntf/refund/getRefund.jsp

说明

获取赔付详情

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
refundId赔付申请idint0
orderId订单idint0
common_session_id(cookie参数)-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
              refundId:123456,               //赔付申请id
              orderId:123456,                //订单的id
              refundNo: "1111111111",        //赔付编号
              status: 1,
              refund:{
                [
                  refundStatus: 1,                           //状态
                  aduitcustomer: 'rico',               //处理人
                  processingDate: '2016-01-27 11:23:15'//处理时间
                  processingReason: 'laalla'           //处理说明
                  causeType: 1,                        //赔付原因
                  causeTypeDesc: "商品损坏",           //赔付说明(退款说明)
                  proofs: "http://url,http://url",     //凭证照片
                ]
              }
        }
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
-4验证出错!签名验证未通过
17订单不存在!订单不存在或不属于当前登录用户
18当前的订单状态不支持取消当前的订单状态不支持取消

取消赔付申请

线上:/appIntf/refund/refundList.jsp

说明

取消赔付申请

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
refundId赔付申请idint0
common_session_id(cookie参数)-string""

返回

result {
        status: 1,
        msg: '请求成功'
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
-4验证出错!签名验证未通过

确认收货

线上:/appIntf/order/confirmReceive.jsp

说明

将订单状态改为已收货 订单发货后(status == 7)才能以确认收货

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id(cookie参数)-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
            orderId:123456 //修改的订单id
        }
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
-4验证出错!签名验证未通过
19不能执行该操作,订单未发货!当前订单未发货用户不能将订单改为发货状态

用户订单列表

线上:/appIntf/order/orderList.jsp

说明

登陆用户的订单列表

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
pageNo第几页int1
pageSize一页的数据量int10
type0全部订单;1待付款订单;2待发货订单;3待收货订单;4已完成订单int0
common_session_id(cookie参数)-string""

返回

result {
    status: 1,
    msg: '请求成功',
    pageNo: 1,      //第几页
    pageSize: 10,   //每页数据量
    total: 20,      //数据总量
    pageTotal: 2,   //总页数
    serviceDate: 111111111111111111 //系统时间毫秒数
    data: [
        {
           orderId: 123456,           //订单id
           orderNo: "20151111123321", //订单编号
           enName: "ECCO Men's Dress Moccasin Penny Loafer",        //商品标题
           property: "Size: 42 M EU / 8-8.5 D(M) US|Color: Black",  //商品参数 有些商品没有参数  此项为""
           imgUrl: "xxx.xxxx...",           //商品图片
           cnPrice: 123.00,                 //人民币单价
           frPrice: 20.00,                  //美元单价
           itemCnPrice: 123.00              //商品总价  单价*数量
           tariffAmountprice: 120.00,       //关税
           expAmountprice: 123.00,          //运费
           amountPrice: 100000.00,          //订单总价
           status: 1,                       //订单状态
           statusDesc: "已取消",            //订单状态描述
           pastDate: 111111111111111111111, //付款过期时间毫秒数
           quantity: 1,                     //商品数量
           mallId: 123,                     //电商id
           mallName: "美国亚马逊"           //电商名称
        }
    ]
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录

 订单状态说明


获取待付款订单剩余支付时间

线上:/appIntf/order/payDate.jsp

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id(cookie参数)-string""

返回

result {
    status: 1,
    msg: '请求成功',
    data: {
        pastDate: 111111111111111111111,    //付款过期时间毫秒数
        serviceDate: 111111111111111111111, //服务器时间毫秒数
        orderId: 123456
    }
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
17订单不存在!订单不存在或不属于当前登录用户

订单详情(wap)

线上:/appIntf/order/orderDetail.jsp

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id(cookie参数)-string""

返回

打开页面

订单详情(json) 2.3.0新增

线上:/appIntf/order/orderInfo.jsp

说明

返回订单数据

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id(cookie参数)-string""

返回

result {
    status: 1,
    msg: '请求成功',
    serviceDate: 111111111111111111111111, //系统时间
    data: {
           orderId: 123456,           //订单id
           orderNo: "20151111123321", //订单编号
           enName: "ECCO Men's Dress Moccasin Penny Loafer",        //商品标题
           property: "Size: 42 M EU / 8-8.5 D(M) US|Color: Black",  //商品参数 有些商品没有参数  此项为""
           imgUrl: "xxx.xxxx...",           //商品图片
           cnPrice: 123.00,                 //人民币单价
           frPrice: 20.00,                  //美元单价
           itemCnPrice: 123.00              //商品总价  单价*数量
           tariffAmountprice: 120.00,       //关税
           expAmountprice: 123.00,          //运费
           amountPrice: 100000.00,          //订单总价
           status: 1,                       //订单状态
           statusDesc: "已取消",            //订单状态描述
           pastDate: 111111111111111111111, //付款过期时间毫秒数
           quantity: 1,                     //商品数量
           mallId: 123,                     //电商id
           mallName: "美国亚马逊"           //电商名称
         }
}

返回状态

1请求成功请求成功
-1请求失败后台数据操作错误
-2未登录未登录
-3非法请求!非post请求
17订单不存在!订单不存在或不属于当前登录用户