Context

Message schemas have reusable parts, used to transport information about business objects needed in different use cases.


Business objects


Identifiers of business objects in different systems

UniqueID

OccurrenceAdditional information

@ID

1ID of the business object (e.g. hotel, invoice, customer, reservation)
@ID_Context1System identifier (which generated the ID)
@Type1see protel Code List PIT - IO Unique ID Types
"Tenant", "Invoice", "Customer", "Hotel"

Persons

Person Info (XSD: IOPersonType)

OccurrenceAdditional informationprotelAir fieldprotelAir logic / status
FirstName0..1
Guest.FirstName
LastName1Person's or Company's nameGuest.LastName
MiddleName0..1
Guest.MiddleName
SecondName0..1


Title0..1
Guest.Title
Salutation0..1
Guest.Salut
BirthDate0..1
Guest.BirthDate
BirthPlace0..1Municipality of birth

BirthCountry0..1Country of birthGuest.BirthPlace
Nationality0..1Nationality of profile (2-letter ISO)Guest.Nationality
Notes0..1Free textGuest.GuestNotes
Language0..1Language code of profile (2-letter ISO)Guest.Language
Passport0..1Number of passportsGuest.Passport
Department0..1Department of the company the person is workingGuest.Department
Gender0..1Gender code of the personGuest.Gender
TaxNumber0..1
Guest.SalesTaxNumber
TaxNumber20..1
Guest.SalesTaxNumber2
Adresses0..1Postal address of the legal/private person

Adresses | Address1..n


see Generic elements for Legal & Fiscal messaging#Addresses



EmailAddresses0..1E-Mail adresses to use

EmailAddresses | Communication1..n


see Generic elements for Legal & Fiscal messaging#Communications



PhoneNumbers0..1Phone number to use

PhoneNumbers | Communication1..n


see Generic elements for Legal & Fiscal messaging#Communications



FaxNumbers0..1Fax numbers to use

FaxNumbers | Communication1..n


see Generic elements for Legal & Fiscal messaging#Communications



OtherCommunications0..1Further communication methods available

OtherCommunications | Communication1..n


see Generic elements for Legal & Fiscal messaging#Communications



Company0..1Company related to the (private) profile
If profile is a person, it may have a company relationship
see Generic elements for Legal & Fiscal messaging#Persons



ContactPerson0..1Contact person related to the (company) profile
If profile is a company, it may have a contact person named
see Generic elements for Legal & Fiscal messaging#Persons



AccountingInfos
Accounting Infos 

@PublicAdministrationInd0..1
  • "true"
  • "false"

If it is set to true, the PublicAdministration is active for this profile (legal requirement for Italy)
@SplitPaymentInd0..1
  • "true"
  • "false"

If it is set to true, the SplitPayment is active for this profile (legal requirement for Italy)
@FiscalUID0..1UID Number

@CompanyRegNumber0..1Company Registration Number

Addresses

Address info (XSD: IOAddressType)

OccurrenceAdditional InformationprotelAir fieldprotelAir logic / status
@PostCode1Code/Zip of municipalityAddress.ZIP
@CountryCode1Country's 2-letter ISO codeAddress.CountrCode
@PrimaryInd0..1


City1Name of city

Value1
Address.City
Street11Address line 1

Value1
Address.Street1
Street20..1Address line 2

Value1
Address.Street2
Street30..1Address line 3

Value1
Address.Street3
State0..1Name of the federal state

Value1
Address.State
Region0..1


Value1


Notes0..1







Communications

Communication info (XSD: IOCommunicationType)

OccurrenceAdditional InformationprotelAir fieldprotelAir logic / status
@Value1Number or actual address to useGuestCommunication.Value
@Type0..1Type of communication method GuestCommunication.SystemTypeID
  • 1: Phone
  • 2: Mobile Phone
  • 3: Email
  • 4: Fax
@Notes0..1Description GuestCommunication.Notes
@PrimaryInd0..1Indicator (true/false) for the primary method to useGuestCommunication.Primary

Items

Item (XSD: IOItemType)

OccurrenceAdditional InformationprotelAir fieldprotelAir logic / status
@Quantity1Number of itemsInvoicedItem.Quantity
@TaxRate1Rate (Percentage) of VAT appliedTaxLogic.Rate
@TaxCode1Code of tax logic appliedTaxLogic.Code
@Type1Item type like deposit, package, payment, etc.InvoicedItem.TypeID
@ServiceDate1ISO DateTime of item generationInvoicedItem.ServiceDate
@CashRegisterID0..1Cash Register the user was logged in toInvoicedItem.CachRegisterID
@TransactionCode0..1


@PostingAccount0..1


PostingText1


Value
Item posting textInvoicedItem.PostingText
AdditionalText0..1


Value
Additional posting textInvoicedItem.AdditionalText
TotalAmountAfterTax1


see Generic elements for Legal & Fiscal messaging#CurrencyAmounts
Total of posting after VAT appliedInvoicedItem.ATTotalAmount
SingleAmountAfterTax1


see Generic elements for Legal & Fiscal messaging#CurrencyAmounts
Single item after VAT appliedInvoicedItem.ATSingleAmount
TotalAmountBeforeTax1


see Generic elements for Legal & Fiscal messaging#CurrencyAmounts
Total of posting before VAT appliedInvoicedItem.PTTotalAmount
SingleAmountBeforeTax1


see Generic elements for Legal & Fiscal messaging#CurrencyAmounts
The single item before VAT appliedInvoicedItem.PTSingleAmount
TaxInfo0..1


@Rate1Tax Rate (Percentage)

@ID0..1ID of TaxLogic

@Code0..1Code of TaxLogic

@SubCode10..1Code of TaxLogic

@SubCode20..1Code of TaxLogic

Value0..1Name of TaxLogic

Currency Amounts

Amount info (XSD: IOCurrencyAmountType)

OccurrenceAdditional InformationprotelAir fieldprotelAir logic / status
@ExchangeRate1If the foreign currency was used, this exchange rate has been used for conversionCurrencyAmount.ExchangeRate
@CurrencyCode1

3-letter currency code

CurrencyAmount.CurrencyCode
Amount1Amount in local hotel currencyCurrencyAmount.Amount
Value





Generic Elements

*RQ  and *RS messages must hold these attributes

Message header elements

Occurrence

Additional information

@CorrelationID1Must be sent to refer RS originating request
@Timestamp1Must be sent to log sender time and zone
@Version1Must be sent to detect compatibility problems

Generic Results message elements

*RS | Success0..1The element must be present if the result should be processed



*RS | Errors

0..1

*RS | Errors | Result

1..nSend one or more errors, that prevented successful message processing
@Code1Code of the error
@ReferenceCode1Refer to the identifier of business in RQ message

*RS | Errors | Result | Message





Description of what went wrong

*RS | Warnings

0..1

*RS | Warnings | Result

1..n
@Code1Code of the error
@ReferenceCode1Refer to the identifier of business in RQ message

*RS | Warnings | Result | Message





Description of what went wrong




  • Keine Stichwörter