# 追加车级

# 简介

本接口用于追加车级。

# 服务提供方

享道

# 接口URL

/openapi/order/add

# 请求方式

POST

# 请求频次

单次

# 请求参数

参数名称 类型 必选 说明
timestamp long 请求时间,Unix Timestamp单位毫秒
order_id string 享道订单ID
oid string 合作方订单ID
product_type string 产品类型,参见附录1
city_code string 城市code,默认为出发地所在城市city_code参见附录6
multi_call array 多车级同时呼叫时使用,传递此字段时,ride_type字段必须为空,否则会按ride_type进行处理
multi_call[].ride_type string 多车级同时呼叫时使用,运力类型,参见附录1
multi_call[].estimate_id string 多车级同时呼叫时使用,预估价格ID,参见预估价格接口
multi_call[].order_price string 一口价金额,单位分
multi_call[].price_type string 计价类型 0-实时计价 1-端内一口价 2-端外套餐一口价 3-端外预估一口价

# 响应参数

参数名称 类型 必有 说明
errCode int 服务响应状态,参见附录3
errMsg string 服务响应状态说明,参见附录3

# 请求示例

请求

curl --location --request POST 'https://open-sit.saicmobility.com/merchant/v1/openapi/order/add' \
--header 'X-Sign: ff177fe97b9eb76949a519a78cab349e587b63ea' \
--header 'X-SignAlgorithm: 1' \
--header 'X-Timestamp: 20201021112400' \
--header 'X-MerchantId: open_app_OqPcV19dBV1KoBHs' \
--header 'Content-Type: application/json' \
--data-raw '{"timestamp":1603248920511,"city_code":"021","oid":"Tesso50ax2v045b050om6engn6258s2z166r","product_type":"private-car",multi_call:"multi_call":[{"price_type": "1","ride_type": "cheap","order_price": "1000","estimate_id": "2402051_0abc8707r8jL_9VSGeYkfX3eKYG-MF02"},{"price_type": "0","ride_type": "compact","order_price": "","estimate_id": "2402051_0abc8707dKeeIWTDzpU5E81pGKtvZV02"}}'

响应

{
  "errCode": 10000,
  "errMsg": "successful"
}