参数名称
youzan.ump.coupon.consume.fetchlogs.get.3.0.1
计费
2025-02-07 02:29:14
API名称:获取优惠券/优惠码领取记录
API描述
请求参数
返回参数
请求示例
php
java
curl
nodejs
<?php
require_once './vendor/autoload.php';
$accessToken = 'YOUR_TOKEN';
$client = new \Youzan\Open\Client($accessToken);
$method = 'youzan.ump.coupon.consume.fetchlogs.get';
$apiVersion = '3.0.1';
//设置参数
$params =[
"end_taked"=>"2025-09-09 17=>12=>41",
"start_taked"=>"2024-09-09 17=>12=>41",
"page_no"=>1,
"order_type"=>"1",
"coupon_group_id"=>"33867069",
"page_size"=>50
];
$response = $client->post($method, $apiVersion, $params);
var_dump($response);
?>
响应示例
{
"trace_id": "bifrost-gateway-0ad734ed-2071423493-c43ebf5a",
"code": 200,
"data": {
"fetchlogs": [
{
"used_in_order_no": "",
"receive_source": "彩虹桥网关",
"send_kdt_id": 491391,
"mobile": "17603435626",
"promocard_id": 4062019603,
"created_at": 1614048743000,
"yz_open_id": "tSSH9lzx714879996966998016",
"fans_type": 0,
"title": "11111xx",
"taked_at": 1614048743000,
"fans_id": 0,
"is_used": 0
},
{
"used_in_order_no": "",
"receive_source": "彩虹桥网关",
"send_kdt_id": 491391,
"mobile": "17603435626",
"promocard_id": 4062019602,
"created_at": 1614047997000,
"yz_open_id": "tSSH9lzx714879996966998016",
"fans_type": 0,
"title": "11111xx",
"taked_at": 1614047997000,
"fans_id": 0,
"is_used": 0
},
{
"used_in_order_no": "",
"receive_source": "普通领取",
"send_kdt_id": 491391,
"mobile": "15958042967",
"promocard_id": 4062017800,
"created_at": 1614006062000,
"yz_open_id": "tJnHtEyZ663821654807281664",
"fans_type": 0,
"title": "11111xx",
"taked_at": 1614006062000,
"fans_id": 0,
"is_used": 0
}
],
"total_results": 3
},
"success": true,
"message": "successful"
}
异常示例
{
"trace_id": "bifrost-gateway-0ad734ed-2071423732-c43ebf02",
"code": 161201014,
"data": {
"fetchlogs": []
},
"success": false,
"message": "活动不存在"
}
返回码
返回码 | 描述 | 解决方案 |
---|---|---|
200 | 请求成功 | 请求成功 |
161201014 | 活动不存在 | 检查活动信息是否正确 |
如何获得此API权限
拥有此API的能力包 | 拥有此API的能力包分类 | 可获得此API能力包的应用类目 |
---|---|---|
优惠券管理 | 营销管理 | 有赞教育、客户关系CRM、门店POS、iPaaS数据集成、分销获客、游戏互动、老客复购、客服管理、设计定制、内容工具、内容营销、客户管理、功能定制、模板定制、触达通道、活动工具、推广投放、打折促单、裂变拉新、行业解决方案、系统打通(连接器)、场景解决方案、有赞微商城、有赞零售、 |
优惠码管理 | 营销管理 | 有赞教育、客户关系CRM、门店POS、iPaaS数据集成、分销获客、老客复购、客服管理、设计定制、内容工具、内容营销、客户管理、功能定制、模板定制、触达通道、活动工具、推广投放、打折促单、裂变拉新、行业解决方案、系统打通(连接器)、场景解决方案、有赞微商城、有赞零售、 |
此篇文档是否对你有帮助?
文档反馈
