xiaodian.trade.encrypted.get

  • 免费
  • 需要授权
  • 结果加密
查询单笔订单详情(返回结果加密)

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
openApiOrderDetailReqDto
Object 查询参数
shopOrderId
Number 店铺级订单id 91341793022324

返回参数

名称 类型 描述 默认值
shopOrderId
Number 店铺级订单ID
orderStatus
String 订单状态,包括: 
     ORDER_CREATED - 已下单 
     ORDER_CANCELLED - 订单取消 
     ORDER_PAID - 已支付 
     ORDER_SHIPPED - 已发货 
     ORDER_RECEIVED - 已收货 
     ORDER_COMPLETED - 订单完成 
     ORDER_CLOSED - 订单关闭
createdStr
String 订单创建时间,格式:yyyy-MM-dd HH:mm:ss
payTimeStr
String 订单支付时间,格式:yyyy-MM-dd HH:mm:ss
shipTimeStr
String 订单发货时间,格式:yyyy-MM-dd HH:mm:ss
receiveTimeStr
String 订单收货时间,格式:yyyy-MM-dd HH:mm:ss
buyerName
String 买家昵称,是用户自己设置的,不唯一
buyerAccountId
String 买家账户ID,是用户登录的账号,唯一
sellerName
String 卖家昵称
sellerAccountId
String 卖家账户ID
shopOrderType
String 订单市场类型,包括: 
     MOGUJIE_MARKET:蘑菇街市场 
     DEFAULT_MARKET:默认市场 
     GO_MARKET:番茄炒蛋
shopOrderPrice
Number 订单价格,含运费和关税,单位:分,计算规则如下:
     商品订单价格之和 - 店铺优惠+shipExpense(运费) + tariff(关税)
promotionAmount
Number 支付级优惠(分)
number
Number 包含的商品级订单数量
isRate
Boolean 订单是否已经评价
buyerComment
String 买家备注
sellerComment
String 卖家备注
shipType
Number 发货类型,取值如下: 
     0 - 快递 
     1 - 小店卖家直接发货 
     2 - 海淘-转运 
     3 - 海淘-商业快件 
     4 - 虚拟交易 
     5 - 保税仓 
receiverName
String 收货人姓名
receiverMobile
String 收货人手机
receiverProvince
String 收货人省份
receiverCity
String 收货人城市
receiverArea
String 收货人区
receiverAddress
String 收货人地址
receiverZip
String 收货人邮编
receiverPhone
String 收货人联系电话
shipExpressId
String 快递编号
shipExpressName
String 快递公司名
stageStatus
String 多阶段订单的状态,目前包括:UN_PRE_PAY、WAITING_TAIL_PAY_OPEN、UN_TAIL_PAY、TAIL_PAY_SUCCESS                    
payOrderId
Number 支付级订单ID
cardInfo
Object 身份证信息,仅当海淘订单会返回,CardInfo的类信息如下: 
     name String 姓名 
     cardId String 身份证号 
     cardFrontUrl String 身份证正面 
     cardBackUrl String 身份证背面
itemOrderInfos
Object[] 商品级订单信息列表
itemOrderId
Number 商品级订单ID
itemId
String 商品id
skuId
String skuId
itemCode
String 商品编码
title
String 商品标题
imgUrl
String 商品主图
skuCode
String sku编码
skuAttributes
Object[] 商品sku描述
number
Number 商品数量
price
Number 商品原价,单位:分
nowPrice
Number 商品现价,单位:分
orderStatus
String 订单状态(只用来判断是否发货,不包含逆向状态)
refundStatus
String 退款状态,包含:  
         return_goods_requested - 买家发起退货,等待卖家同意  
         return_goods_agreed - 卖家同意,等待买家退货  
         return_goods_shipped - 买家发货,等待卖家收货  
         refund_requested - 买家发起退款,等待卖家同意  
         refund_or_return_deal_agreed - 买卖家协商一致,等待资金退款  
         refund_or_return_seller_refused - 买家退款或退货被卖家拒绝  
         return_goods_seller_declare_not_received - 买家发货后,卖家未收到货  
         refund_completed - 退款完成 
         refund_cancelled - 退款取消 
sellerFinal
Number 卖家实收,单位:分
supplyPrice
Number 供货价,单位:分
extraMap
Object 额外信息
actorId
Number 主播id
actorName
String 主播名
shopPromotionAmount
String 店铺优惠(分)
platformPromotionAmount
String 平台优惠(分)
updatedStr
String 订单更新时间,格式:yyyy-MM-dd HH:mm:ss
extraMap
Object 跨境专用,其他无需关心,这个结构是Map, 包含的Key有: 
     idCardCode(身份证编号) 
     idCardName(身份证名称) 
     idCardMobile(身份证手机号) 
     payChannelCode(支付企业编码) 
     paymentNo(交易支付流水号) 
     tariff(关税) 
     declareNo(地方版支付报关流水号) 
     declareNoZS(总署版支付报关流水号) 
     identityCheck(跨境订单中订购人和支付人身份是否一致,T:一致;F:不一致,空为未校验)
modifyPrice
Number 店铺单改价差额, shopOrderPrice这是店铺单的实付价格,货款价格-店铺级别优惠+运费+关税, 如果出参中的shopOrderPrice为2,modifyPrice为1,则改价前的价格为3; 如果出参中的shopOrderPrice为70,modifyPrice为-10,则改价前的价格为60;
buyerFinalPrice
Number 买家实付金额

请求参数示例

1).
{ "shopOrderId":1111111111 }

返回示例

1).
{ "status": { "code": "0000000", "msg": "请求成功" }, "result": { "data": "4lcS4LVVEQbtiZUjBK5McYQTGhGWgSEVU/o7pY2XcwFipZ9vJ0GJdPXM7CvXYBhO/tlfjimQ4vJJGqLHSZ/BksUh9OtltHZR1khcLHyZm76OpgXIhRwBT2W5zvLzpkZOzvG6IU3G2afyfatfRTe/s1WFBcvuXGZWvRoJDE1wB10Y6wYIFxMw3BADDAoJ+Ih5mYrlTpaOpLaEAWseeZepXH9T0p2V/kmRwdgNnQAR2Vo9o8z6sQs6oYQsW4tIqhc68tVPTMOch9osm7EZ0gCATchO2+HpHerjopW6bJdqEptD6D4aOte/1i572lmQ/msrDA7ifxh4rpSpJqaaAC8rLTJ5leCDPKbGtd2tbcXzYo6W47U8ZICi0XIb1MC74HiHJBeoElc9JpA2bfiyYjvTMSSwMIDE42ClEJRQyqmX/ziEPZ/6cwA8HVg64N06FRHTUZVDaCc7K7pBrWP5fAcCykt23AFImq4dErlcbo7YRKJk3So7CpityuLc8EmASITS+6faj3p7LsjGg6c3IZ1QL7ErJMXYrAb5RFlVlkzOzcWDcQHMos+lOiP+A7Eb9excSCu7RzhuPNHlKvlcDm4TwYWQ+ZP++hXQiW1HYOcIYYXbTq9v+PXdgdB2wH1OiN6aqOY0CP+s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G0sTN+LA3iVqL02e5iIzTC/LiCeXw7zoY+6fmoZbPBdI5/3GxQUPqUQEBhy40HJlYPkTEE2VkHaFbLIbq9vRaV9ffLNdArsiEBL0r2Ipcer0xiBDIy+Oi3ZSvu7fRfXt9zHsbXSt5S8nQSAkntH9T89LXNH7huFIXk+kpuy4GAREokR3lq6BvDulVZGvdO/xWNaspQANBQwchGiZLuhER3dZJ/6+n4SIy0YO3feDz22snjZFMKvHbKrVjPhYCUgFo0KZ2qntUtvEb9HWSjbBj35mKqfhYhYs5GAYBz73eW0O2maJfzwLFs3KLHNepWOenzISc51VMYd/MyxIgmYB3h0gtjKLHfe2YUuHn+BN4FMqjepE09FF3DQYUHDDld/SHWtVoyvmOl0OKwrsMStQZrF8JUUE4ZnNL5nrGpMLL6ZTAdZieDp+/" }, "dataEncrypted": true, "success": true }
2).
{ "status": { "code": "0000000", "msg": "请求成功" }, "result": { "data": { "buyerFinalPrice": 10, "isRate": false, "payOrderId": 100561988205253, "stageStatus": "ORDER_PAID", "extraMap": { "paymentNo": "2021093022001435631441961350", "payChannelCode": "alipay" }, "shipTimeStr": "1970-01-01 08:00:00", "sellerName": "jiwan2", "orderStatus": "ORDER_PAID", "createdStr": "2021-09-30 15:52:03", "receiveTimeStr": "1970-01-01 08:00:00", "receiverProvince": "浙江省", "shipExpressName": "", "receiverCity": "杭州市", "buyerAccountId": "wsf199912", "number": 1, "receiverPhone": "15868440637", "rate": false, "updatedStr": "2021-09-30 15:58:54", "receiverZip": "", "receiverName": "文初", "receiverMobile": "15868440637", "shipExpense": "0", "receiverArea": "西湖区", "sellerUserId": 62542216, "buyerName": "wsf199912", "processResponseDTO": { "marketTag": "8", "sellerTag": "EXCELLENTSHOP" }, "platformPromotionAmount": 0, "sellerAccountId": "jiwan2", "orderTags": [ "EXCELLENTSHOP" ], "receiverAddress": "黄龙万科中心g座5楼蘑菇街小邮局", "itemOrderInfos": [ { "img": "/mlcdn/c45406/210816_8fkg0d8178k2643b8kdljjc945503_1232x960.jpg", "extraMap": {}, "itemCode": "", "orderStatus": "ORDER_PAID", "refundStatus": "", "sellerFinal": 10, "itemOrderId": 100561988225253, "title": "测试", "imgUrl": "http://s11.mogucdn.com/mlcdn/c45406/210816_8fkg0d8178k2643b8kdljjc945503_1232x960.jpg", "itemId": "1n1yu48", "nowPrice": 10, "number": 1, "skuAttributes": [ { "value": "亚麻色", "key": "颜色" }, { "value": "S", "key": "尺码" } ], "price": 10, "skuCode": "", "skuId": "11ih6nvo" } ], "shipExpressId": "", "shopOrderId": 100561988215253, "shopOrderPrice": 10, "shipType": 0, "payTimeStr": "2021-09-30 15:58:54", "shopPromotionAmount": 0, "buyerUserId": 468495253, "promotionAmount": 0, "shopOrderType": "MOGUJIE_MARKET" } }, "dataEncrypted": true, "success": true }

异常示例

1).
{ "status": { "code": "1010001", "msg": "参数异常" }, "result": { "data": {} }, "dataEncrypted": false, "success": false }

常见问题

1).怎么解密?
具体参考帮助页面-API使用说明-接口解密 https://openapi.mogujie.com/help/api