Skip to content

商家小票管理

用于服务商/服务商使用此接口为特约商户开通或关闭商家小票功能。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户ID
operation_typestring操作类型
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_mchidstring子商户ID
operation_typestring操作类型
OPEN | CLOSE 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory