Skip to content

查询活动详情接口

商户创建活动后,可以通过该接口查询支付有礼的活动详情,用于管理活动。

请求参数类型描述
activity_idstring活动id
php
$instance->v3->marketing->paygiftactivity->activities->_activity_id_->getAsync([
  'activity_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}')->getAsync([
  'activity_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/paygiftactivity/activities/{activity_id}']->getAsync([
  'activity_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->paygiftactivity->activities->_activity_id_->get([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}')->get([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/activities/{activity_id}']->get([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
activity_idstring
activity_typestring活动类型
FULL_SEND_ACT_TYPE | STEP_SEND_ACT_TYPE | SPECIFIC_SEND_ACT_TYPE 枚举值之一
activity_statusstring活动状态
CREATE_ACT_STATUS | ONGOING_ACT_STATUS | TERMINATE_ACT_STATUS | STOP_ACT_STATUS | OVER_TIME_ACT_STATUS | CREATE_ACT_FAILED 枚举值之一
creator_merchant_idstring
belong_merchant_idstring
pause_timestring
recovery_timestring
create_timestring
update_timestring
activity_base_infoobject
activity_namestring
activity_second_titlestring
merchant_logo_urlstring
background_colorstring背景颜色
Color010 | Color020 | Color030 | Color040 | Color050 | Color060 | Color070 | Color080 | Color090 | Color100 枚举值之一
begin_timestring
end_timestring
available_periodsobject可用时间段
available_timeobject[]
begin_timestring可用开始时间
end_timestring可用结束时间
available_day_timeobject[]
begin_day_timestring每日可用开始时间
end_day_timestring每日可用结束时间
out_request_nostring商户请求单号
delivery_purposestring投放目的
OFF_LINE_PAY | JUMP_MINI_APP 枚举值之一
mini_programs_appidstring
mini_programs_pathstring
advanced_settingobject
delivery_user_categorystring奖品类型
BUSIFAVOR 枚举值
merchant_member_appidstring
payment_modeobject
payment_scene_liststring[]APP_SCENE 枚举值
payment_method_informationobject
payment_methodstring
bank_abbreviationstring
goods_tagsstring[]
award_send_ruleobject
full_send_ruleobject
award_typestring奖品类型
BUSIFAVOR 枚举值
merchant_optionstring发券商户号选项
IN_SEVICE_COUPON_MERCHANT | MANUAL_INPUT_MERCHANT 枚举值之一
transaction_amount_minimuminteger
send_contentstring发放内容
SINGLE_COUPON | GIFT_PACKAGE 枚举值之一
award_listobject[]
stock_idstring
original_image_urlstring
thumbnail_urlstring
step_send_ruleobject
award_typestring奖品类型
BUSIFAVOR 枚举值
merchant_optionstring发券商户号选项
IN_SEVICE_COUPON_MERCHANT | MANUAL_INPUT_MERCHANT 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory