Skip to content

更新司机信息

新增、更新司机信息,司机需有实名认证的微信号,否则新增、更新失败,司机所在的公司必须已经成为服务商的特约商户,否则新增、更新失败。

请求参数类型描述
jsonobject声明请求的JSON数据结构
driver_namestring司机姓名
id_card_numberstring司机身份证号码
company_namestring公司名称
mchidstring商户号
driver_licensestring营运资格证号
driver_categorystring司机类别
driver_statusstring岗位状态
driver_photoobject司机头像
photo_typestring照片类型
photo_digestobject司机头像摘要
hash_typestring哈希类型
hash_valuestring哈希值
photo_urlstring头像url
photo_iconstring头像icon
region_idinteger行政区划ID
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->taxiInvoice->driver->updateDriver->postAsync([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  '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/taxi-invoice/driver/update-driver')->postAsync([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  '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/taxi-invoice/driver/update-driver']->postAsync([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  '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->taxiInvoice->driver->updateDriver->post([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/driver/update-driver')->post([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/driver/update-driver']->post([
  'json' => [
    'driver_name' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhi+SY04APUv4dfFrD7US5TWiL5sVnQSz/wvsvQ==',
    'id_card_number' => 'OpldWegML3fJ3/U5L6av0bU6GcIOaOhXM/t2DrNLxVUb77DCnz421UAD7US5TWiL5sVnQSz/wvsvQ==',
    'company_name' => '深圳市未来有限公司',
    'mchid' => '1900000109',
    'driver_license' => '6298416',
    'driver_category' => 'MAIN',
    'driver_status' => 'ON_DUTY',
    'driver_photo' => [
      'photo_type' => 'PHOTO_URL',
      'photo_digest' => [
        'hash_type' => 'MD5',
        'hash_value' => 'e10adc3949ba59abbe56e057f20f883e',
      ],
      'photo_url' => 'http://www.abc.com/driver.icon',
      'photo_icon' => 'Pm+zC+kaOSdRmVQP7pPQ++Ky9C8FaVp8El2sLT3b/M887b3YnrknrmiiumOkNDklrUdznfitoFkPC94vlnbbESwgn7hBXge3JFHw80S0l8J2jSIZN8PnMrHIZiWPI74xwKKK35n9X3+1+hzKK+t7fZ/U9Bg8P2L2ixmBdpTaRjtivPdOt28P3THTp5rXkjCNwRnoRjB/GiisYHRPc7WHV7jWvC32m42+ctyqZQYBx3I9a6GZisqMOCZXP4+STRRXMzqiZPmv8A3jRRRUFH/9k=',
    ],
    'region_id' => 510100,
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
driver_namestring司机姓名
id_card_numberstring司机身份证号码
company_namestring公司名称
mchidstring商户号
driver_licensestring营运资格证号
driver_categorystring司机类别
driver_statusstring岗位状态
driver_photoobject司机头像
photo_typestring照片类型
photo_digestobject司机头像摘要
hash_typestring哈希类型
hash_valuestring哈希值
photo_urlstring头像url
photo_iconstring头像icon
region_idinteger行政区划ID

参阅 官方文档

Published on the GitHub by TheNorthMemory