KIU_ReadRQ / KIU_ProfileReadRS
Â
Objective
The method allows the user to check the balance and detail of a corporate account created in the system, you can also check balances for travel agencies.
This method is of exclusive use for users of host airlines.
The Request XML model is:
KIU_ReadRQ – Checking a Corporate Electronic Account
Â
<?xml version="1.0" encoding="UTF-8"?>
<KIU_ReadRQ EchoToken="1" TimeStamp="2012-11-09T13:23:55-03:00" Target="Testing" Version="3.0" SequenceNmbr="1" PrimaryLangID="en-us">
   <POS>
       <Source AgentSine="NET00XXWW" TerminalID="NET00XX000"></Source>
   </POS>
   <ReadRequests>
       <ProfileReadRequest>
           <UniqueID Type="21" ID="ACME" />
       </ProfileReadRequest>
   </ReadRequests>
</KIU_ReadRQ>
Â
KIU_ReadRQ - Checking the Electronic Account of a Travel Agency
Â
<?xml version="1.0" encoding="UTF-8"?>
<KIU_ReadRQ EchoToken="1" TimeStamp="2017-10-11T13:23:55-03:00" Target="Testing" Version="3.0" SequenceNmbr="1" PrimaryLangID="en-us">
  <POS>
     <Source AgentSine="AEP00XXSM" TerminalID="AEP00XX816" />
  </POS>
  <ReadRequests>
     <ProfileReadRequest>
        <UniqueID Type="5" ID="BUEA7760" />
     </ProfileReadRequest>
  </ReadRequests>
</KIU_ReadRQ>
Elements of the Message KIU_ReadRQ
Â
POS: Element that groups the information of the Point of Sale from which the request is made.
Source: Point of Sale or POS data container
AgentSine: Alphanumeric [9]. Identifier of the agent that makes the request.
TerminalID: Alphanumeric [10]. Identifier code of the device from which the request is made.
ReadRequests: Element that contains the information of the query to be made..
ProfileReadRequest: Container element of the account query request.
UniqueID: Element that groups the information of the account to consult.
Type: Attribute. Required. Whole. Code identifier of the type of account (1: corporate accounts; 5: travel agencies)
For those customers who have implemented the previous code "21" of corporate accounts in their applications, it will continue to be supported with the same logic of the code "1".
ID: Mandatory Alphanumeric [32]. Code of the corporate account (invoice code or custumer ID) or of the travel agency (office ID).
KIU_ProfileReadRS
The response XML model is:
KIU_ProfileReadRS – Corporate Electronic Account
Â
<?xml version="1.0" encoding="UTF-8"?>
<KIU_ProfileReadRS EchoToken="1" TimeStamp="2012-11-09T20:58:34+00:00" Target="Testing" Version="3.0" SequenceNmbr="1">
   <Success />
   <Profiles>
       <ProfileInfo>
           <Profile>
               <CompanyInfo>
                   <CompanyName>ACME SA</CompanyName>
                   <Account CurrencyCode="ARS" Balance="-37" Overdraft="400" />
               </CompanyInfo>
           </Profile>
       </ProfileInfo>
   </Profiles>
</KIU_ProfileReadRS>
KIU_ProfileReadRS – Travel Agency Electronic Account
Â
Â
Elements of the Message KIU_ProfileReadRS
Profiles: Element that groups the profiles consulted.
ProfileInfo: Element that groups the profile information.
Profile: Profile of the consulted account.
CompanyName: Alphanumeric. Registered name of the company to which the corporate account or name of the travel agency belongs.
Account: Element that contains the information of the corporate electronic account or electronic account.
CurrencyCode: Alphabetical [3]. ISO code of the currency in which the account balances are expressed.
Balance: Decimal. Current balance of the account.
Overdraft: Decimal. Account overdraft limit (for example, if the limit is 400, the account can have a balance of up to -400.) If an issue is attempted on behalf of that account that carries the balance below that number, the issue will return error).
Possible Error Messages
Code | Message | Description |
10012 | Too many IDs to process. | More than one corporate account code was sent. The method supports one code per call. |
11041 | Error at parameter ID Type. | The value of the Type attribute of the UniqueID element does not correspond to the format described (21). |
11044 | Error at parameter Profile ID. | The value of the ID attribute of the UniqueID element does not correspond to the format described (alphanumeric in upper case of up to 32 characters). |
Â
Â
Â
Â
Â