Revision Hotels
POST
/api/v1/generic-api-service/content/hotel/revision?page=0&size=1000
The hotel detail endpoint is used to see the all information about hotels and hotel detail.
- cURL
- Request
- Response
- Request Details
- Response Details
curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/content/hotel/revision?page=0&size=1000' \
--header 'Accept-Language: tr-tr' \
--header 'X-CURRENCY: EUR' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"sinceDate": "2025-03-01"
}'
{
"sinceDate": "2025-02-09",
"revisionType": "INSERT"
}
{
"totalCount": 1157,
"numberOfPages": 116,
"hotels": [
{
"hotelId": "02ccfc42f7ea",
"revisionType": "UPDATE"
},
{
"hotelId": "103e42255a75",
"revisionType": "UPDATE"
},
{
"hotelId": "12d6c5609a42",
"revisionType": "UPDATE"
},
{
"hotelId": "15738a01e7a4",
"revisionType": "UPDATE"
},
{
"hotelId": "17993a0671d6",
"revisionType": "UPDATE"
},
{
"hotelId": "1ba5fefede53",
"revisionType": "UPDATE"
},
{
"hotelId": "1ee0aacbfcb5",
"revisionType": "UPDATE"
},
{
"hotelId": "23ed4678c5e3",
"revisionType": "UPDATE"
},
{
"hotelId": "246a36caaf7f",
"revisionType": "UPDATE"
},
{
"hotelId": "26b6889bb5ba",
"revisionType": "UPDATE"
}
]
}
Name | Type | Required | Description |
---|---|---|---|
sinceDate | string | Yes | A query can be made for the last 60 days |
revisionType | string | No | Enum: INSERT UPDATE DELETE |
Name | Type | Required | Description |
---|---|---|---|
totalCount | Total Count | ||
numberOfPages | Integer | Yes | Number of pages |
hotels | Number of hotels | ||
hotelId | Hotel ID | ||
revisionType | string | No | Enum: INSERT UPDATE DELETE |