External Reservation Creation
POST/v1/api/externalReservation/create
Endpoint to create hotel reservations in the Niara system from an external call.
If the sent locator (Niara reservation ID) already exists, the request is treated as an update: the existing reservation will be updated with the new data instead of creating a new one.
Request
- application/json
Body
Unique reservation ID from your external system.
Unique reservation ID from the Niara system.
Hotel ID.
Check-in date (ISO 8601 format).
Check-out date (ISO 8601 format).
Number of nights.
Reservation status [CONFIRMED or CANCELLED].
Reservation source.
Primary guest name.
Primary guest CPF.
Primary guest email.
Currency. (ISO 4217 code)
Net price of the reservation.
Reservation taxes price.
Number of adults in the reservation.
Number of children in the reservation.
List of children's ages in the reservation.
Reservation room name.
Reservation rate plan name.
Indicates if the reservation is non-refundable, true if the reservation is non-refundable.
Date on which the cancellation penalty applies, if the reservation is refundable. (ISO 8601)
Meal plan.
Comission price.
Reservation comments.
Guest Journey Status [CHECKED_IN, CHECKED_OUT, NO_SHOW].
Your system's external ID for the primary guest.
Primary guest passport number.
Nationality of the primary guest (ISO 3166-1 alpha-2 country code).
Responses
- 200
CreateExternalReservationResponse()
- application/json
- Schema
- Example (from schema)
Schema
Niara's external reservation ID.
{
"reservationId": "string"
}