呼叫中心获取用户订单信息
POST
/get_call_order
/get_user_info
时,会调用该接口。该接口企业在发送请求时,前端会自动发送两遍,第一遍的请求类型是OPTION,第二遍的请求类型是POST,提交数据方式采用application/json
的方式。该接口可用于电商行业订单类信息,也可以用于金融行业交易类信息。/get_user_info
接口返回的数据)之下。userid
来源于用户发起会话时,调用各端 SDK 的初始化代码时传递给网易七鱼系统的参数中。orders
的每一个元素表示一个订单;blocks
数组里保存了这些区块;data
数组保存具体的数据,与用户详细信息数据类似,数组中每个元素代表一个数据项,数据项以<key, value>
对的形式为基础,增加了额外的字段以控制显示样式。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://qiyukf.com/get_call_order' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "qiyukf",
"token": "qiyukf_security_token",
"userid": "zhangsan",
"count": 10,
"from": 0,
"type": 0
}'
响应示例响应示例
{
"rlt": 0,
"count": 0,
"orders": [
{
"index": 0,
"blocks": [
{
"index": 0,
"is_title": true,
"data": [
{
"index": 0,
"key": "string",
"label": "string",
"value": "string",
"href": "string"
}
]
}
]
}
]
}
请求参数
Body 参数application/json
返回响应
修改于 2022-01-28 04:24:43