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

{{item.type_name}}:

API 市场 / 唯品会维权订单
 

唯品会维权订单
吐槽建议
应用场景:
用于查询订单结算后,由于退款、风控发生的异常情况导致追回佣金的场景
接口说明:
最大查询时间区间默认不超过60天
使用人数: 10+
唯品会维权订单 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

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

请求方式:GET

公共参数:
请求参数:

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

返回数据:
调用示例:
$data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.2.1",
        ...
    ];
    $host = "https://openapi.dataoke.com/open-api/vip/refund-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 VipRefundOrderList();
    $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/refund-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 VipRefundOrderList();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.0.0");

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

返回示例:
{
    "cache": false,
    "code": 0,
    "data": {
        "page": 0,
        "pageSize": 20,
        "refundOrderInfoList": [],
        "total": 0
    },
    "msg": "ok",
    "requestId": "c311bbe88d8d4d83eecde532c16e2cd6",
    "time": 1655200788063106
}
错误码列表: