Skip to content

查询音箱绑定信息

通过该接口查询设备和收款码链接、收款商户号的绑定关系

请求参数类型描述
device_snstring设备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_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