Get a booking request
Reads one request this Application made, to follow its status while an operator approves or rejects it. A booking the Application did not request answers 404.
/v1/booking/booking-requests/{bookingId}AuthorizationOAuth2 access token · headerrequiredAn access token for an Application, from the client_credentials grant. An integration of your own uses the same grant. A connector from Hydda gets its token from the installation-token grant instead. Send it as Authorization: Bearer <token>.
bookingIdstring<uuid>requiredThe bookingId the Application sent with the request.
The request and where it stands.
bookingIdstring<uuid>requiredThe id the Application gave the request.
bookableResourceIdstring<uuid>requiredThe resource requested.
statusstringrequiredWhere the booking stands. pending_approval waits for an operator. confirmed holds the time. cancelled, rejected and expired have released it.
pending_approvalconfirmedcancelledrejectedexpiredstartsAtstring<date-time>requiredWhen the booking starts, as an ISO 8601 timestamp in UTC.
endsAtstring<date-time>requiredWhen the booking ends, as an ISO 8601 timestamp in UTC.
amountobjectrequiredAn amount of money in one currency, never negative.
Show propertiesHide properties
minorUnitsintegerrequiredThe amount in minor units of the currency, such as öre for SEK. 0 means free.
currencystringrequiredAn ISO 4217 currency code, for example SEK.
SEKNOKDKKEURUSDGBPdiscountobjectThe discount on the room's price. The booking's amount is already net of it, so the price before it is amount plus amountOff.
Show propertiesHide properties
bookingDiscountIdstring<uuid>requiredThe discount the booking took.
namestringrequiredThe discount's name when the booking took it.
entryKindstringrequiredpercent for a percentage or free, fixed for an amount off or a fixed price.
percentfixedbasisPointsintegerThe percentage in basis points, 2000 is 20%. Present exactly when entryKind is percent.
amountOffobjectrequiredWhat the discount took off the room's price.
Show propertiesHide properties
minorUnitsintegerrequiredThe amount in minor units of the currency, such as öre for SEK. 0 means free.
currencystringrequiredAn ISO 4217 currency code, for example SEK.
SEKNOKDKKEURUSDGBPviaCodebooleanTrue when the booking took the discount through a shared or a personal code, false for an automatic discount.
addOnAmountobjectAn amount of money in one currency, never negative.
Show propertiesHide properties
minorUnitsintegerrequiredThe amount in minor units of the currency, such as öre for SEK. 0 means free.
currencystringrequiredAn ISO 4217 currency code, for example SEK.
SEKNOKDKKEURUSDGBProomLayoutstringA furniture layout for a room: conference chairs facing the front, u_shape tables in a U, islands round tables with chairs around them.
conferenceu_shapeislandscreatedAtstring<date-time>requiredWhen the request was made, as an ISO 8601 timestamp in UTC.
The request is not valid, or a business rule refused it. code names the rule.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request, when the failure has one. Match on this, not on detail.
VALIDATION_FAILEDparametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.
The access token is missing, expired or not valid.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request. Match on this, not on detail.
parametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.
The token does not allow this request.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request. Match on this, not on detail.
parametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.
The resource does not exist, or the token cannot see it.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request. Match on this, not on detail.
parametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.