门店报名品牌加价购活动
指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。
请求参数 | 类型 | 描述 |
---|---|---|
activity_id | string | 活动ID |
json | object | 声明请求的JSON 数据结构 |
caller_merchant_id | string | 调用报名活动API的商户的商户号 |
apply_infos | object[] | 门店报名信息 |
store_info | object | |
store_id | string | 门店ID |
accounting_merchant_id | string | 门店补贴入账商户号 |
merchant_id | string | 门店商户号 |
goods_original_price | number | 商品原价 |
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_message | string | 返回结果文案 |
failed_apply_infos | object[] | 失败的报名记录 |
store_info | object | |
store_id | string | 门店ID |
accounting_merchant_id | string | 门店补贴入账商户号 |
merchant_id | string | 门店商户号 |
goods_original_price | number | 商品原价 |
succeed_apply_infos | object[] | 成功的报名记录 |
store_info | object | |
store_id | string | 门店ID |
accounting_merchant_id | string | 门店补贴入账商户号 |
merchant_id | string | 门店商户号 |
goods_original_price | number | 商品原价 |
参阅 官方文档