Skip to content

删除分账接收方

服务商发起删除分账接收方请求。删除后,不再支持品牌主或门店分到该分账接收方。

请求参数类型描述
jsonobject声明请求的JSON数据结构
brand_mchidstring品牌主商户号
appidstring公众账号ID
sub_appidstring子商户公众账号ID
typestring分账接收方类型
accountstring分账接收方账号
php
$instance->v3->brand->profitsharing->receivers->delete->postAsync([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/profitsharing/receivers/delete')->postAsync([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/profitsharing/receivers/delete']->postAsync([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->profitsharing->receivers->delete->post([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/profitsharing/receivers/delete')->post([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/profitsharing/receivers/delete']->post([
  'json' => [
    'brand_mchid' => '1900000108',
    'appid' => 'wx8888888888888888',
    'sub_appid' => 'wx8888888888888889',
    'type' => 'MERCHANT_ID',
    'account' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
brand_mchidstring品牌主商户号
typestring分账接收方类型
accountstring分账接收方账号

参阅 官方文档

Published on the GitHub by TheNorthMemory