查询
约 423 字大约 1 分钟
POST 查询订单
POST /v1.0/query
请求参数
{
"bookingReferenceId": "86621248",
"referenceId": ""
}| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| bookingReferenceId | decimal | 非必填 | none | 客户订单编号 | 国家编号 |
| referenceId | string | 非必填 | none | 纷客行订单号 | 纷客行订单号 bookingReferenceId和referenceId必须要有一个值 |
请求示例
curl --location --request POST '{{domain}}/v1.0/query' \
--header 'Authorization: PHT apikey={{api_key}},signature={{signature}},timestamp={{timestamp}}' \
--header 'api_key: {{api_key}}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--data-raw '{
"bookingReferenceId":"86621248",
"referenceId":""
}'返回示例
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"remark": "Successful",
"referenceId": "230600170",
"bookingReferenceId": "86621263",
"orderStatus": "BOOK_SUCCESS",
"checkIn": "2023-07-26",
"checkOut": "2023-07-28",
"hotel": "420032",
"roomCode": "2535250",
"boardCode": "",
"quantity": 1,
"totalPrice": 1212.4,
"currency": "USD",
"guests": {
"guestName": [
{
"firstName": "yong",
"lastName": "li"
}
],
"email": "lucas.li@phoentrix.com",
"phone": "13845678123"
}
}| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| responseStatus | string | 必填 | 状态 |
| version | string | 必填 | 版本号 |
| remark | string | 非必填 | 备注 |
| referenceId | string | 必填 | 纷客行订单编号 |
| bookingReferenceId | string | 必填 | 客户订单编号 |
| orderStatus | string | 必填 | 订单状态: BOOK_SUCCESS:成功, CANCEL_SUCCESS:取消, BOOKING:等待确认, BOOK_FAIL:订单失败 |
| checkIn | string | 必填 | 入住日期 |
| checkOut | string | 必填 | 离店日期 |
| hotel | string | 必填 | 酒店编号 |
| roomCode | string | 必填 | 房型编号 |
| boardCode | string | 必填 | 餐卷编号 |
| quantity | int | 必填 | 房间数 |
| totalPrice | decimal | 必填 | 总价 |
| currency | string | 必填 | 货币单位 |
| guest | object | 必填 | 联系人信息 |
| phone | string | 必填 | 联系人电话信息 |
| string | 必填 | 联系人邮箱信息 | |
| guestName | List | 必填 | 入住人列表 |
| firstName | string | 必填 | 入住人名字 |
| lastName | string | 必填 | 入住人姓氏 |
状态码
| 编码 | 说明 |
|---|---|
| SUCCESS | 成功 |
| NO_FIND | 无数据 |
| NO_SUPPLIER_ORDER | 供应商订单没有查到 |
| UNAUTHORIZED | 认证校验失败 |
| SUPPLIER_SERVER_ERROR | 系统或接口异常 |