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.

To decide whether this is a new reservation or an update to an existing one, Niara looks for a reservation whose locator matches the sent locator (or, when locator is not sent, the sent externalId). If no match is found this way, it then looks for a reservation whose pmsNumber matches that same value. When a match is found, the existing reservation is updated with the new data instead of a new one being created.

Depending on the integrating system, the externalId may be the same as the pmsNumber or the locator. If that is the case, send both fields with the same value.

Request

Body

    externalId stringrequired

    Unique reservation ID used by the external system integrating with Niara.

    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.

    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

    Reservation ID known by the guest.

    pmsNumber stringnullable

    Reservation ID on the hotel's PMS. May carry the same value as externalId, depending on how the source system integrates.

    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.

    primaryGuestCpf stringnullable

    Primary guest's CPF.

    primaryGuestPassport stringnullable

    Primary guest's passport number.

    primaryGuestNationality stringnullable

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

    primaryGuestRg stringnullable

    Primary guest's RG identity number (for brazilian citizens).

    primaryGuestRgOrgaoEmissor stringnullable

    Primary guest's RG issuing authority (for brazilian citizens).

    primaryGuestPhone stringnullable

    Primary guest's phone number.

    primaryGuestDob stringnullable

    Primary guest's date of birth.

    primaryGuestAddressStreetName stringnullable

    Primary guest's address street.

    primaryGuestAddressNumber stringnullable

    Primary guest's address number.

    primaryGuestAddressZipCode stringnullable

    Primary guest's address zip code.

    primaryGuestAddressAdditionalInformation stringnullable

    Primary guest's address complement.

    primaryGuestAddressDistrict stringnullable

    Primary guest's address neighborhood.

    primaryGuestAddressCity stringnullable

    Primary guest's address city.

    primaryGuestAddressState stringnullable

    Primary guest's address state.

Responses

Reservation successfully created.

Schema
    reservationId stringrequired

    Niara ID of the created reservation.

Loading...