# 实时计价

# 简介

查询实时计价

# 服务提供方

享道

# 接口URL(示例)

/openapi/order/realtimeprice

# 请求方式

POST

# 请求频次

单次

# 请求参数

参数名称 类型 必选 说明
timestamp long 请求时间,Unix Timestamp单位毫秒
order_id string 享道订单id
oid string 外部订单号

# 响应参数

参数名称 类型 必有 说明
errCode int 服务响应状态,参见附录5
errMsg string 服务响应状态说明,参见附录5
content object
content.price long 实时价格,单位分
content.distance long 行驶距离,单位米
content.duration long 行驶时长,单位秒
content.details list 明细列表
content.details[].key string 费用明细列表,参见附录6
content.details[].name string 费用名称
content.details[].value long 价格,单位分

# 请求示例

请求

curl --location --request POST 'https://open-sit.saicmobility.com/merchant/v1/openapi/contact/modify' \
--header 'X-Sign: f79f59997530992a9849f8bf9b0018c0f9254a80' \
--header 'X-SignAlgorithm: 1' \
--header 'X-Timestamp: 20201020193600' \
--header 'X-MerchantId: xxx' \
--header 'Content-Type: application/json' \
--data-raw '{"timestamp":1603192859627,"order_id":"xxx","oid":"xxx"}'

响应

{
  "errCode": 10000,
  "errMsg": "successful",
  "content": {
    "price": 1111,
    "details": [
      {
        "key": "xx",
        "name": "xx",
        "value": 1111
      }
    ]
  }
}