大淘客,让选品更简单! |

{{item.type_name}}:

API 市场 / 唯品会订单列表
 

唯品会订单列表
吐槽建议
应用场景:
当处理佣金结算、查看返利、查询订单数据的时候,调用该接口,获取订单数据,统计金额
接口说明:
最大查询时间区间默认不超过10天
使用人数: 10+
唯品会订单列表 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/vip/order-list 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
$data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.2.1",
        ...
    ];
    $host = "https://openapi.dataoke.com/open-api/vip/order-list";
    $url = $host;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $header = [
        'Content-Type: application/json',
        'Client-Sdk-Type: php',
    ];
    curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new VipOrderList();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.2.1");

    $res = $client->setParams([])->request();
 //唯品会订单列表
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/open-api/vip/order-list";
    $url = $host . '?' . http_build_query($data);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new VipOrderList();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.0.0");

    $res = $client->setParams([])->request();

返回示例:
{
    "cache": false,
    "code": 0,
    "data": {
        "orderInfoList": [
            {
                "appKey": "0a0007bb",
                "channelTag": "1213113",
                "commission": "0.0",
                "commissionEnterTime": 31507200000,
                "detailList": [
                    {
                        "brandStoreName": "adidas",
                        "brandStoreSn": "10000223",
                        "commCode": "384271",
                        "commName": "自营|运动鞋",
                        "commission": "0.00",
                        "commissionRate": "0.00",
                        "commissionTotalCost": "1138.00",
                        "goodsCount": 1,
                        "goodsFinalPrice": "1138.00",
                        "goodsId": "6919845112065033873",
                        "goodsName": "ULTRABOOST 21低帮男鞋舒适休闲跑步鞋户外健身运动鞋",
                        "goodsThumb": "https://a.vpimg4.com/upload/merchandise/pdcvis/2022/05/15/28/d62c0fe2-8585-409a-a38a-147f01d4be26_750x750_50.jpg",
                        "isSubsidyTaskOrder": false,
                        "orderSource": "wap",
                        "sizeId": "6919845112352790161",
                        "spuId": "SPU-1073F56680300027",
                        "status": 0
                    }
                ],
                "isPrepay": 0,
                "isSplit": 0,
                "lastUpdateTime": 1654734837000,
                "newCustomer": 2,
                "orderSn": "22060739347905",
                "orderSource": "wap",
                "orderSubStatusName": "已失效",
                "orderTime": 1654582189000,
                "orderTrackReason": 0,
                "pid": "1213113",
                "selfBuy": 1,
                "settled": 0,
                "statParam": "",
                "status": 0,
                "totalCost": "1138.0"
            }
        ],
        "page": 1,
        "pageSize": 20,
        "total": 1
    },
    "msg": "ok",
    "requestId": "3d71f1dd7d06027a49a89c5ba789f1a7",
    "time": 1655202378550318
}
错误码列表: