绑定收款商户号
给品牌门店绑定收款商户号。绑定成功后,商户号可为门店收款。一个门店目前最多只能绑定三个收款商户号。
请求参数 | 类型 | 描述 |
---|---|---|
store_id | string | 品牌门店ID |
json | object | 声明请求的JSON 数据结构 |
brand_id | string | 品牌ID |
mchid | string | 门店收款商户号 |
company_name | string | 门店收款主体 |
php
$instance->v3->brand->partner->store->brandstores->_store_id_->bindrecipient->postAsync([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/partner/store/brandstores/{store_id}/bindrecipient')->postAsync([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/partner/store/brandstores/{store_id}/bindrecipient']->postAsync([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->partner->store->brandstores->_store_id_->bindrecipient->post([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/partner/store/brandstores/{store_id}/bindrecipient')->post([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/partner/store/brandstores/{store_id}/bindrecipient']->post([
'store_id' => '20488000',
'json' => [
'brand_id' => '123456789',
'mchid' => '1230000109',
'company_name' => '腾讯科技(深圳)有限公司',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
brand_id | string | 品牌ID |
store_id | string | 品牌门店ID |
mchid | string | 门店收款商户号 |
company_name | string | 门店收款主体 |
recipient_state | string | 收款绑定状态CONFIRMED | ADMIN_REJECTED | CONFIRMING | TIMEOUT_REJECTED 枚举值之一 |
参阅 官方文档