TwoWay

Usage Instructions

Integrate TwoWay hotel management system into your workflow. Create, modify, cancel, and search bookings. Manage inventory, rate prices, and rate plans.

Actions

twoway_booking_insert

Create a new booking in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code (sent in header)
creatorIdstringYesPartner system name (e.g., "CRS HIGS")
sourceOfBusinessstringYesBooking source code, max 7 chars (e.g., "BOOKING")
idHotelnumberYesHotel ID number in HIGS
checkinstringYesCheck-in date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)
checkoutstringYesCheck-out date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)
dateTimeInclusionstringYesBooking creation datetime (YYYY-MM-DDTHH:mm:ss)
guestCountnumberYesTotal number of adult guests
mainGuestGivenNamestringYesMain guest first name (max 30 chars)
mainGuestSurenamestringYesMain guest surname (max 30 chars)
mainGuestEmailstringYesMain guest email (max 50 chars)
roomTypeCodestringYesRoom type identifier code (e.g., "201", "602")
hotelReservationNumberstringYesReservation number in integrator system
typeReservationnumberYesBooking type identifier code
currencyCodestringYesCurrency code ISO 4217 (e.g., "BRL", "USD")
numberChildrennumberNoNumber of children (default: 0)
mainGuestTelephonestringNoMain guest phone (max 20 chars)
mainGuestAddressLinestringNoMain guest address (max 70 chars)
mainGuestCitystringNoMain guest city (max 255 chars)
mainGuestStatestringNoMain guest state/province (max 255 chars)
mainGuestZipCodestringNoMain guest postal code (max 12 chars)
mainGuestCountrystringNoMain guest country (max 255 chars)
guestsarrayNoAdditional guests: [{givenName, lastName, age, ageQualifyingCode}]. AgeQualifyingCode: 10=Adult, 6=ChildZone2, 8=Child
commentstringNoReservation remarks (max 1400 chars)
ratePlanCodestringNoRate plan identifier code
commissionnumberNoCommission value (25 for commissioned, 0 for non-commissioned)
typePaymentnumberNoPayment type: 1=Credit Card, 2=Direct in Hotel, 3=Invoiced
typeInvoicestringNoInvoice types as JSON array when typePayment=3 (e.g., ["Ty","Tx"]). Options: Ty, Tt, Tx, An, Di, Cf, Tl, Tu, Bu, Fb, Lv
creditCardFlagstringNoCard flag: VI=Visa, IK=Mastercard, DC=Diners, AX=Amex, EL=Elo, DS=Discover
creditCardNamestringNoName printed on card (max 30 chars)
creditCardNumberstringNoCard number (max 24 chars)
creditCardSecurityCodestringNoCard security code/CVV (max 8 chars)
creditCardExpirationstringNoCard expiration date (MM/YY)
companyIdstringNoCompany/Agency ID in integrator (max 30 chars)
companyNamestringNoCompany/Agency name (max 60 chars)
companyAddressstringNoCompany street address (max 60 chars)
companyAddressNumberstringNoCompany address number (max 20 chars)
companyComplementstringNoCompany address complement (max 60 chars)
companyCitystringNoCompany city (max 60 chars)
companyStatestringNoCompany state (max 60 chars)
companyCountrystringNoCompany country (max 60 chars)
companyEmailstringNoCompany email (max 100 chars)
companyPhonestringNoCompany phone (max 30 chars)
ratesarrayNoDaily rates: [{effectiveDate: "YYYY-MM-DD", amount: 150.00}]
totalAmountBeforeTaxnumberNoTotal amount without fees and taxes
taxesarrayNoTaxes: [{codeTax, value, description}]. CodeTax: 1=Service charge, 2=Service Tax, 3=Tourist tax, 4=Ecological, 5=Circulation, 6=Added, 18=Food&Bev, 28=Juiz de Fora
extraServicesarrayNoExtra services: [{date, serviceCode, serviceType, service, place, comment, currency, amountAfterTax, amountBeforeTax, quantity, guestList}]

Output

ParameterTypeDescription
datajsonResponse data from booking insertion
statusnumberHTTP status code
headersjsonResponse headers

twoway_booking_modify

