Skip to main content

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

Body

    externalId stringrequired
    hotelId stringrequired

    Hotel ID

    startDate stringrequired

    Check-in day. (ISO 8601)

    endDate stringrequired

    Check-out day. (ISO 8601)

    numberOfNights integerrequired

    Number of nights.

    status stringrequired

    Reservation status [CONFIRMED or CANCELLED].

    primaryGuestName stringrequired

    Primary guest's name.

    primaryGuestCpf stringrequired

    Primary guest's CPF.

    primaryGuestEmail stringrequired

    Primary guest's email.

    currency stringrequired

    Currency. (ISO 4217 code)

    netPrice numberrequired

    Value without taxes.

    taxesPrice numberrequired

    Tax amount.

    adultCount integerrequired

    Number of adults.

    childrenCount integerrequired

    Number of children.

    childrenAges integer[]required

    List with the children's ages.

    roomDescription stringrequired

    Room name.

    ratePlanName stringrequired

    Rate plan name.

    meal stringrequired

    Meal plan.

    hotelName stringnullable

    Hotel Name

    source stringnullable

    Reservation source.

    locator stringnullable

    ID known by the guest.

    isNonRefundable booleannullable

    Indicates if the rate is non-refundable.

    penaltyDate stringnullable

    Day the penalty starts if the reservation is refundable. (ISO 8601)

    comissionPrice numbernullable

    Commission value.

    comment stringnullable

    Reservation comments.

    guestJourneyStatus stringnullable

    Guest journey status [CHECKED_IN, CHECKED_OUT, NO_SHOW, CONFIRMED or CANCELLED].

    primartGuestExternalId stringnullable

    Primary guest's ID from your system.

    primaryGuestPassport stringnullable

    Primary guest's passport number.

    primaryGuestNationality stringnullable

    Primary guest's nationality (two-letter ISO code).

Responses

CreateExternalReservationResponse()

Schema
    reservationId stringrequired

    ID Niara da reserva criada.

Loading...