Booking
Price a reservation
Toegang
Lid van de organisatie met dit recht:
reservations:read
Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.
GET
The stay priced like the widget does: nightly rates of the terrain's type, person surcharges per night, extras and tourist tax. Null when the terrain has no priced type.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
reservationId*stringLength
1 <= lengthOK
application/json- response
reservationId*stringterrainTypeId*string|nullaccommodationName*string|nullcurrency*stringquote*|nullinvoiceId*string|nullinvoiceDisplayId*string|nullpromoCode*|nullbilling*|nullcurl -X GET 'https://api.tillor.eu/orgs//booking/reservations/string/quote'Example Response
{ "reservationId": "string", "terrainTypeId": "string", "accommodationName": "string", "currency": "string", "quote": { "checkIn": "string", "checkOut": "string", "nights": -9007199254740991, "nightPrices": [ { "date": "string", "price": 0, "rateId": "string" } ], "lines": [ { "key": "string", "kind": "stay", "label": "string", "quantity": 0, "unitPrice": 0, "total": 0, "taxPercentage": 0, "extraId": "string", "periodStart": "string", "periodEnd": "string" } ], "subtotal": 0, "discount": 0, "total": 0, "deposit": 0, "taxTotal": 0, "issues": [ { "code": "INVALID_RANGE", "value": 0, "date": "string" } ], "valid": true, "promo": { "code": "string", "percentage": 0, "amount": 0, "appliesToExtras": true, "appliesToTouristTax": true, "minNights": -9007199254740991, "maxNights": -9007199254740991, "stayFrom": "string", "stayTo": "string", "checkInWeekdays": [ -9007199254740991 ], "firstBookingOnly": true, "firstStayOnly": true, "rejected": true } }, "invoiceId": "string", "invoiceDisplayId": "string", "promoCode": { "id": "string", "code": "string", "discount": 0 }, "billing": { "documents": [ { "id": "string", "displayId": "string", "type": "INVOICE", "status": "DRAFT", "paymentStatus": "UNPAID", "amountTotal": 0, "amountPaid": 0, "amountOutstanding": 0 } ], "canceled": true, "mode": "lines", "currentTotal": 0, "invoicedTotal": 0, "difference": 0, "untrackedTotal": 0, "action": "none", "lines": [ { "description": "string", "quantity": 0, "unitPrice": 0, "total": 0, "taxPercentage": 0 } ] }}List website bookings GET
Reservations that came in through the website, newest first; filter by status to see open requests.
Apply a promo code to a reservation POST
Checks the code's conditions against the stay and the guest, ties it to the reservation and returns the new price. A stay holds one code; applying another replaces it.