Skip to content

注册及查询-支付即服务-服务人员信息

服务人员注册

用于服务商/商户开发者为商户注册服务人员使用。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户ID
corpidstring企业ID
store_idinteger门店ID
useridstring企业微信的员工ID
namestring企业微信的员工姓名
mobilestring手机号码
qr_codestring员工个人二维码
avatarstring头像URL
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->smartguide->guides->postAsync([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/smartguide/guides')->postAsync([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/smartguide/guides']->postAsync([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->smartguide->guides->post([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/smartguide/guides')->post([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/smartguide/guides']->post([
  'json' => [
    'sub_mchid' => '',
    'corpid'    => '',
    'store_id'  => 0,
    'userid'    => '',
    'name'      => '',
    'mobile'    => '',
    'qr_code'   => '',
    'avatar'    => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
guide_idstring服务人员ID

参阅 官方文档

服务人员查询

用于服务商/商户开发者查询已注册的服务人员ID等信息。

请求参数类型描述
queryobject声明请求的查询参数
sub_mchidstring子商户ID
store_idinteger门店ID
useridstring企业微信的员工ID
mobilestring手机号码
work_idstring工号
limitinteger最大资源条数
offsetinteger请求资源起始位置
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->smartguide->guides->getAsync([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/smartguide/guides')->getAsync([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/smartguide/guides']->getAsync([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->smartguide->guides->get([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/smartguide/guides')->get([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/smartguide/guides']->get([
  'query' => [
    'sub_mchid' => '',
    'store_id'  => 0,
    'userid'    => '',
    'mobile'    => '',
    'work_id'   => '',
    'limit'     => 0,
    'offset'    => 0,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
total_countinteger服务人员数量
limitinteger最大资源条数
offsetinteger请求资源起始位置
dataobject[]服务人员信息
guide_idstring服务人员ID
store_idinteger门店ID
namestring企业微信的员工姓名
mobilestring手机号码
useridstring企业微信的员工ID
work_idstring工号

参阅 官方文档

Published on the GitHub by TheNorthMemory