Sabre接口对接 SDK
安装
npm i @chuxingpay/sabre
测试
npm run test
接口函数
- getToken: 获取访问令牌
- getHotelList: 获取酒店列表
- getHotelContent: 获取酒店详情
TODOS
- refreshToken: 刷新访问令牌
- getHotelRoomTypeList: 获取酒店房型列表
- getHotelRoomRateList: 获取酒店房价列表
- getIncrementDailyRoomRateList: 获取房价变化增量列表
- getHotelInventoryList: 获取酒店库存
- createOrder: 创建订单
- queryOrder: 查询订单
- cancelOrder: 取消订单
- createTrialOrder: 创建预订试单
- prepayOrder: 订单预付
Sabre Environments
- REST
- Certification/Test: https://api-crt.cert.havail.sabre.com
- Production: https://api.havail.sabre.com
- SOAP
- Certification/Test: https://sws-crt.cert.havail.sabre.com
- Production: https://webservices.havail.sabre.com
Tips
- sabre country codes is use ISO 3166