Skip to content

添加及删除零售小店活动业务代理信息

添加零售小店活动业务代理

该接口为服务商或商户给零售小店活动添加业务代理的专用接口。 使用对象:活动创建方商户号、活动归属品牌的品牌主商户号或品牌经营商户号。

请求参数类型描述
activity_idstring零售小店活动ID
jsonobject声明请求的JSON数据结构
representative_info_listobject[]业务代理信息列表
openidstring业务代理的OpenID
out_request_nostring请求业务单据号
add_timestring添加时间
php
$instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_activity_id_->representative->putAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
])
->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/retail-store-act/{activity_id}/representative')->putAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative']->putAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_activity_id_->representative->put([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative')->put([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative']->put([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'add_time'                 => '2015-05-20T13:29:35+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
activity_idstring零售小店活动ID
failed_representative_info_listobject[]添加失败业务代理信息列表
openidstring业务代理的OpenID
add_timestring添加时间

参阅 官方文档

删除零售小店活动业务代理

该接口为服务商或商户给零售小店活动删除业务代理的专用接口。 使用对象:活动创建方商户号、活动归属品牌的品牌主商户号或品牌经营商户号。

请求参数类型描述
activity_idstring零售小店活动ID
jsonobject声明请求的JSON数据结构
representative_info_listobject[]业务代理信息列表
openidstring业务代理的OpenID
out_request_nostring请求业务单据号
delete_timestring删除时间
php
$instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_activity_id_->representative->deleteAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
])
->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/retail-store-act/{activity_id}/representative')->deleteAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative']->deleteAsync([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_activity_id_->representative->delete([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative')->delete([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative']->delete([
  'activity_id' => '3118550000000004',
  'json' => [
    'representative_info_list' => [[
      'openid' => 'oK7fFt8zzEZ909XH-LE2#',
    ],],
    'out_request_no'           => '1002600620019090123143254436',
    'delete_time'              => '2015-05-20T13:29:35.120+08:00',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
activity_idstring零售小店活动ID
failed_representative_info_listobject[]删除失败业务代理信息列表
openidstring业务代理的OpenID
delete_timestring删除时间

参阅 官方文档

Published on the GitHub by TheNorthMemory