商家小票管理
用于服务商/服务商使用此接口为特约商户开通或关闭商家小票功能。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户ID |
operation_type | string | 操作类型OPEN | CLOSE 枚举值之一 |
php
$instance->v3->goldplan->merchants->changecustompagestatus->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/changecustompagestatus')->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/changecustompagestatus']->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->changecustompagestatus->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/goldplan/merchants/changecustompagestatus')->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/goldplan/merchants/changecustompagestatus']->post([
'json' => [
'sub_mchid' => '1234567890',
'operation_type' => 'OPEN',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户ID |
operation_type | string | 操作类型OPEN | CLOSE 枚举值之一 |
参阅 官方文档