Skip to content

点金计划管理

用于服务商/服务商为特约商户开通或关闭点金计划。

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

参阅 官方文档

Published on the GitHub by TheNorthMemory