apidocs
  1. Auth
apidocs
  • Auth
    • Ticket
      POST
  • Resource
    • CheckAvail
      POST
    • HotelDetail
      POST
    • HotelIdList
      POST
    • HotelList
      POST
  • Content
    • Region
      POST
    • Regions
      POST
  • Trade
    • Book
      POST
    • Cancel
      POST
    • QueryOrders
      POST
  1. Auth

Ticket

POST
/api/auth/ticket
Get your api access ticket by your apiKey and apiSecret. You're suggested to use caching tools to cache the ticket to prevent calling Ticket before every call. Since the returned ticket will be expired after TTL you specified in request (default as 1 hour) . If you have no apiKey or apiSecret, please contact your tenant team.

Request

Header Params

Body Params application/json

Example
{
    "appKey": "string",
    "appSecret": "string",
    "ttl": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hotelbyte.online/api/auth/ticket' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appKey": "string",
    "appSecret": "string",
    "ttl": 0
}'

Responses

🟢200OK
application/json
Success
Headers

Body

Example
{
    "ticket": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-06-06 07:47:34
Next
CheckAvail
Built with