解绑音箱设备码牌
通过该接口解除音箱和收款链接之间的绑定关系,解绑后则解除设备与收款链接、收款商户号之间的绑定关系
| 请求参数 | 类型 | 描述 |
|---|---|---|
| device_sn | string | 设备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_mchid | string | 子商户 |
| device_sn | string | 设备sn |
| bind_state | string | 绑定状态OPEN_SCENARIO_SPEAKER_BIND_STATE_UNBOND | OPEN_SCENARIO_SPEAKER_BIND_STATE_BINDED 枚举值之一 |
| code_url | string | 收款链接url |
参阅 官方文档