参数 | 参数类型 | 必须 | 说明 |
---|---|---|---|
orderId | string | 是 | 订单号 |
参数 | 参数类型 | 说明 |
---|---|---|
orderId | string | 订单Id |
buyerId | string | 买家ID |
buyerUserName | string | 买家姓名 |
orderType | int | 订单类型 1、会员批发订单 2、会员代发订单 3、会员资质授权订单 4、会员升级订单 5、零售订单 |
payForType | int | 支付方式 1、支付宝凭据支付 2、微信凭据支付 3、银行卡凭据支付 4、预存款支付 5、资产余额支付 6、现金账户余额支付 9、微信在线支付 |
payForId | string | 若为在线支付则有 付款编号 |
payImgs | string[] | 若为凭据支付则有 凭据图片 |
tradeStatus | int | 交易状态 1、交易关闭 2、等待付款 3、等待审核 4、等待发货 6、交易成功 7、全额退款 |
totalAmount | decimal | 货款金额 |
totalDiscount | decimal | 优惠金额 |
postFee | decimal | 运费默认为0 |
payment | decimal | 实付金额=(货款金额-优惠金额+运费) |
logisticsNumbers | string | 发货信息 |
receiver | string | 收货人-姓名 |
tel | string | 收货人-联系电话 |
districtId | string | 收货地址-地区编号 |
address | string | 收货地址 |
mark | string | 买家留言 |
creatTime | dateTime | 创建时间 |
payForTime | dateTime | 支付时间 |
checkedDate | dateTime | 审核时间 |
deliveryDate | dateTime | 发货时间 |
endDate | dateTime | 结束时间 |
lastModifyTime | dateTime | 最近修改时间 |
orderDetails | 数组 | 订单详情 |
a) 正确的JSON返回结果示例:
{ "success": true, "status": 0, "data": { "orderId": "GJ63672706461364475726", "buyerId": "ed7fdc60-6e34-42d4-93a3-ce194b922f5e", "buyerUserName": "李", "orderType": 3, "payForType": 2, "payForId": null, "payImgs": [], "tradeStatus": 4, "totalAmount": 79651, "totalDiscount": 0, "postFee": 0, "payment": 79651, "logisticsNumbers": null, "receiver": "李", "tel": "18600000000", "districtId": "110115", "address": "北京市 北京市 大兴区 地盛北街", "mark": "", "creatTime": "2018/01/16 14:54:21", "payForTime": "2018/01/16 14:54:35", "checkedDate": "2018/01/16 14:55:54", "deliveryDate": null, "endDate": null, "lastModifyTime": "2018/01/16 14:55:54", "orderDetails": [ { "orderDetailId": "bfdbb120-ceb4-4b84-a7e4-a48461103dbf", "type":0, //0:普通商品;1:赠品, 普通商品可能返回null "orderId": "GJ63672706461364475726", "imageUrl": "", "goodId": "8de5a082-ac9b-e811-80c5-8c451620948b", "title": "纯棉条纹t恤蝙蝠袖文艺短袖打底衫上衣女潮", "internalTitle": "蝙蝠袖打底衫上衣", "artNo":"11", "skuId":"", "spec": "红色、XL", "number": 482, "price": 29, "totalDiscount": 0, "pendingRefundAmount":0, //正在申请退款的金额,可能返回null "hasRefundAmount":0, //已退金额,可能返回null "isRefunding":false, //是否正在申请退款 }, { "orderDetailId": "40e787e0-867f-4dbd-9f24-c408d6325dd3", "type":0, //0:普通商品;1:赠品, 普通商品可能返回null "orderId": "GJ63672706461364475726", "imageUrl": "", "goodId": "50d03ef1-b09b-e811-80c5-8c451620948b", "title": "刺绣宽松加绒运动裤女春装2018新款小脚裤卫裤哈伦长裤子", "internalTitle": "加绒运动裤", "artNo":"22", "skuId":"", "spec": "均码", "number": 118, "price": 53, "totalDiscount": 0, "pendingRefundAmount":0, //正在申请退款的金额,可能返回null "hasRefundAmount":0, //已退金额,可能返回null "isRefunding":false, //是否正在申请退款 } ] } }
b) 错误的JSON返回示例:
{ "success": false, "status": 1, "message":找不到指定的订单 }