获取订单ID列表

获取订单ID列表

1.请求参数:

请求URL:

POST https://kf.fw199.com/gateway/wxv/order/list

参数名称 参数类型 是否必须 示例值 参数描述
appid String 合作伙伴AppId
timestamp String 1657525936 当前Unix时间戳,秒
seller_nick String 38173182 店铺账号,对应蜂巢授权返回seller_nick字段
sign String

业务参数

参数名称 参数类型 是否必须 参数描述
end_time string 结束时间
netxt_key string 分页参数,上一页请求返回
order_status float64 订单状态 (Order status filter; values: 10 - 待付款 (Pending Payment), 20 - 待发货 (Pending Shipment), 21 - 部分发货 (Partial Shipment), 30 - 待收货 (Pending Receipt), 100 - 完成 (Completed), 250 - 订单取消 (Cancelled))
page_size string 每页条数(最大1000)
start_time string 开始时间

2. 请求示例代码(Java)

@Test  
public void GetOrderList() throws Exception {  

     String sellerNick = "xxx";
    //业务参  
    Map<String, String> data = new HashMap();  
    data.put("appid",  Config.AppId);  
    data.put("seller_nick", sellerNick);   
    Long timestamp = System.currentTimeMillis();  
    data.put("timestamp", timestamp.toString());   
 
      data.put("start_time", "2024/07/27 00:00:00");   
      data.put("end_time", "2024/07/29 00:00:00"); 
    // 参数签名  
    data.put("sign", Utils.Sign(data, Config.AppSecret));  
    String result = doHttpRequest(apiUrl, data);  
    System.out.println("result:"+result);  
}

3. 返回结果

返回结果如下

{
    "code": 0,
    "message": "获取成功",
    "data": {
        "order_id_list": [
            "3704612354559743232",
            "3704849110714209536"
        ],
        "next_key": "THE_NEXT_KEY_NEW",
        "has_more": true
    }
}

返回code为0表示成功, 非0为失败,失败时message会有失败原因。

文档更新时间: 2025-12-29 20:25   作者:admin