服务人员分配
用于服务商/商户开发者在顾客下单后为顾客分配服务人员使用。
请求参数 | 类型 | 描述 |
---|---|---|
guide_id | string | 服务人员ID |
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户ID |
out_trade_no | string | 商户订单号 |
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);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档