# 绑定乘客虚拟号

# 简介

享道客服根据指定手机号或座机号,和订单号,绑定该订单的乘客虚拟号,实现指定号码与乘客的沟通。

# 服务提供方

合作方

# 接口URL

/v1/saicm/bindVirtual

# 请求方式

POST

# 请求频次

单次

# 请求参数

参数名称 类型 必选 说明
phone string 需绑定的手机号或固话
order_id string 享道订单号
oid string 合作方订单号
user_open_id string 合作方乘客唯一标识,同下单接口
bind_type int 绑定类型 1-联系乘客 2-联系叫车人

# 响应参数

参数名称 类型 必有 说明
errCode int 服务响应状态,参见附录5
errMsg string 服务响应状态说明,参见附录5
content object
content.virtual_phone string 绑定后的乘客/叫车人手机号
content.duration int 虚拟号有效期,单位分钟

# 请求事例

请求

curl --location --request POST 'https://open-sit.saicmobility.com/v1/saicm/bindVirtual' \
--header 'X-Sign: aab078dd08a60c2a2e72bbbdfca3c9f94ab40e13' \
--header 'X-SignAlgorithm: 1' \
--header 'X-Timestamp: 20201021113700' \
--header 'X-MerchantId: open_app_OqPcV19dBV1KoBHs' \
--header 'Content-Type: application/json' \
--data-raw '{"phone":"13764137789","order_id":"Pdd438944444","oid":"23233323","user_open_id":"123444","bind_type":1}'

响应

{
    "errCode":10000,
    "errMsg":"successful",
    "content": {
    "virtual_phone": "11700000026", 
      "duration": 30
  }
}