获取订单详情
(ASCP供应链中台)订单详情查看(卖家视角)
一、请求参数
请求URL:
| 参数名 | 类型 | 必须 | 示例值 | 说明 |
|---|---|---|---|---|
| appid | String | true | uwkahf@jfs92 | 合作伙伴AppId |
| timestamp | String | true | 1633618722 | 当前时间戳 |
| seller_nick | String | true | kingdo | 1688账号 |
| sign | String | true | 999de41d862efaa6f1084ead3b3ba480 | 如何计算生成见示例代码 |
| orderId | String | true | 订单号 |
二、请求示例代码
Java
@Test public void GetC2MOrderDetail() throws Exception { String seller_nick = Config.alibabaSellerNick; //业务参数 Map<String, String> data = new HashMap<String, String>(); data.put("appid", Config.AppId); data.put("seller_nick", seller_nick); Long timestamp = System.currentTimeMillis() / 1000; data.put("timestamp", timestamp.toString()); data.put("orderId", "4806051554424562628"); data.put("sign", Utils.Sign(data, Config.AppSecret)); // 调用服务API String response = doHttpRequest(Config.GetC2MOrderDetailUrl, data);
}三、返回结果
返回结果如下
{ "code": 0, "message": "ok", "data": { "baseInfo": { "currency": "CNY", "id": "4806051554424562628", "modifyTime": "20251024164018000+0800", "createTime": "20251013195641000+0800", "receivingTime": "20251024164018000+0800", "allDeliveredTime": null, "completeTime": "20251024164018000+0800", "buyerContact": { "name": "于*丽", "mobile": "15*******35", "phone": null, "province": "河南省", "city": "开封市", "area": "尉氏县", "town": "大桥乡", "address": "大桥乡尉氏银星医院人民路西段", "zip": "000000", "caid": null, "oaid": "211uxl8fHlVoWhY1r5Urb0C2Hn4eG2bEibvPZ4QjylTHKI8CLxPpJ5fhiaEiaVm2FwYkAJgEHtv2O7mmTEHS1GAic0qyJThkaBm" }, "status": "success", "refundStatus": "", "remark": null, "ascpSupplierId": "1000000000353948", "shippingFee": "0", "totalAmount": "1384", "ascpSupplierName": "义乌市利多邦臣包装有限公司", "payTime": "20251013195645000+0800" }, "productItems": [ { "productID": 860049406186, "skuID": 5845222311193, "name": "多功能文具盒女孩款2024小学生库洛米双层新款一年级笔盒高颜值大容量可爱卡通儿童幼儿园笔袋女童铅笔盒", "quantity": "1", "productImgUrl": [ "https://img.alicdn.com/imgextra/i2/2215813595337/O1CN01WkgnHk1pIOosM69WW_!!2215813595337-0-scmitem176000.jpg" ], "status": "success", "skuInfos": [ { "name": "颜色分类", "value": "草莓酪酪粉+送美乐蒂贴纸" } ], "subItemID": "4806051554424562628", "refundId": null, "refundStatus": null, "itemAmount": "1384", "cargoNumber": null, "productCargoNumber": null, "extendFields": null, "productItemExtendFields": null, "productItemExtendsFileds": [ { "key": "consignTime", "value": "2_2" } ] } ] }, "trace_id": "2dfec2a9-b917-4ce8-8ddf-1e90f191a303"}说明: code为0表示成功,非0为失败,message会包含失败原因。 返回的字段说明见文档