Skip to content

服务人员分配

用于服务商/商户开发者在顾客下单后为顾客分配服务人员使用。

请求参数类型描述
guide_idstring服务人员ID
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户ID
out_trade_nostring商户订单号
php
$instance->v3->smartguide->guides->_guide_id_->assign->postAsync([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/smartguide/guides/{guide_id}/assign')->postAsync([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/smartguide/guides/{guide_id}/assign']->postAsync([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->smartguide->guides->_guide_id_->assign->post([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/smartguide/guides/{guide_id}/assign')->post([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/smartguide/guides/{guide_id}/assign']->post([
  'guide_id' => '',
  'json' => [
    'sub_mchid'    => '1234567890',
    'out_trade_no' => '20150806125346',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory