Skip to content

解绑音箱设备码牌

通过该接口解除音箱和收款链接之间的绑定关系,解绑后则解除设备与收款链接、收款商户号之间的绑定关系

请求参数类型描述
device_snstring设备sn
php
$instance->v3->payDevices->openScenarioSpeaker->_device_sn_->unbind->postAsync([
  'device_sn' => 'ABCDEF',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/pay-devices/open-scenario-speaker/{device_sn}/unbind')->postAsync([
  'device_sn' => 'ABCDEF',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/pay-devices/open-scenario-speaker/{device_sn}/unbind']->postAsync([
  'device_sn' => 'ABCDEF',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payDevices->openScenarioSpeaker->_device_sn_->unbind->post([
  'device_sn' => 'ABCDEF',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/pay-devices/open-scenario-speaker/{device_sn}/unbind')->post([
  'device_sn' => 'ABCDEF',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay-devices/open-scenario-speaker/{device_sn}/unbind']->post([
  'device_sn' => 'ABCDEF',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring子商户
device_snstring设备sn
bind_statestring绑定状态
OPEN_SCENARIO_SPEAKER_BIND_STATE_UNBOND | OPEN_SCENARIO_SPEAKER_BIND_STATE_BINDED 枚举值之一
code_urlstring收款链接url

参阅 官方文档

Published on the GitHub by TheNorthMemory