Skip to main content

Introduction

The hotel reservation procedure begins with the "search" stage and progresses through the "search, room search and reservation" steps. The essential parameters for each phase of this flow technique should be carried over to the next stage.

To use our services, please complete the following steps.

  • Please go to the https://api.etscore.com/api/v1/auth-service/swagger-ui/index.html page.
  • By submitting a request to the Authentication service including your username/email and password parameters, you should obtain an access(bearer) token (Each token you receive is valid for 4 hours. After 4 hours, you must run the same service again to get a new token.)
  • Bearer token to be received from the authentication service for authorization and accept-language and x-currency parameters must be sent in the header, in each request.
  • Accept-Language: Must be sent EN-US or TR-TR formats.
  • X-Currency: Must be sent in ISO 4217 format. Ex: Eur
Example Curl Request
curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/royal/hotel/search' \
--header 'Accept-Language: en-us' \
--header 'X-Currency: EUR' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ5WkswMm0wU00xMnBMTE1pd2VBZzQxeGpLWTkwSHI4X05
RakdNQ1E0dFFBIn0eyJqdGkiOiJjMzRhMzU5Yi04MjkxLTRkZDUtOWQ3Zi04YzEzYjlkZTBlODAiLCJleHAiOjE2ODI1MTEzNjQsIm5iZiI6MCwiaWF0IjoxNjgyNTA
5NTY0LCJpc3MiOiJodHRwOi8vb3BlbmlkLmV0c3R1ci5jb206ODAvYXV0aC9yZWFsbXMvbWFzdGVyIiwiYXVkIjoiZXRzcHJvX21hbmFnZW1lbnQiLCJzdWIiOiITk3
MTRhYi05YmQwLTRmMzctYjFiNS04NzhkYjIxMTJjNmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldHNwcm9fbWFuYWdlbWVudCIsImF1dGhfdGltZSI6MCwic2Vzc2l
vbl9zdGF0ZSI6IjhjZTllMTdhLTMyNjUtNDI2Mi1iZGNlLWQ4YzgyODgxZmIyNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZWFsbV9hY2Nlc3MiOn
sicm9sZXMiO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