商圈会员停车状态同步
通过此API,商圈商户/服务商可将会员的停车状态同步给微信支付,以辅助判断用户到场,用户在商圈内门店消费可自动积商圈会员积分。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 商圈商户ID |
brandid | integer | 品牌ID |
appid | string | 应用ID |
openid | string | 用户标识 |
plate_number | string | 车牌号 |
state | string | 状态 |
time | string | 时间 |
php
$instance->v3->businesscircle->parkings->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/businesscircle/parkings')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/businesscircle/parkings']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->businesscircle->parkings->post([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/businesscircle/parkings')->post([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/businesscircle/parkings']->post([
'json' => [
'sub_mchid' => '1900000109',
'brandid' => 1000,
'appid' => 'wx931386123456789e',
'openid' => 'oUpF8uMuAJOM2pxb1Q',
'plate_number' => '粤B888888',
'state' => 'IN',
'time' => '2022-06-01T10:43:39+08:00',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |