Skip to content

终止活动

商户可通过该接口停止支付有礼活动。

请求参数类型描述
activity_idstring活动id
php
$instance->v3->marketing->paygiftactivity->activities->_activity_id_->terminate->postAsync([
  '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}/terminate')->postAsync([
  '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}/terminate']->postAsync([
  '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_->terminate->post([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/terminate')->post([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/activities/{activity_id}/terminate']->post([
  'activity_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
activity_idstring
terminate_timestring

参阅 官方文档

Published on the GitHub by TheNorthMemory