获取订单详情
根据订单号获取订单详情信息,支持多个订单号,一次可以查询50个订单号。
1.请求参数:
请求URL:
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
appid | String | 是 | 合作伙伴AppId | |
timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
seller_nick | String | 是 | 38173182 | 快手的店铺账号,对应蜂巢授权返回seller_nick字段 |
sign | String | 是 |
业务参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
order_id | String | 是 | 订单号,多个订单号可用英文逗号隔开 |
2. 请求示例代码(Java)
@Test
public void getExtOrderListByNo() throws Exception {
String tb_seller_nick = Config.KSSellerNick ;
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("seller_nick", tb_seller_nick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
// data.put("order_id","2222800060897551,2307500074108220" );
data.put("order_id","2307500074108220" );
// 参数签名
data.put("sign", Utils.Sign(data, Config.AppSecret));
doHttpRequest(Config.KS_OPEN_ORDER_EXT_GET_TRADES, data);
}
3. 返回结果
返回结果如下
{
"code": 0,
"message": "ok",
"data": [
{
"code": 0,
"msg": "",
"orderId": 2307500074108220,
"orderInfo": {
"orderAddress": {
"address": "",
"city": "济南市",
"cityCode": 3701,
"consignee": "",
"desensitiseAddress": "**街道文化北路**号城发广场北楼****",
"desensitiseConsignee": "张**",
"desensitiseMobile": "185****8838",
"district": "莱芜区",
"districtCode": 370116,
"encryptedAddress": "~AjbKvY9u2S0CIAjAg1ZIexIqfPKO6hg tttwjivnCcIiA38RUp4hNCuL+Deqj1fKPRlh6/SGrv4AG8/HfNAAnHtCgFMAE=~1~~",
"encryptedConsignee": "#YM+/f/VLf/VL#Ci1tZXJjaGFudC5vcGVuLnNlY 1JCgFMAE=#1##",
"encryptedMobile": "$hgj0WBf4KDketN0trlrGWCivd4lGiRW76Ndomhp9 XJsi6F0m8ZeaWmxdd4c/F0eheJQRYAMNCgFMAE=$1$$",
"mobile": "",
"province": "山东省",
"provinceCode": 37,
"oaid":"761da7c0c97dcdd080dc6102b86eea0a"
},
"orderBaseInfo": {
"activityType": 1,
"buyerImage": "http://p5.a.yximgs.com/s1/i/def/head_f.png",
"buyerNick": "A张张💖会计",
"buyerOpenId": "f198f0846993046e14bf572410405c46",
"coType": 0,
"commentStatus": 0,
"cpsType": 1,
"createTime": 1678975518244,
"discountFee": 0,
"expressFee": 0,
"oid": 2307500074108220,
"payChannel": "ALIPAY_HB",
"payTime": 1678975524473,
"payType": 2,
"preSale": 0,
"promiseTimeStampOfDelivery": 1679148324473,
"recvTime": 0,
"refundTime": 1681238763008,
"remark": "",
"riskCode": 0,
"sellerDelayPromiseTimeStamp": 1679148324473,
"sellerNick": "刻骨铭心的爱情",
"sellerOpenId": "f198f0846993046e14bf572443812bdb",
"sendTime": 0,
"status": 80,
"theDayOfDeliverGoodsTime": 120,
"totalFee": 10,
"updateTime": 1687251104545,
"validPromiseShipmentTimeStamp": 1679148324473
},
"orderDeliveryInfo": {
"enableAppendPackage": false,
"maxPackageNum": 20
},
"orderItemInfo": {
"discountFee": 0,
"goodsCode": "",
"itemExtra": {
"categoryInfo": { "categoryName": "其他日用", "itemCid": 2995 }
},
"itemId": 3655213008601,
"itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=3655213008601\u0026hyId=kwaishop\u0026layoutType=4",
"itemPicUrl": "https://u1-201.ecukwai.com/ufile/adsocial/6195808d-8969-46a5-a7e9-bb506c95e856.jpg",
"itemTitle": "专用的回形针",
"itemType": 1,
"num": 1,
"orderItemId": 66728722091220,
"originalPrice": 10,
"price": 10,
"relItemId": 3655213008601,
"relSkuId": 0,
"skuDesc": "白色",
"skuId": 4810616922601,
"skuNick": "",
"warehouseCode": ""
},
"orderLogisticsInfo": [],
"orderNote": {
"sellerNote": [
"备注",
"备注",
"11了",
"我用红",
"222222",
"222",
"vip用户"
]
},
"orderFlag": { "flag": ["green_flag_tag_order"] },
"orderRefundList": [
{ "refundId": 2310200046841220, "refundStatus": 60 }
]
}
}
]
}
4. 返回字段说明
返回字段说明见官方文档: https://open.kwaixiaodian.com/docs/api?categoryId=43&apiName=open.order.detail&version=1
文档更新时间: 2024-06-07 20:51 作者:admin