获取订单详情
获取单个交易明细信息
1.请求参数:
请求URL:
参数名 | 类型 | 说明 | 示例 |
---|---|---|---|
appid | String | 合作伙伴AppId | uwkahf@jfs92 |
timestamp | String | 当前时间戳 | |
seller_nick | String | 1688账号 | kingdo |
sign | String | 接口签名 | 如何计算生成见示例代码 |
tid | String | 必填, 订单号 | |
sysid | String | 可空, 默认105 |
2. 请求示例代码(Java)
@Test
public void getTradeDetail() throws Exception {
String tb_seller_nick = Config.alibabaSellerNick;
//业务参数
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("tid", "2106089115686783163");//
data.put("sign", Utils.Sign(data, Config.AppSecret));
// 调用服务API
String response = doHttpRequest(Config.AlibabaOrderExtDetailUrl, data);
}
3. 返回结果如下:
{
"code": 0,
"message": "ok",
"data": [
{
"nativeLogistics": {
"caid": "DEezEm3xCMmFhpzJbcLwccRib5EiaTOSjZqicYHzOgNT6clib6eWBLqNOYRnHwn4bJyxyxDYtU-D9ByFAHnib0U1p90nfbmuf6ntxMicOSlmc2uYADYOYrSMmhyicKEshR6PfuXU155iaMIp",
"address": "茉莉公馆北大门西侧门面房开心de宠物店",
"area": "海陵区",
"areaCode": "321202",
"city": "泰州市",
"contactPerson": "林*",
"mobile": "189****2201",
"province": "江苏省",
"zip": "000000",
"townCode": "321202051",
"town": "凤凰街道",
"logisticsItems": [
{
"deliveredTime": "20240402143627000+0800",
"id": 197014332540174,
"logisticsBillNo": "36100004000863",
"logisticsCode": "LP00640238963132",
"logisticsCompanyName": "万家物流",
"status": "alreadysend",
"subItemIds": "2106089115686783163",
"type": "0"
}
]
},
"productItems": [
{
"productID": 773725426947,
"guaranteesTerms": [
{
"assuranceInfo": "卖家承诺买家签收货物后7天内,在“商品完好”的情形下,向买家提供退货服务。",
"assuranceType": "qtwlybt",
"qualityAssuranceType": "7天无理由退货",
"shortCode": "qtwlybt"
},
{
"shortCode": "qtwlybt_2"
},
{
"assuranceInfo": "卖家在承诺买家保障服务的基础上,向买家提供“48货。如卖家未履行前述承诺,买家可在指定期限内发起维权,并申请赔付。",
"assuranceType": "ssbxsfh",
"qualityAssuranceType": "48小时发货",
"shortCode": "D"
},
{
"shortCode": "D_2"
},
{
"assuranceInfo": "“在符合一定的退款申请原因、时效和退款金额范围内,可享受0秒退款服务。",
"assuranceType": "jstk_p",
"qualityAssuranceType": "极速退款",
"shortCode": "jstk_p"
},
{
"shortCode": "EOT"
}
],
"type": "common",
"orderSharedPromotionFee": "5",
"price": "100",
"promotionsFee": 5,
"tbId": 2106089115686783200,
"specId": "fc66e198c2785453507739606c9534c4",
"subItemID": 2106089115686783200,
"skuInfos": [
{
"name": "颜色",
"value": "220263-1-卡其色(无标加内衬)"
},
{
"name": "尺码",
"value": "L"
}
],
"itemDiscountFee": "5",
"quantityFactor": "1",
"unit": "件",
"name": "1MADE EXTREME 春季基础系列户外防风登山夹克外套冲锋衣 男女同",
"status": "confirm_goods_but_not_fund",
"gmtModified": "20240502143628000+0800",
"productImgUrl": [
"http://cbu01.alicdn.com/img/ibank/O1CN0182bk5D1Bs2wZvdECq_!!0-0-cib.80x80.jpg",
"http://cbu01.alicdn.com/img/ibank/O1CN0182bk5D1Bs2wZvdECq_!!0-0-cib.jpg"
],
"statusStr": "已收货",
"actualPaidFee": 9500,
"crossPromotionFee": "0",
"productSnapshotUrl": "https://trade.1688.com/order/offer_snapshot.htm?order_entry_id=2106089115686783163",
"itemAmount": "95",
"quantity": 1,
"subItemIDString": "2106089115686783163",
"gmtCreate": "20240402142658000+0800",
"productCargoNumber": "AL679744441897",
"logisticsStatus": 3,
"skuID": 5130569068392
}
],
"extAttributes": [
{
"value": "0",
"key": "b_i24h"
},
{
"value": "1",
"key": "b_i48h"
}
],
"orderRateInfo": {
"buyerRateStatus": 5,
"sellerRateStatus": 5
},
"baseInfo": {
"businessType": "cn",
"createTime": "20240402142658000+0800",
"id": 2106089115686783200,
"modifyTime": "20240502143628000+0800",
"shippingFee": "0",
"status": "confirm_goods_but_not_fund",
"totalAmount": "95",
"discount": "0",
"buyerContact": {
"phone": "86-*********000",
"imInPlatform": "a*",
"name": "暮*",
"companyName": "xxxxxxxx"
},
"tradeType": "50060",
"idOfStr": "2106089115686783163",
"buyerLoginId": "a*",
"sellerLoginId": "a*",
"buyerAlipayId": "2088912658879342",
"sellerAlipayId": "2088611492613764",
"sumProductPayment": "100",
"subBuyerLoginId": "a*",
"flowTemplateCode": "assureTrade",
"buyerLevel": "L5",
"sellerContact": {
"phone": "8-888-5676544",
"imInPlatform": "a*",
"name": "测试账号xxxxxx",
"companyName": "阿里巴巴(中国)网络技术有限公司"
},
"newStepOrderList": [
{
"gmtStart": "20240402142659000+0800",
"gmtEnd": "20240502143629000+0800",
"stepNo": 1,
"lastStep": true,
"stepName": "全款交易",
"activeStatus": 1,
"payStatus": 12,
"logisticsStatus": 3,
"payFee": "95",
"paidFee": "95",
"adjustFee": "0",
"discountFee": "5",
"postFee": "0",
"paidPostFee": "0"
}
],
"couponFee": "0",
"tradeTypeDesc": "4.0担保交易",
"payChannelList": [
"账期支付"
],
"tradeTypeCode": "assureTrade",
"payChannelCodeList": [
"account_period"
],
"ccid": "MD2HdQCOoRqUxq/0LFcHFOZnSEF6HO+IHD9IVtw0CKjyE=",
"buyerOpenUid": "BBBZfbE50xmrK6qjMJAk_y-iQ",
"buyerSubOpenUid": "BBB9CLbj_VocQWM0NVs0Xop6w",
"payTime": "20240402142720000+0800"
}
}
],
"trace_id": ""
}
说明: code为0表示成功,非0为失败,message会包含失败原因。 data字段包含订单列表的数据, 详细字段说明见文档
文档更新时间: 2024-06-05 17:42 作者:admin