Versionen im Vergleich

Schlüssel

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

Inhalt


Target audienceCRM
Version
1
3.0.
AuthenticationBearer Token
Message type
Asynchronous,
Synchronous
DirectionOutbound


Message Description

  • Send Transaction Info w/ Currency + Profile info w/ Location and Agent info
  • Receive Transaction Info + Membership

    protel I/O uses a request and response message pair to redeem loyalty points at an external system. In the request message include transaction info with currency and agent information. 


    Image Added

    Message Attributes

    Info

    IO_LoyaltyAccountChargeRQ

    - Attributes

    Element | @Attribute

    Type

    Num

    Description outbound

    Content

    Comments + Contents outbound

    pAir

    OnPrem

    IO_LoyaltyAccountChargeRQ


    1Root element of the message.


    (Fehler)(Haken)

    @EchoToken

    string

    0..1

    A reference for additional message identification, assigned by the requesting host system. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.


    (Fehler)(Haken)

    @CorrelationID

    string

    1

    Used to match result messages (*RS) to request messages (*RQ) in asynchronous communication patterns. Therefore mandatory.


    (Fehler)(Haken)

    @TimeStamp

    0..
    dateTime

    1

    Time of the transaction.

    "2019-06-05T09:12:14Z"(Fehler)(Haken)

    @Version

    string

    0..1

    Message version.

    Version="3.001"

    (Fehler)(Haken)

    @PrimaryLangID

    string

    0..1

    The primary language preference for the message encoded as ISO 639-3.


    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | LoyaltyChargeRequest
    1
    @TransactionTime"2021-02-23T14:38:14Z"
    Information of the Redemption

    (Fehler)

    (Haken)
    @TransactionAccountIOCodeString0..1Describes the action of the points
    • ACCRUAL
    (Fehler)(Haken)
    @HotelCodestring
    @TransactionAccount@HotelCode
    0..1Full name of the property which the transferred stay information belongs to.
    (Fehler)(Haken)
    @HotelIDstring0..1

    The ID will transfer the HotelID and needs to be agreed by the trading partners and remain the same throughout the messages.


    (Fehler)(Haken)
    @HotelNamestring0..1Full name of the property which the transferred stay information belongs to.


    (Fehler)(Haken)
    @ChainCodestring0..1Full name of the property which the transferred stay information belongs to.
    (Fehler)(Haken)
    @MemberCodeIOCodeString1The MemberCode attribute will indicate the actual member number.
    (Fehler)(Haken)

    @ProgramCode

    string1The ProgramCode attribute can be used to indicate the program that is being passed. For instance, we could use it to pass: Frequent Guest, Frequent
    Traveller
    Traveler and Company ID.
    (Fehler)(Haken)
    @LevelCodeIOCodeString0..1Indicates special privileges in program assigned to individual.
    (Fehler)(Haken)
    @AccountStatusIOCodeString0..1The account status. Refer to Open Travel Code List Profile Status (PST).


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117818434" target="_blank">Profile Status (PST)</a>


    (Fehler)(Haken)
    @PrimaryIndboolean0..1When true, indicates this is the primary customer loyalty program and when false, indicates this is not the primary customer loyalty program.
    • true
    • false
    LoyaltyChargeRequest
    (Fehler)(Haken)

    @TransactionReference

    IOCodeString0..1external Reference ID for the Cancellation
    (Fehler)(Haken)

    @TransactionVoidInd

    boolean0..1Displays if it is a Redemption or a Cancellation
    • true
    • false
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | LoyaltyChargeRequest | TransactionAmount
    0..1Information of the Amount of the Redemption 
    (Fehler)(Haken)
    @Amountdecimal1The Amount of the points
    (Fehler)(Haken)
    @Typestring1
    TransactionAmount
    Code for Points

    (Fehler)

    (Haken)
    IO_LoyaltyAccountChargeRQ | LoyaltyChargeRequest | TransactionAmount | CurrencyAmount
    0..1Information of the Amount of the Redemption in the Hotel Currency
    (Fehler)(Haken)
    @CurrencyCodedecimal1The Currency Code which is used by the Amount
    (Fehler)(Haken)
    @ExchangeRatestring0..1
    CurrencyAmount | Amount1
    Exchange Ratedecimal(Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | LoyaltyChargeRequest | TransactionAmount | CurrencyAmount | Amountdecimal1The amount which will be paid with the Point Redemption
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | LoyaltyChargeRequest
    LoyaltyChargeRequest
    | StayInfo
    0..1Reservation Information
    (Fehler)(Haken)

    @ReservationID

    string0..1Reservation ID
    (Fehler)(Haken)

    @ArrivalDate

    dateTime0..1Arrival Date
    (Fehler)(Haken)

    @DepartureDate

    dateTime0...1Departure Date
    (Fehler)(Haken)

    @CRSNumber

    string0...1CRS ID
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | User
    1Information of the logged-in user
    (Fehler)(Haken)
    @UserNameIOCodeString0..1Name of the User
    (Fehler)(Haken)
    @Organisationstring0..1
    @Department0..1@Occupation0..1User | FirstName
    Name of the Group the User belongs to
    (Fehler)(Haken)
    @Departmentstring0..1

    This field would be used to pass the guest’s GivenName.

    Name of the Department from the User
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | User | Emailstring
    User | LastName0..1This field would be used to pass the guest’s LastName.User | Email
    0..1This field would be used to pass the guest’s Email.
    User | Phone0..1This field would be used to pass the guest’s Phone

    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRQ | User | UserID
    0..1This field would be used to pass the guest’s UserID
    (Fehler)
    Sample Message
    (Haken)
    code

    @Type

    language
    IOCodeString
    xmlcollapsetrue
    <p:IO_LoyaltyAccountChargeRQ xmlns:p="http://protel.io/soap" CorrelationID="TRIGGER#000104#UPDATE#000776#1614091094240#DB8A" Version="1.0" TimeStamp="2021-02-23T14:38:14Z" EchoToken="TRIGGER#000104#UPDATE#000776#1614091094240#DB8A" PrimaryLangID="en" Target="Test" TargetName="Test">
    	<p:LoyaltyChargeRequest TransactionTime="2021-02-23T14:38:14Z" TransactionAccount="ACCRUAL" HotelCode="2987" HotelID="104" HotelName="DEV 2280" ChainCode="MRHCH" MemberCode="2345754635123" ProgramCode="Lounge Coders Club" LevelCode="HighRoller" AccountStatus="4" PrimaryInd="true">
    		<p:TransactionAmount Amount="100" Type="L$C">
    			<p:CurrencyAmount CurrencyCode="CHF">
    				<p:Amount>30.00</p:Amount>
    			</p:CurrencyAmount>
    		</p:TransactionAmount>
    		<p:StayInfo ReservationID="20013" ArrivalDate="2019-09-26T12:00:00+02:00" DepartureDate="2019-09-30T12:00:00+02:00" CRSNumber=""/>
    	</p:LoyaltyChargeRequest>
    	<p:User UserName="johnD" Organisation="Hotel 2535" Department="dev.protel.net" Occupation="">
    		<p:FirstName>John</p:FirstName>
    		<p:LastName>Dev</p:LastName>
    		<p:Email>jdev@protel.net</p:Email>
    	</p:User>
    </p:IO_LoyaltyAccountChargeRQ>

    1

    A reference to the type of object defined by the UniqueID element. Refer to OpenTravel Code List Unique ID Type (UIT)


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810178" target="_blank">Unique ID Type (UIT)</a>


    (Fehler)(Haken)

    @ID

    string

    1

    The unique profile ID from the PMS.


    (Fehler)(Haken)

    @ID_Context

    string

    1

    Used to identify the source of the ID. For inbound (to protelIO) requests, this will carry a string value identifying the protel I/O Integration Partner.

    “protelIO"(Fehler)(Haken)


    IO_LoyaltyAccountChargeRS

    Element | @Attribute

    Type

    Num

    Description inbound

    Comments + Contents inbound

    IO_LoyaltyAccountChargeRS - Attributes

    Element | @AttributeNumDescription outboundContent outbound0..

    pAir

    OnPrem

    IO_LoyaltyAccountChargeRS

    string1Root element of the message.
    (Fehler)(Haken)

    @EchoToken

    string

    0..1

    A reference for additional message identification, assigned by the requesting host system. When a request message includes an echo token the corresponding response message MUST include an echo token with an identical value.


    (Fehler)(Haken)

    @CorrelationID

    dateTime

    1

    Used to match result messages (*RS) to request messages (*RQ) in asynchronous communication patterns. Therefore mandatory.

    @TimeStamp

    "2019-06-05T09:12:14Z"(Fehler)(Haken)

    @TimeStamp

    string

    1

    Time of the transaction.

    "2019-06-05T09:12:14Z"

    Version="3.001"

    (Fehler)(Haken)

    @Version

    string
    @Version

    0..1

    Message version.


    (Fehler)(Haken)
    Version="3.001"

    @PrimaryLangID

    boolean

    0..1

    The primary language preference for the message encoded as ISO 639-3.

    • true
    • false
    (Fehler)(Haken)

    IO_

    LoyaltyAccountInfoRS

    LoyaltyAccountInquiryRS | Success


    0..1Returning an empty element of this type indicates the successful processing of the message. It could be combined with warning message/s if the message had issue/s.
    (Fehler)(Haken)

    IO_

    LoyaltyAccountInfoRS

    LoyaltyAccountInquiryRS | Errors | Error

    string0..1Indicates an error occurred during the processing of an OpenTravel message. If the message successfully processes, but there are business errors, those errors should be passed in the warning element.
    Errors | Error0..1

    An error that occurred during the processing of a message.


    (Fehler)(Haken)
    @ShortTextOTA_CodeType EWT
    @ShortText
    0..1An abbreviated version of the error in textual format.
    @Code


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810188" target="_blank">Error Warning Type (EWT)</a>


    (Fehler)(Haken)

    @Type 

    OTA_CodeType ERR

    0..1

    If present, this refers to a table of coded values exchanged between applications to identify errors or warnings. Refer

    Mandatory. Refers to the OTA Code List:

    Error Codes (ERR).

     Error Warning Type (EWT).


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810191" target="_blank">Error Codes (ERR)</a>


    (Fehler)(Haken)

    @Code 

    string
    @Type

    0..

    1

    Mandatory. Refer to OTA Code

    Refers to the OTA Code List: Error

    Warning Type

    Codes (

    EWT

    ERR). 


    (Fehler)(Haken)
    IO_LoyaltyAccountInquiryRS | Errors | Error | Message
    0...1Description of the issue
    (Fehler)(Haken)

    IO_

    LoyaltyAccountInfoRS

    LoyaltyAccountInquiryRS | Warnings | Warning

    string0..1Used in conjunction with the Success element to define one or more business errors.
    Warnings Warning0..1Used when a message has been successfully processed to report any warnings or business errors that occurred.

    (Fehler)(Haken)
    @ShortTextOTA_CodeType EWT
    @ShortText
    0..1An abbreviated version of the error in textual format.
    @Code


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810188" target="_blank">Error Warning Type (EWT)</a>


    (Fehler)(Haken)

    @Type 

    OTA_CodeType ERR

    0..1

    If present, this refers to a table of coded values exchanged between applications to identify errors or warnings. Refer

    Mandatory. Refers to the OTA Code List

    : Error Codes (ERR).

    : Error Warning Type (EWT).


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810191" target="_blank">Error Codes (ERR)</a>


    (Fehler)(Haken)

    @Code 

    string
    @Type

    0..

    1

    Mandatory. Refer to OTA Code

    Refers to the OTA Code List: Error

    Warning Type

    Codes (

    EWT

    ERR). 


    (Fehler)(Haken)
    IO_LoyaltyAccountInquiryRS | Warnings | Warning |  Message
    0...1Description of the issue
    (Fehler)(Haken)

    IO_LoyaltyAccountChargeRS |

     LoyaltyAccount

     LoyaltyChargeResult


    0..1

    (Fehler)(Haken)
    @TransactionReferenceIOCodeString0..1external Reference ID for the Cancellation
    (Fehler)(Haken)
    @TransactionVoidIndboolean0..1Displays if it is a Redemption or a Cancellation
    • true
    • false
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount
    0..1

    (Fehler)(Haken)
    @MemberCodeIOCodeString
    @MemberCode
    1The MemberCode attribute will indicate the actual number.
    (Fehler)(Haken)

    @ProgramCode

    string1The ProgramCode attribute can be used to indicate the program that is being passed. For instance, we could use it to pass: Frequent Guest, Frequent
    Traveller
    Traveler and Company ID.
    (Fehler)(Haken)
    @LevelCodeIOCodeString0..1Indicates special privileges in program assigned to individual.
    (Fehler)(Haken)
    @AccountStatusIOCodeString0..1OTA Code list PST


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117818434" target="_blank">Profile Status (PST)</a>


    (Fehler)(Haken)
    @PrimaryIndboolean0..1When true, indicates this is the primary customer loyalty program and when false, indicates this is not the primary customer loyalty program.
    • true
    • false
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | CardHolderNamestring0..1
    LoyaltyAccount | ExpireDate0..1LoyaltyAccount | EffectiveDate1LoyaltyAccount | AccountBalance1

    @Amount

    1@Type1AccountBalance
    Name of the Membership card
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountBalance
    1Actual amount available, which can be used for redeeming the points
    (Fehler)(Haken)

    @Amount

    decimal1Amount in Points
    (Fehler)(Haken)
    @Typestring1Shortname of the Loyalty Program
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountBalance | CurrencyAmount
    0..1
    @CurrencyCode
    Amount in the default Currency
    (Fehler)(Haken)
    @ExchangeRatedecimal0..1
    @ExchangeRate
    Exchange Rate for the Loyalty Points
    (Fehler)(Haken)

    @CurrencyCode

    string0..1
    Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountBalance | CurrencyAmount | Amountdecimal1Amount in the Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult |
    CurrencyAmount | Amount1
    LoyaltyAccount | AccountAccrued
    0..1Total amount, the collected points
    (Fehler)(Haken)

    @Amount

    decimal1Amount in Points
    (Fehler)(Haken)
    @Typestring1Shortname of the Loyalty Program
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountAccrued | CurrencyAmount
    0..1
    @CurrencyCode
    Amount in the default Currency
    (Fehler)(Haken)
    @ExchangeRatedecimal0..1
    @ExchangeRate
    Exchange Rate for the Loyalty Points
    (Fehler)(Haken)

    @CurrencyCode

    string0..1Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountAccrued | CurrencyAmount | Amountdecimal1Amount in the Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountRedeemed
    0..1Total amount of points redeemed
    (Fehler)(Haken)

    @Amount

    decimal1Amount in Points
    (Fehler)(Haken)
    @Typestring1
    AccountAccrued
    Shortname of the Loyalty Program
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountRedeemed | CurrencyAmount
    0..1
    @CurrencyCode
    Amount in the default Currency
    (Fehler)(Haken)
    @ExchangeRatedecimal0..1
    @ExchangeRate
    Exchange Rate for the Loyalty Points
    (Fehler)(Haken)

    @CurrencyCode

    string0..1
    CurrencyAmount | Amount1
    Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | AccountRedeemed | CurrencyAmount  | Amountdecimal1Amount in the Currency Code, from the RQ
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | UserCreated
    0..1Information of the logged-in user
    (Fehler)(Haken)
    @UserNameIOCodeString0..1Name of the User
    (Fehler)(Haken)
    @Organisationstring0..1Name of the Group the user belongs to
    (Fehler)(Haken)
    @Departmentstring0..1
    @Occupation0..1UserCreated | FirstName
    Name of the Department from the User
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | UserCreated | Email
    0..1This field would be used to pass the guest’s
    GivenName
    Email.

    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | UserCreated | UserID
    UserCreated | LastName

    0..1This field would be used to pass the guest’s
    LastName.
    UserID
    (Fehler)(Haken)

    @Type

    IOCodeString

    1

    A reference to the type of object defined by the UniqueID element. Refer to OpenTravel Code List Unique ID Type (UIT)


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810178" target="_blank">Unique ID Type (UIT)</a>


    (Fehler)(Haken)

    @ID

    string

    1

    The unique profile ID from the PMS.


    (Fehler)(Haken)

    @ID_Context

    string

    1

    Used to identify the source of the ID. For inbound (to protelIO) requests, this will carry a string value identifying the protel I/O Integration Partner.

    “protelIO"(Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult |
    UserCreated | Email0..1This field would be used to pass the guest’s Email.UserCreated | Phone0..1This field would be used to pass the guest’s PhoneUserCreated  | UserID0..1This field would be used to pass the guest’s UserID
    LoyaltyAccount | UserModified
    0..1Information of the logged-in user
    (Fehler)(Haken)
    @UserNameIOCodeString0..1Name of the User
    (Fehler)(Haken)
    @Organisationstring0..1
    @Department0..1@Occupation0..1UserModified | FirstName
    Name of the Group the user belongs to
    (Fehler)(Haken)
    @Departmentstring0..1

    This field would be used to pass the guest’s GivenName.

    Name of the Department from the User
    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | UserModified
    UserModified | LastName0..1This field would be used to pass the guest’s LastName.UserModified 
    | Email
    0..1This field would be used to pass the guest’s Email.
    UserModified | Phone0..1This field would be used to pass the guest’s Phone

    (Fehler)(Haken)
    IO_LoyaltyAccountChargeRS | LoyaltyChargeResult | LoyaltyAccount | UserModified
    UserModified
    | UserID
    0..1This field would be used to pass the guest’s UserID

    Sample Message

    Codeblock
    languagexml
    collapsetrue
    <p:IO_LoyaltyAccountChargeRS xmlns:p="http://protel.io/soap" CorrelationID="TRIGGER#000104#UPDATE#000776#1614091094240#DB8A" Version="1.0" TimeStamp="2021-02-23T15:24:09Z" PrimaryLangID="en"> <p:Success>true</p:Success> <p:Warnings> <p:Warning ShortText="Low points balance" Code="0" ReferenceCode="L$C"> <p:Message>Just a test warning</p:Message> </p:Warning> </p:Warnings> <p:LoyaltyAccount MemberCode="2345754635123" ProgramCode="Lounge Coders Club" LevelCode="HighRoller" AccountStatus="4"> <p:CardHolderName>Oneoone K. Board</p:CardHolderName> <p:ExpireDate>2021-06-03</p:ExpireDate> <p:AccountBalance Amount="0" Type="L$C"> <p:CurrencyAmount CurrencyCode="CHF"> <p:Amount>1</p:Amount> </p:CurrencyAmount> </p:AccountBalance> <p:AccountAccrued Amount="0" Type="L$C"> <p:CurrencyAmount CurrencyCode="CHF"> <p:Amount>1</p:Amount> </p:CurrencyAmount> </p:AccountAccrued> <p:AccountRedeemed Amount="0" Type="L$C"> <p:CurrencyAmount CurrencyCode="CHF"> <p:Amount>1</p:Amount> </p:CurrencyAmount> </p:AccountRedeemed> </p:LoyaltyAccount> </p:IO_LoyaltyAccountChargeRS>

    (Fehler)(Haken)

    @Type

    IOCodeString

    1

    A reference to the type of object defined by the UniqueID element. Refer to OpenTravel Code List Unique ID Type (UIT)


    HTML
    <a href="https://confluence.protel.net/pages/viewpage.action?pageId=117810178" target="_blank">Unique ID Type (UIT)</a>


    (Fehler)(Haken)

    @ID

    string

    1

    The unique profile ID from the PMS.


    (Fehler)(Haken)

    @ID_Context

    string

    1

    Used to identify the source of the ID. For inbound (to protelIO) requests, this will carry a string value identifying the protel I/O Integration Partner.

    “protelIO"(Fehler)(Haken)