创建全场满额送活动
商户可以创建满额送活动,用户支付后送全场券,提升交易额。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
activity_base_info | object | |
activity_name | string | |
activity_second_title | string | |
merchant_logo_url | string | |
background_color | string | 背景颜色Color010 | Color020 | Color030 | Color040 | Color050 | Color060 | Color070 | Color080 | Color090 | Color100 枚举值之一 |
begin_time | string | |
end_time | string | |
available_periods | object | 可用时间段 |
available_time | object[] | |
begin_time | string | 可用开始时间 |
end_time | string | 可用结束时间 |
available_day_time | object[] | |
begin_day_time | string | 每日可用开始时间 |
end_day_time | string | 每日可用结束时间 |
out_request_no | string | 商户请求单号 |
delivery_purpose | string | 投放目的OFF_LINE_PAY | JUMP_MINI_APP 枚举值之一 |
mini_programs_appid | string | |
mini_programs_path | string | |
advanced_setting | object | |
delivery_user_category | string | 奖品类型BUSIFAVOR 枚举值 |
merchant_member_appid | string | |
payment_mode | object | |
payment_scene_list | string[] | APP_SCENE 枚举值 |
payment_method_information | object | |
payment_method | string | |
bank_abbreviation | string | |
goods_tags | string[] | |
award_send_rule | object | |
award_type | string | 奖品类型BUSIFAVOR 枚举值 |
merchant_option | string | 发券商户号选项IN_SEVICE_COUPON_MERCHANT | MANUAL_INPUT_MERCHANT 枚举值之一 |
transaction_amount_minimum | integer | |
send_content | string | 发放内容SINGLE_COUPON | GIFT_PACKAGE 枚举值之一 |
award_list | object[] | |
stock_id | string | |
original_image_url | string | |
thumbnail_url | string | |
merchant_id_list | string[] |
php
$instance->v3->marketing->paygiftactivity->uniqueThresholdActivity->postAsync([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/paygiftactivity/unique-threshold-activity')->postAsync([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/paygiftactivity/unique-threshold-activity']->postAsync([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->paygiftactivity->uniqueThresholdActivity->post([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/unique-threshold-activity')->post([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/unique-threshold-activity']->post([
'json' => [
'activity_base_info' => [
'activity_name' => '',
'activity_second_title' => '',
'merchant_logo_url' => '',
'background_color' => 'Color010',
'begin_time' => '',
'end_time' => '',
'available_periods' => [
'available_time' => [[
'begin_time' => '',
'end_time' => '',
],],
'available_day_time' => [[
'begin_day_time' => '',
'end_day_time' => '',
],],
],
'out_request_no' => '',
'delivery_purpose' => 'OFF_LINE_PAY',
'mini_programs_appid' => '',
'mini_programs_path' => '',
],
'advanced_setting' => [
'delivery_user_category' => 'BUSIFAVOR',
'merchant_member_appid' => '',
'payment_mode' => [
'payment_scene_list' => ['string'],
'payment_method_information' => [
'payment_method' => '',
'bank_abbreviation' => '',
],
],
'goods_tags' => ['string'],
],
'award_send_rule' => [
'award_type' => 'BUSIFAVOR',
'merchant_option' => 'IN_SEVICE_COUPON_MERCHANT',
'transaction_amount_minimum' => 0,
'send_content' => 'SINGLE_COUPON',
'award_list' => [[
'stock_id' => '',
'original_image_url' => '',
'thumbnail_url' => '',
],],
'merchant_id_list' => ['string'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
activity_id | string | |
create_time | string |
参阅 官方文档