Modify an existing booking in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code (sent in header)
creatorIdstringYesPartner system name (e.g., "CRS HIGS")
sourceOfBusinessstringYesBooking source code, max 7 chars (e.g., "BOOKING")
idHotelnumberYesHotel ID number in HIGS
checkinstringYesCheck-in date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)
checkoutstringYesCheck-out date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)
dateTimeInclusionstringYesBooking creation datetime (YYYY-MM-DDTHH:mm:ss)
guestCountnumberYesTotal number of adult guests
mainGuestGivenNamestringYesMain guest first name (max 30 chars)
mainGuestSurenamestringYesMain guest surname (max 30 chars)
mainGuestEmailstringYesMain guest email (max 50 chars)
roomTypeCodestringYesRoom type identifier code (e.g., "201", "602")
hotelReservationNumberstringYesReservation number in integrator system
typeReservationnumberYesBooking type identifier code
currencyCodestringYesCurrency code ISO 4217 (e.g., "BRL", "USD")
numberChildrennumberNoNumber of children (default: 0)
mainGuestTelephonestringNoMain guest phone (max 20 chars)
mainGuestAddressLinestringNoMain guest address (max 70 chars)
mainGuestCitystringNoMain guest city (max 255 chars)
mainGuestStatestringNoMain guest state/province (max 255 chars)
mainGuestZipCodestringNoMain guest postal code (max 12 chars)
mainGuestCountrystringNoMain guest country (max 255 chars)
guestsarrayNoAdditional guests: [{givenName, lastName, age, ageQualifyingCode}]. AgeQualifyingCode: 10=Adult, 6=ChildZone2, 8=Child
commentstringNoReservation remarks (max 1400 chars)
ratePlanCodestringNoRate plan identifier code
commissionnumberNoCommission value (25 for commissioned, 0 for non-commissioned)
typePaymentnumberNoPayment type: 1=Credit Card, 2=Direct in Hotel, 3=Invoiced
typeInvoicestringNoInvoice types as JSON array when typePayment=3 (e.g., ["Ty","Tx"]). Options: Ty, Tt, Tx, An, Di, Cf, Tl, Tu, Bu, Fb, Lv
creditCardFlagstringNoCard flag: VI=Visa, IK=Mastercard, DC=Diners, AX=Amex, EL=Elo, DS=Discover
creditCardNamestringNoName printed on card (max 30 chars)
creditCardNumberstringNoCard number (max 24 chars)
creditCardSecurityCodestringNoCard security code/CVV (max 8 chars)
creditCardExpirationstringNoCard expiration date (MM/YY)
companyIdstringNoCompany/Agency ID in integrator (max 30 chars)
companyNamestringNoCompany/Agency name (max 60 chars)
companyAddressstringNoCompany street address (max 60 chars)
companyAddressNumberstringNoCompany address number (max 20 chars)
companyComplementstringNoCompany address complement (max 60 chars)
companyCitystringNoCompany city (max 60 chars)
companyStatestringNoCompany state (max 60 chars)
companyCountrystringNoCompany country (max 60 chars)
companyEmailstringNoCompany email (max 100 chars)
companyPhonestringNoCompany phone (max 30 chars)
ratesarrayNoDaily rates: [{effectiveDate: "YYYY-MM-DD", amount: 150.00}]
totalAmountBeforeTaxnumberNoTotal amount without fees and taxes
taxesarrayNoTaxes: [{codeTax, value, description}]. CodeTax: 1=Service charge, 2=Service Tax, 3=Tourist tax, 4=Ecological, 5=Circulation, 6=Added, 18=Food&Bev, 28=Juiz de Fora
extraServicesarrayNoExtra services: [{date, serviceCode, serviceType, service, place, comment, currency, amountAfterTax, amountBeforeTax, quantity, guestList}]

Output

ParameterTypeDescription
datajsonResponse data from booking modification
statusnumberHTTP status code
headersjsonResponse headers

twoway_booking_cancel

Cancel an existing booking in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code
reservationNumberCmNetstringYesReservation number to cancel

Output

ParameterTypeDescription
datajsonResponse data from booking cancellation
statusnumberHTTP status code
headersobjectResponse headers

Search for a booking by reservation ID in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code
reservationIdstringYesReservation ID to search for

Output

ParameterTypeDescription
datajsonBooking information
statusnumberHTTP status code
headersobjectResponse headers

twoway_inventory_load

Load inventory data for a hotel in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code
startDatestringYesStart date for inventory load (YYYY-MM-DD format)
endDatestringYesEnd date for inventory load (YYYY-MM-DD format)
idHotelnumberYesHotel ID number
propagationbooleanNoEnable propagation

Output

ParameterTypeDescription
datajsonInventory data for the specified date range
statusnumberHTTP status code
headersobjectResponse headers

twoway_rate_prices_load

Load rate prices data for a hotel in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
hotelCodestringYesHotel identification code
startDatestringYesStart date for rate prices (YYYY-MM-DD format)
endDatestringYesEnd date for rate prices (YYYY-MM-DD format)
idHotelnumberYesHotel ID number

Output

ParameterTypeDescription
datajsonRate prices data for the specified date range
statusnumberHTTP status code
headersobjectResponse headers

twoway_rateplan_list

Download rateplan list for a hotel in TWO WAY hotel management system

Input

ParameterTypeRequiredDescription
tokenClientstringYesClient authentication token
tokenApplicationstringYesApplication authentication token
idHotelnumberYesHotel ID number
typeListnumberNoType of list (e.g., 2)
idstringNoOptional ID parameter

Output

ParameterTypeDescription
datajsonList of rateplans for the hotel
statusnumberHTTP status code
headersobjectResponse headers