- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
订单优惠前置咨询
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/marketing/campaign/order/voucher/consult
alipay.marketing.campaign.order.voucher
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/marketing/campaign/order/voucher/consult' \
--header 'Content-Type: application/json' \
--data-raw '{
"business_param": "{\"useBigAmountSkipOrderThold\":\"N\"}",
"item_consult_list": [
{
"item_id": "20210105003",
"price": "20.29",
"quantity": "3"
}
],
"order_amount": "120.87",
"specified_app_id": "2021001159604390",
"scene_code": "[\"DEFAULT\"]"
}'
响应示例响应示例
200 - 示例 1
{
"optimal_total_promo_amount": "15.50",
"voucher_consult_list": [
{
"item_promo_info": {
"item_consult_list": [
{
"item_id": "20210105003",
"promo_amount": "3.0",
"promo_count": "2"
}
],
"item_cover_pic": "https://gw.alipayobjects.com/mdn/rms_9822d7/afts/img/A*1F4eSaaPHRQAAAAAAAAAAABkARQnAQ",
"item_desc": "宝洁洗护用品促销",
"item_name": "宝洁洗护用品",
"item_detail_pic_list": "[\"https://gw.alipayobjects.com/mdn/rms_9822d7/afts/img/A*1F4eSaaPHRQAAAAAAAAAAABkARQnAQ\"]"
},
"ceiling_amount": "4.0",
"optimal": true,
"promo_amount": "30.00",
"promo_text": "大杯拿铁限时享受满10减1",
"promo_type": "FIX",
"reduction_amount": "2.0",
"reduction_ratio": "0.7",
"specified_amount": "32.0",
"threshold_amount": "120.00",
"voucher_id": "202010220007300232330005DGEE",
"voucher_name": "商家全场5折优惠",
"voucher_type": "ALL"
}
]
}
请求参数
Query 参数
auth_token
string
用户授权令牌
Body 参数application/json
business_param
string
可选
示例值:
{"useBigAmountSkipOrderThold":"N"}
item_consult_list
array[object (ItemConsultRequest) {3}]
可选
item_id
string
商品id
示例值:
20210105003
price
string
可选
示例值:
20.29
quantity
string
商品数量
示例值:
3
order_amount
string
可选
示例值:
120.87
specified_app_id
string
可选
示例值:
2021001159604390
scene_code
array[string]
可选
示例值:
["DEFAULT"]
示例
返回响应
🟢200common response
application/json
Body
optimal_total_promo_amount
string
可选
示例值:
15.50
voucher_consult_list
array[object (VoucherConsultInfo) {13}]
优惠券咨询结果列表
item_promo_info
object (ItemPromoInfo)
可选
ceiling_amount
string
可选
示例值:
4.0
optimal
boolean
可选
示例值:
true
promo_amount
string
可选
示例值:
30.00
promo_text
string
优惠文案
示例值:
大杯拿铁限时享受满10减1
promo_type
string
可选
示例值:
FIX
reduction_amount
string
可选
示例值:
2.0
reduction_ratio
string
可选
示例值:
0.7
specified_amount
string
可选
示例值:
32.0
threshold_amount
string
可选
示例值:
120.00
voucher_id
string
券id
示例值:
202010220007300232330005DGEE
voucher_name
string
券名称
示例值:
商家全场5折优惠
voucher_type
string
可选
示例值:
ALL
🔴500请求失败