查询音箱绑定信息
通过该接口查询设备和收款码链接、收款商户号的绑定关系
| 请求参数 | 类型 | 描述 |
|---|---|---|
| device_sn | string | 设备sn |
php
$instance->v3->payDevices->openScenarioSpeaker->_device_sn_->getAsync([
'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}')->getAsync([
'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}']->getAsync([
'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_->get([
'device_sn' => 'ABCDEF',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/pay-devices/open-scenario-speaker/{device_sn}')->get([
'device_sn' => 'ABCDEF',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/pay-devices/open-scenario-speaker/{device_sn}']->get([
'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 |
参阅 官方文档