Skip to content

门店报名品牌加价购活动

指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。

请求参数类型描述
activity_idstring活动ID
jsonobject声明请求的JSON数据结构
caller_merchant_idstring调用报名活动API的商户的商户号
apply_infosobject[]门店报名信息
store_infoobject
store_idstring门店ID
accounting_merchant_idstring门店补贴入账商户号
merchant_idstring门店商户号
goods_original_pricenumber商品原价
php
$instance->v3->marketing->goodsSubsidyActivity->activity->_activity_id_->apply->postAsync([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/goods-subsidy-activity/activity/{activity_id}/apply')->postAsync([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/activity/{activity_id}/apply']->postAsync([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->activity->_activity_id_->apply->post([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/activity/{activity_id}/apply')->post([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/activity/{activity_id}/apply']->post([
  'activity_id' => '',
  'json' => [
    'caller_merchant_id' => '',
    'apply_infos' => [[
      'store_info' => [
        'store_id' => '',
        'accounting_merchant_id' => '',
        'merchant_id' => '',
      ],
      'goods_original_price' => 0,
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
return_messagestring返回结果文案
failed_apply_infosobject[]失败的报名记录
store_infoobject
store_idstring门店ID
accounting_merchant_idstring门店补贴入账商户号
merchant_idstring门店商户号
goods_original_pricenumber商品原价
succeed_apply_infosobject[]成功的报名记录
store_infoobject
store_idstring门店ID
accounting_merchant_idstring门店补贴入账商户号
merchant_idstring门店商户号
goods_original_pricenumber商品原价

参阅 官方文档

Published on the GitHub by TheNorthMemory