全部
淘宝客
在线测试

美团领券结果查询


接口地址: http://api.vv-tool.com/tool/waimai/meituan_couponList


接口介绍: 根据渠道参数 sid,可以查询时间段内领取的券列表点击查看详情


请求方式: POST


返回格式: JSON


接口收费: 联系客服


频率限制: 10 次/秒


请求头参数

参数 类型 必选 示例
Authorization string 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

请求参数

参数 类型 必选 描述
startTime string 查询领券开始时间秒级时间戳
endTime string 查询领券结束时间秒级时间戳,开始和结束时间的间隔不能超过 7 天
page string 分页参数,起始值从 1 开始
limit string 每页显示数据条数,最大为 1000 条
sid string 渠道用户标识
type string 4-外卖 6-闪购

请求示例

startTime:123456789
endTime:123456789
page:1
limit:1
sid:123456
type:4

请求代码示例

cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/waimai/meituan_couponList' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--form 'startTime="123456789"' \
--form 'endTime="123456789"' \
--form 'page="1"' \
--form 'limit="1"' \
--form 'sid="123456"' \
--form 'type="4"'

PHP请求代码示例
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/waimai/meituan_couponList',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('startTime' => '123456789','endTime' => '123456789','page' => '1','limit' => '1','sid' => '123456','type' => '4'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;



JAVA请求代码示例

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
  .addFormDataPart("startTime","123456789")
  .addFormDataPart("endTime","123456789")
  .addFormDataPart("page","1")
  .addFormDataPart("limit","1")
  .addFormDataPart("sid","123456")
  .addFormDataPart("type","4")
  .build();
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/waimai/meituan_couponList")
  .method("POST", body)
  .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .build();
Response response = client.newCall(request).execute();

响应参数

参数 类型 描述
code int 错误码 0 为成功
msg string 返回码描述
msec int 接口执行时间
time int 接口返回时间
couponTime string 领券日期 yyyy-MM-dd HH:mm:ss
money string 券优惠金额
minUseMoney string 用券门槛金额
couponName string 券名称
couponType string 券类型(外卖券固定为 WAIMAI_COUPON)
beginTime string 券生效时间,秒级时间戳
endTime string 券失效时间,秒级时间戳
couponCode string 券唯一标识
total string 领券总数

返回数据

{
    "code": 0,
    "msg": "成功",
    "msec": 558,
    "time": 1612403448,
    "data": {
    "total": 14,
    "dataList": [
    {
    "appKey": "a144a9fa40a42c55af00214bb4bb3993971",
    "sid": "2dafengchewaimai",
    "couponTime": "2020-11-17 11:50:27",
    "money": "4",
    "minUseMoney": "30",
    "couponName": "天天神券【专享】",
    "couponType": "WAIMAI_COUPON",
    "couponCode": "0cc2c53cb4c678b5db3264e4bef05208",
    "beginTime": "1605585027",
    "endTime": "1605715199"
    },
    {
    "appKey": "a144a9fa40a42c55af00214bb4bb3993971",
    "sid": "2dafengchewaimai",
    "couponTime": "2020-11-17 11:50:27",
    "money": "6",
    "minUseMoney": "30",
    "couponName": "蜜雪冰城品牌红包【专享】",
    "couponType": "WAIMAI_COUPON",
    "couponCode": "ad9bcc62f73dcf7e6be4f0c78a275820",
    "beginTime": "1605585027",
    "endTime": "1605801599"
    },
    {
    "appKey": "a144a9fa40a42c55af00214bb4bb3993971",
    "sid": "2dafengchewaimai",
    "couponTime": "2020-11-17 11:50:27",
    "money": "6",
    "minUseMoney": "60",
    "couponName": "天天神券【专享】",
    "couponType": "WAIMAI_COUPON",
    "couponCode": "ad3746ec2b010a8b639bc278cbc26cd0",
    "beginTime": "1605585027",
    "endTime": "1605715199"
}
]
}
}
    


响应代码

代码 代码描述 解决方案

公共错误码点击查看详情