文档
测试

查询订单

GET
https://openapi.ruwii.com/api/order/order-get

接口描述

根据订单编码查询订单

接口名

order.get

公共请求参数

application/json
参数名
类型
描述
必填
clientId
String
应用Id
必填
method
String
调用接口名
必填
accessToken
String
用户认证凭证
必填
sign
String
参数签名
必填
timestamp
Long
时间戳,当前时间的毫秒数
必填
v
String
api版本号,值:1.0
必填

业务请求参数

参数名
类型
描述
必填
orderCode
String
订单编码,只能传一个
必填

响应参数

application/json
参数名
类型
描述
code
Int
请求返回码
message
String
请求返回消息
data
Object
consigneeInfo
ConsigneeInfo
收货人信息
name
String
收货人姓名
province
String
city
String
district
String
fullAddress
String
详细地址
telephone
String
收货人手机号码
orderItems
List
订单子项信息
skuCode
String
sku商品编码
price
Double
单价,单位:元
payMoney
Double
支付金额,单位:元
quantity
Int
数量
goodsCode
String
商品编码
afterSaleItems
AfterSaleItems
售后信息,无售后信息的订单不会返回该对象
afterSaleStatus
int
售后状态 状态(1:待审 2:同意3:拒绝4:已退5买家取消6已退货等待卖家确认7成功但未付款8超时取消)
afterSaleQuantity
int
退货(换货、退款)的商品数量
afterSaleMoney
BigDecimal
退货(换货、退款)的金额
afterSaleCode
String
售后单编码
createTime
String
售后单创建时间,格式“yyyy-MM-dd HH:mm:ss”
updateTime
String
售后单更新时间,格式“yyyy-MM-dd HH:mm:ss”
afterSaleReason
String
售后原因
afterSaleType
Integer
售后类型,1退款 2退货退款
orderItemsCode
String
订单子项编码
skuParam
String
商品规格
title
String
商品标题
orderCode
String
订单编码
payTime
String
支付时间,格式“yyyy-MM-dd HH:mm:ss”
leaveMessage
String
留言
payMoney
Double
付款金额
shopCode
Double
店铺编码
sourceOrderCode
String
来源订单号
logisticsInfo
LogisticsInfo
物流信息,无物流信息的订单不会返回该对象
logisticsNumber
String
物流单号
logisticsCompany
String
物流公司编码,参见工具API,获取物流公司列表:https://easydoc.net/doc/46112299/BtJWN82i/49h4ic1c
deliverGoodsTime
String
发货时间
status
Int
订单状态(1待付款 3待确认 5待发货10待收货15已完成30已退款(售后完成) 50已取消)
createTime
String
订单写入米合开放平台的时间,格式“yyyy-MM-dd HH:mm:ss”
updateTime
String
订单更新时间,格式“yyyy-MM-dd HH:mm:ss”

返回示例

```json { "code": 0, "message": "成功", "data": { "orderCode": "OAO2022072700000295", "payTime": "2022-07-27 09:27:00", "leaveMessage": "留言", "payMoney": 1.00, "sourceOrderCode": "123477", "shopCode": "DP2020031110180567", "status": 10, "createTime": "2022-07-29 13:11:53", "updateTime": "2022-07-29 13:23:08", "consigneeInfo": { "telephone": "18512341234", "name": "小刘", "province": "山东省", "city": "济南市", "district": "历下区", "fullAddress": "山东省济南市历下区第一号" }, "logisticsInfo": { "logisticsNumber": "1234567890", "logisticsCompany": "4", "deliverGoodsTime": "2022-07-29 13:23:08" }, "orderItems": [ { "orderItemsCode": "OASO2022072700000296", "skuCode": "SKU20220726111925286971", "goodsCode": "G2022072611192455894", "price": 1.00, "payMoney": 1.00, "quantity": 1, "skuParam": "颜色:蓝色,尺码:M", "title": "0726-洗发水商品1-长标题", "afterSaleItems": { "afterSaleStatus": 1, "afterSaleQuantity": 1, "afterSaleMoney": 1.00, "afterSaleCode": "SHOAO2022072700000295", "afterSaleReason": "我也不想要了", "afterSaleType": 1, "createTime": "2022-07-29 13:44:33", "updateTime": "2022-07-29 13:45:15" } } ] } } ```