点金计划管理
用于服务商/服务商为特约商户开通或关闭点金计划。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| sub_mchid | string | 子商户ID |
| operation_type | string | 操作类型OPEN | CLOSE 枚举值之一 |
php
$instance->v3->goldplan->merchants->changegoldplanstatus->postAsync([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/goldplan/merchants/changegoldplanstatus')->postAsync([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/goldplan/merchants/changegoldplanstatus']->postAsync([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->goldplan->merchants->changegoldplanstatus->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/goldplan/merchants/changegoldplanstatus')->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/goldplan/merchants/changegoldplanstatus']->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 子商户ID |
参阅 官方文档