滴滴 API
  1. OpenAPI
滴滴 API
  • 简介
  • OpenAPI
    • 接入前必读
    • 环境说明
    • 状态回调
    • 获取接入方用户信息
    • 安全认证
      POST
    • 扩展设备绑定验证
      POST
    • POI地址服务
      GET
    • 运力类型
      GET
    • 计价规则
      GET
    • 周边司机
      GET
    • 预估时间(ETA)
      GET
    • 预估价格
      GET
    • 发单预校验接口
      POST
    • 请求行程
      POST
    • 等待司机响应
      GET
    • 发单后修改行程
      PUT
    • 取消行程
      PUT
    • 司机位置
      GET
    • 行程详情
      GET
    • 账单
      GET
    • 评价司机
      POST
    • 司机号码解密
      GET
    • 申请发票
      POST
    • 发票查询
      GET
    • 电子发票预览
      GET
    • 电子发票重发
      GET
    • 服务器状态查询
      GET
    • 支付状态检查
      GET
    • 支付接口
      POST
    • 机场信息接口
      GET
    • 呼端链接
      GET
    • openCoupon
      POST
    • couponInfo
      POST
    • 顺风车
      GET
    • 线下测试环境司机自动化接单
      GET
    • 司乘重联
      POST
    • 取消规则
      GET
  • 备注
    • 接入频次控制等级
    • 行程状态推送支持类型
    • 状态机(专车,快车)
    • 费用列表(专车,快车)
    • 错误码(持续更新)
    • 滴滴开放平台服务器ip列表
    • 其他
  • 安全
    • 用户访问滴滴H5凭证
    • 获取用户封禁信息
    • 录音录像授权结果查询
    • 录音录像授权
    • 紧急联系人查询
    • 紧急联系人操作
    • 安全中心面板-获取报警信息
    • 获取报警信息
    • 触发一键报警
  1. OpenAPI

账单

正式环境
https://api.xiaojukeji.com/
正式环境
https://api.xiaojukeji.com/
GET
/v1/orders/{didi_oid}/bill
接口类型: 类型接口
scope:public
功能: 获得本次行程的总花费、包括基本费用、溢价费用
支持运力: private-car,express-car,taxi(只有司机填写了账单才能获取)
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.xiaojukeji.com//v1/orders//bill' \
--header 'Authorization: Bearer domain|{access_token}' \
--header 'Authorization;' \
--header 'Content-Type: application/x-www-form-urlencoded'
响应示例响应示例
{
  "oid": "string",
  "didi_oid": "string",
  "status": "string",
  "create_time": "string",
  "price": {
    "currency": "string",
    "amount": 0,
    "total_time": 0,
    "total_distance": 0,
    "type": "string",
    "description": "string",
    "description_cn": "string"
  },
  "charges": [
    {
      "currency": "string",
      "amount": 0,
      "type": "string",
      "description": "string",
      "description_cn": "string"
    }
  ]
}

请求参数

Path 参数
didi_oid
string 
必需
Header 参数
Content-Type
string 
必需
示例值:
application/x-www-form-urlencoded
Authorization
string 
必需
示例值:
Bearer domain|{access_token}

返回响应

🟢200成功
application/json
Body
oid
string 
必需
第三方订单id(如果提供了)
didi_oid
string 
滴滴订单id
必需
status
string 
行程状态(见备注)
必需
create_time
string 
约车时间
必需
price
object 
必需
行程总费用,只在行程结束时返回
currency
string 
货币种类
必需
amount
integer 
金额,单位:分
必需
total_time
integer 
总时长,单位:秒
必需
total_distance
integer 
总里程,单位:米
必需
type
string 
费用类型
必需
description
string 
费用描述,英文
必需
description_cn
string 
费用描述,中文
必需
charges
array [object {5}] 
v
必需
currency
string 
必需
amount
integer 
必需
type
string 
必需
description
string 
必需
description_cn
string 
必需

【滴滴】API开发者 微信交流群

用微信扫右侧二维码,加入【滴滴】API开发者 交流群,互助沟通

扫码加入交流群
上一页
行程详情
下一页
评价司机
Built with