查询预约单信息
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/apps/trade/v2/query_book
book_id 与 order_id 二选一,传入 book_id 的话,只会返回这一个预约单的信息。传入 order_id,会返回这个 order_id 关联的所有预约单信息。都填的话,order_id 生效
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/apps/trade/v2/query_book' \
--header 'access_token: xxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"book_id" : "mock_book_id",
"order_id" : "xxxxxxxxxx"
}'
响应示例响应示例
{
"data": {
"book_info_list": [
{
"book_id": "ot7117205804150901036",
"order_id": "ot7117226212715923756",
"out_book_no": "zxsw4443rette54ert53",
"status": "BOOKING",
"book_child_info_list": [
{
"book_end_time": 1657111979000,
"book_start_time": 1657111978000,
"goods_id": "711679988841900",
"item_order_id": "ot7117226212715989292",
"poi_id": 4355,
"user_info_list": [
{
"id_card_no": "123456789012345678",
"name": "zxs",
"phone": "12321234322"
}
]
},
{
"book_end_time": 1657111979000,
"book_start_time": 1657111978000,
"goods_id": "711679988841900",
"item_order_id": "ot71172262127667772",
"poi_id": 4355,
"user_info_list": [
{
"id_card_no": "123456789012345678",
"name": "zxs",
"phone": "12321234322"
}
]
}
]
}
]
},
"extra": {
"sub_error_code": 0,
"sub_description": "success",
"logid": "2022092115392201020812109511046",
"now": 1663745962686,
"error_code": 0,
"description": "success"
}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
access_token
string
必需
示例值:
xxxxxxxxxx
Body 参数application/json