Booking
Get booking catalog
Accesso
Membro dell’organizzazione con almeno uno di questi permessi:
reservations:readorganization:settings:readorganization:settings:write
Una chiave API con scope deve avere il permesso anche tra i suoi scope.
GET
Accommodation types with their online-booking settings, rates, extras, promo codes and closures.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
OK
application/json- response
accommodations*array<>rates*array<>extras*array<>promoCodes*array<>closures*array<>curl -X GET 'https://api.tillor.eu/orgs//booking/catalog'Example Response
{ "accommodations": [ { "id": "string", "name": "string", "color": "string", "bookableOnline": true, "publicDescription": "string", "maxPersons": -9007199254740991, "includedPersons": -9007199254740991, "basePricePerNight": 0, "pricePerAdultPerNight": 0, "pricePerChildPerNight": 0, "pricePerAnimalPerNight": 0, "minNights": -9007199254740991, "maxNights": -9007199254740991, "taxPercentage": 0, "imageUrls": [ "string" ], "amenities": [ "string" ], "sortOrder": -9007199254740991, "unitCount": -9007199254740991 } ], "rates": [ { "id": "string", "terrainTypeId": "string", "name": "string", "validFrom": "string", "validTo": "string", "pricePerNight": 0, "minNights": -9007199254740991, "priority": -9007199254740991, "arrivalDays": [ -9007199254740991 ] } ], "extras": [ { "id": "string", "name": "string", "description": "string", "price": 0, "unit": "PER_STAY", "taxPercentage": 0, "maxQuantity": -9007199254740991, "enabled": true, "sortOrder": -9007199254740991, "choiceGroup": "string", "terrainTypeIds": [ "string" ] } ], "promoCodes": [ { "id": "string", "code": "string", "description": "string", "percentage": 0, "amount": 0, "validFrom": "string", "validTo": "string", "stayFrom": "string", "stayTo": "string", "minNights": -9007199254740991, "maxNights": -9007199254740991, "checkInWeekdays": [ -9007199254740991 ], "terrainTypeIds": [ "string" ], "maxUses": -9007199254740991, "maxUsesPerCustomer": -9007199254740991, "firstBookingOnly": true, "appliesToExtras": true, "appliesToTouristTax": true, "uses": -9007199254740991, "enabled": true } ], "closures": [ { "id": "string", "terrainTypeId": "string", "name": "string", "startDate": "string", "endDate": "string" } ]}Get booking widget embed snippet GET
Returns the public widget key, the hosted booking page URL and the script snippet that embeds the booking widget on an external site.
Update accommodation booking settings PUT
How a terrain type is offered online: visibility, capacity, prices, nights, photos and amenities.