1. TGX HelpCentre
  2. Selling in TravelgateX
  3. InventoryX Frequently Asked Questions

How to open and close sales correctly?

In our system we’ve three booleans to control restrictions:

  • MasterOpen
  • ArrivalOpen
  • DepartureOpen

When all booleans are true a booking is allowed in the specified day.

When MasterOpen is false bookings are not allowed in the specified day.

When ArrivalOpen is false bookings are not allowed if the arrival date in the hotel is the specified day.

When DepartureOpen is false bookings are not allowed if the departure date from the hotel is the specified day.

To control these three values when you are notifying availability you have RestrictionStatus/Status and RestrictionStatus/Restriction. Status indicates whether the action to do is Open or Close. Then the restriction indicates which of the internal booleans will be set (Master, Arrival, Departure). If a restriction is not present, all booleans are set. For example:

If you want to sell a product, the first needed thing to do is Open all bits. This is possible by doing the following:

Send Status=Open, without Restriction.

Then values will be:

  • MasterOpen = true

  • ArrivalOpen = true

  • DepartureOpen = true

Then, if you don’t want paxes with arrival at the specified day, you must Close Arrival. This is possible by doing the following:

Send Status=Close, Restriction=Arrival.

Then values will be:

  • MasterOpen = true

  • ArrivalOpen = false

  • DepartureOpen = true

Then, if you don’t want any bookings with departure at the specified day, you must Close Departure. This is possible by doing the following:

Send Status=Close, Restriction=Departure.

Then values will be:

  • MasterOpen = true

  • ArrivalOpen = false

  • DepartureOpen = false

Finally, if you want to allow allow all kinds of bookings again, you must Open all bits again. This is possible by doing the following:

Send Status=Open, without Restriction.

Then values will be:

  • MasterOpen = true

  • ArrivalOpen = true

  • DepartureOpen = true