乘客投诉

说明

一个订单只能投诉一次,不可重复投诉

地址URL

/v1/common/Complaint/submit

支持格式

Json或普通form

HTTP请求方式

POST

是否需要登录

是 关于登录授权,参见 如何登录授权

访问授权限制

暂无

请求参数

名称 类型 必选 描述
client_id string yes 申请应用时分配的AppKey
access_token string yes 授权后的access token
order_id bigint yes 订单id
type int yes 投诉选项id(从投诉选项接口返回的结果中选取)
content string no 投诉选项外的其他投诉内容,不能多于200个汉字
timestamp int yes 当前时间戳
sign string yes 签名

注意事项

sign签名请参照 签名算法

请求示例

方式一:
curl -X POST  -H 'Content-Type: application/json' \
-d '{
        "client_id": "testclient",
        "access_token": "test",
        "timestamp": "2867831074",
        "sign": "test",
        "order_id": "7640112764569538614",
        "type": 145,
        "content": "还未上车就开始计费了",
}'  https://api.es.xiaojukeji.com/v1/common/Complaint/submit

方式二:
curl -i -X POST -H "Content-type:application/x-www-form-urlencoded" \
-d "client_id=testclient" \
-d "access_token=test" \
-d "timestamp=2867831074" \
-d "sign=test" \
-d "order_id=7640112764569538614" \
-d "type=145" \
-d "content=还未上车就开始计费了" \
https://api.es.xiaojukeji.com/v1/common/Complaint/submit

返回参数说明

返回值字段 字段类型 字段说明
errno int 错误码
errmsg string 错误信息
data object

返回示例

{
"errno": 0,
"errmsg": "SUCCESS",
"data":null
}

results matching ""

    No results matching ""