Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Inhalt

Request Messages

Codeblock
languagexml
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<IO_LoyaltyAccountInfoRQ xmlns="http://protel.io/soap" EchoToken="12345" TimeStamp="2021-09-16T06:29:58Z" Version="1.000" CorrelationID="Laureen_Info_5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://protel.io/soap file:///C:/Users/ljacke/Desktop/xmlbinding-develop@0e346006532/io-binding/src/main/xsd/Loyalty.xsd">
	<ReadRequests HotelCode="2691" HotelID="7" HotelName="JA Ocean View Hotel, UAE-Dubai" ChainCode="HC1">
		<LoyaltyReadRequest CurrencyCode="AED" MemberCode="12898323" ProgramCode="GHA" LevelCode="Gold" AccountStatus="4" PrimaryInd="false"/>
		<User UserName="HelloWorld" Organisation="Gruppe" Department="Department">
			<Email>EMail@Email</Email>
			<UserID ID="12315" ID_Context="protelID"/>
		</User>
	</ReadRequests>
</IO_LoyaltyAccountInfoRQ>

Response message

Success

Codeblock
languagexml
collapsetrue
<IO_LoyaltyAccountInfoRS xmlns="http://protel.io/soap" CorrelationID="Laureen_Info_5" Version="1.0" TimeStamp="2021-09-16T06:29:58">
	<Success>true</Success>
	<LoyaltyReadResults HotelCode="2691" HotelName="JA Ocean View Hotel, UAE-Dubai" ChainCode="HC1">
		<LoyaltyAccount MemberCode="12898323" ProgramCode="GHA" LevelCode="Gold" AccountStatus="4" PrimaryInd="false">
			<CardHolderName>Gary</CardHolderName>
			<AccountBalance Amount="940.0" Type="D$">
				<CurrencyAmount CurrencyCode="AED" ExchangeRate="0.27224218664924316">
					<Amount>3452.808</Amount>
				</CurrencyAmount>
			</AccountBalance>
			<AccountAccrued Amount="4893.0" Type="D$">
				<CurrencyAmount CurrencyCode="AED" ExchangeRate="0.27224218664924316">
					<Amount>17972.96760000000</Amount>
				</CurrencyAmount>
			</AccountAccrued>
			<AccountRedeemed Amount="3000.0" Type="D$">
				<CurrencyAmount CurrencyCode="AED" ExchangeRate="0.27224218664924316">
					<Amount>11019.600000000000</Amount>
				</CurrencyAmount>
			</AccountRedeemed>
			<AccountChargeLowerLimit Amount="10" Type="D$">
				<CurrencyAmount CurrencyCode="AED" ExchangeRate="0.27224218664924316">
					<Amount>36.732</Amount>
				</CurrencyAmount>
			</AccountChargeLowerLimit>
			<AccountChargeUpperLimit Amount="940.0" Type="D$">
				<CurrencyAmount CurrencyCode="AED" ExchangeRate="0.27224218664924316">
					<Amount>3452.808</Amount>
				</CurrencyAmount>
			</AccountChargeUpperLimit>
		</LoyaltyAccount>
	</LoyaltyReadResults>
</IO_LoyaltyAccountInfoRS>

Error 

Codeblock
languagexml
collapsetrue
<IO_LoyaltyAccountInfoRS xmlns="http://protel.io/soap" CorrelationID="12345" Version="1.0" TimeStamp="2021-09-16T06:59:04">
	<Success>false</Success>
	<Errors>
		<Error ShortText="NO_MEMBERS_FOUND">
			<Message>No member found matching the member code.</Message>
		</Error>
	</Errors>
</IO_LoyaltyAccountInfoRS>