Skip to content

商圈会员停车状态同步

通过此API,商圈商户/服务商可将会员的停车状态同步给微信支付,以辅助判断用户到场,用户在商圈内门店消费可自动积商圈会员积分。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring商圈商户ID
brandidinteger品牌ID
appidstring应用ID
openidstring用户标识
plate_numberstring车牌号
statestring状态
timestring时间
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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory