Locals 路客酒店开放接口
  1. 预订API
Locals 路客酒店开放接口
  • 预订API
    • 订单创建
      POST
    • 订单取消
      POST
    • 查询订单
      GET
  • 可用性API
    • 报价信息
      GET
  • 内容API
    • 酒店列表
      GET
    • 酒店详情
      GET
  • 数据模型
    • Data
    • ReserveRes
    • CheckDays
    • Customer
    • HudsonCustomer
    • RoomCustomer
    • HudsonCustomerInfo
    • DailyPrice
    • MapBigDecimal
    • ContactInfo
    • MapString
    • StdReserveRQ
    • Data
    • CancelRes
    • CancelRQ
    • BedType
    • Breakfast
    • RoomBed
    • DayInfo
    • Meal
    • ExtraFee
    • DailyInfo
    • GiftService
    • Fee
    • RefundRule
    • Gift
    • GoodsRoom
    • Rate
    • key
    • HotelRate
    • NationRule
    • MapHotelGoods
    • Data
    • AvailabilityRes
    • StdPricesRQ
    • Hotel
    • Data
    • HotelRes
    • BreakfastPolicy
    • Image
    • Room
    • HotelDetail
    • HotelDetailRes
  1. 预订API

订单取消

测试环境
https://hudson-dev.localhome.cn
测试环境
https://hudson-dev.localhome.cn
POST
/openapi/hotel/cancel
调用方式(HTTP Method):POST

请求参数

Header 参数

Body 参数application/json

示例
{
    "orderId": 1296369727399878700,
    "channelOrderId": "123456",
    "reason": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hudson-dev.localhome.cn/openapi/hotel/cancel' \
--header 'Authorization: {{authorization}}' \
--header 'Timestamp: {{timestamp}}' \
--header 'PartnerId: 1758852059833961' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderId": 1296369727399878700,
    "channelOrderId": "123456",
    "reason": "string"
}'

返回响应

🟢200成功
application/json
Body

示例
{
  "success": false,
  "code": "",
  "message": "",
  "data": {
    "channelOrderId": "",
    "orderId": 0,
    "orderStatus": "",
    "penalty": 0.0,
    "orderMessage": ""
  }
}
修改于 2025-10-14 03:28:32
上一页
订单创建
下一页
查询订单
Built with