Skip to content

新增活动发券商户号

商户创建活动后,可以通过该接口增加支付有礼的发券商户号,用于管理活动。

请求参数类型描述
activity_idstring活动id
jsonobject声明请求的JSON数据结构
merchant_id_liststring[]
add_request_nostring
php
$instance->v3->marketing->paygiftactivity->activities->_activity_id_->merchants->add->postAsync([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
])
->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}/merchants/add')->postAsync([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
])
->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}/merchants/add']->postAsync([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
])
->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_->merchants->add->post([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/merchants/add')->post([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/activities/{activity_id}/merchants/add']->post([
  'activity_id' => '',
  'json' => [
    'merchant_id_list' => ['string'],
    'add_request_no'   => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
activity_idstring
add_timestring
invalid_merchant_id_listobject[]
mchidstring
invalid_reasonstring

参阅 官方文档

Published on the GitHub by TheNorthMemory