条件查询活动列表
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/marketing/activity/batchquery
错误码
公共错误码
业务错误码
状态码 | 错误码 | 错误描述 | 解决方案 |
---|---|---|---|
400 | SYSTEM_ERROR | 服务器异常 | 可能发生了网络或者系统异常,导致服务调用失败,商户可以用同样的请求发起重试 |
400 | INVALID_PARAMETER | 参数有误参数非法 | 请根据接口返回的参数非法的具体错误信息,修改参数后进行重试。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/marketing/activity/batchquery' \
--header 'authorization: ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign' \
--header 'alipay-request-id: $requestid' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant_id":"2088202967380463",
"activity_status":"ACTIVE",
"page_num":1,
"page_size":20,
"merchant_access_mode":"SELF_MODE"
}'
响应示例响应示例
{
"activity_lite_infos":[
{
"activity_base_info":{
"activity_id":"2016042700826004508401111111",
"belong_merchant_info":{
"merchant_id":"2088102111111111"
},
"activity_status":"ACTIVE"
},
"voucher_deduct_info":{
"voucher_type":"FIX_VOUCHER",
"fix_voucher_info":{
"amount":"50.00",
"floor_amount":"1000.00"
},
"discount_voucher_info":{
"discount":"6.5",
"ceiling_amount":"50.00",
"floor_amount":"1000.00"
},
"special_voucher_info":{
"special_amount":"10.00",
"floor_amount":"1000.00"
},
"exchange_voucher_info":{
"amount":"100.00",
"floor_amount":"1000.00",
"biz_type":"GROUP_BUY_EXCHANGE_VOUCHER"
}
},
"voucher_display_pattern_info":{
"brand_name":"商家优惠",
"brand_logo_url":"https://gw.alipayobjects.com/mdn/rms_9822d7/afts/img/A*1F4eSaaPHRQAAAAAAAAAAABkARQnAQ"
},
"voucher_available_scope_info":{
"voucher_available_goods_info":{
"goods_name":"美味甜甜圈",
"origin_amount":"100.00"
}
}
}
],
"page_num":2,
"page_size":20,
"total_size":"200"
}
请求参数
Header 参数
authorization
string
必需
示例值:
ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign
alipay-request-id
string
必需
示例值:
$requestid
Content-Type
string
必需
示例值:
application/json
Body 参数application/json