Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
linenumberstrue
$(document).ready(function(){
    $.ajax({
        url:"https://api.ehors.com",
        method:'POST',
        dataType:'xml',
        data:{
            accessID:'ABC123',
            accessKey:'XYZ576abc',
            moduleCode:'TicketSales',
            command:'G_ATT_Package',
            dateOfSales:'2021-11-23'
        },
        success:function(response){
            console.log(response);
        }
    })
});

Respond XML Sample

Code Block
languagexml
titleSuccess XML Sample
linenumberstrue
<?xml version="1.0" encoding="utf-8"?>
<SCRIPT_RESULT>
  <RESULT>
    <PACKAGES packageID="BB5548" packageName="H2O - CORP OCEANS 5 (IN-HOUSE GUEST)" BDIIDs="BB11|BB12|BB10|BB600" packageSummary="------------------------
PACKAGE ITEMS
------------------------
1 - TRAILS TO ANTARCTICA
2 - SYMPHONY EVENING SHOW
3 - OCEANARIUM
4 - AR|AUGMENTED REALITY


p500 
fy2019
------------------------
Total Value / pax =  500.00"/>


... SUPPRESSED DATA ...


    <PACKAGES packageID="BB5549" packageName="H2O - SEA BREEZE EXPRESS 12 (IN-HOUSE GUEST)" BDIIDs="BB12|CB70|BB17|BB16|BB10|CB49|BB13|BB514|CB11|CB13|BB25|BB23" packageSummary="------------------------
PACKAGE ITEMS
------------------------
1 - SYMPHONY EVENING SHOW
2 - STC|SUPER TOY COLLECTION
3 - SEA LION SHOW
4 - PENGUIN TALK SHOW
5 - OCEANARIUM
6 - NEONC|NEON CARS
7 - FISH SPA
8 - CREEPY CRAWLIES
9 - BY|BARNYARD
10 - BHF|BIRD HOUSE w/ BIRD FEEDING
11 - BACK OF THE HOUSE
12 - ALL STAR BIRDS SHOW


p720
fy2018
------------------------
Total Value / pax =  720.00"/>
  </RESULT>
  <SCRIPT_STATUS>SUCCESS</SCRIPT_STATUS>
</SCRIPT_RESULT>


Code Block
languagexml
titleSample NO package available
linenumberstrue
<?xml version="1.0" encoding="utf-8"?>
<SCRIPT_RESULT>
  <RESULT/>
  <SCRIPT_STATUS>SUCCESS</SCRIPT_STATUS>
</SCRIPT_RESULT>

XML Node Explain

Node

Importance 

Explain

#PROPERTY_DISCOUNTLowThis node are use to provide system discount from EHORS, can be ignore
#PROPERTY_DISCOUNT@senDiscPercLowSenior citizen discount percentage setting from EHORS, can be ignore
#PROPERTY_DISCOUNT@senDiscVatExemLowVAT Exemption setting from EHORS, cab be ignore
#PROPERTY_DISCOUNT@pwdDiscPercLowPWD discount percentage setting from EHORS, can be ignore
#PROPERTY_DISCOUNT@pwdDiscVatExemLowPWD discount shall be VAT exempted setting from EHORS, can be ignore
#SPECIAL_VARIABLESMediumThis node use to contain some additional info for the result, like summary
#SPECIAL_VARIABLES@totalBDICountMediumNumber of attractions found, can use to make looping count on attractions nodes
#CONSTANTSLowThis node use to show additional settings from EHORS, can be ignore
#CONSTANTS@modeLowSystem mode for ticket sales program, can be ignore
#CONSTANTS@countryIDLowCountry ID use for ticket sales program, can be ignore
#CONSTANTS@outletIDLowOutlet ID use for ticket sales program, can be ignore
#ATTRACTION_ITEMSHighIndividual node for attraction, can be either attraction info or session details. Its a combinations use for attraction and session.
If sessionID is blank, its an attraction, else its session mapped with itemID
#ATTRACTION_ITEMS@itemIDHighUnique ID of the attraction, this case it alias as BDIID or as attractionID, its use to map same #ATTRACTION_ITEMS node to map between attraction and session node
#ATTRACTION_ITEMS@itemTypeLowUse by EHORS ticket sales program, can be ignore. It'll be fixed at "BDI" at the moment unless changes in future
#ATTRACTION_ITEMS@itemNameHighIf not blank it'll indicate this node is an attractions and will be given a name of the attraction define by user
#ATTRACTION_ITEMS@itemPriceLowIf blank indicated this node is session node, else if not blank its an attraction general price and use for EHORS ticket sales program, can be ignore
#ATTRACTION_ITEMS@itemPrice_1HighThis attribute only valid on session node. It use for item price of the attraction' session, different session may have different price. The amount of price are in double precision, no thousand separator and amount are final selling amount inclusive tax. This will be the price linked with the sessionID / planBoardID
#ATTRACTION_ITEMS@sessionIDHighOnly valid for session node, attraction node will be blank. Unique ID of the session, each attraction may have more than 1 (one) session, this IS also may call or use as planBoardID
#ATTRACTION_ITEMS@sessionHighSession in STRING format combined start time and end time of the session, may refer to [ G_ATT_Planboard ] Get Plan Board Availability for session time start and time end as well as session hosting venue
#ATTRACTION_ITEMS@totalPriceLowUse by EHORS ticket sales program to calculate number of pax multiply by itemPrice_1 for the session, and sum for sessions selected for attraction node, can be ignore
#ATTRACTION_ITEMS@option_1LowUse by EHORS ticket sales program to indicate if the session been selected, can be ignore
#ATTRACTION_ITEMS@passLowUse by EHORS ticket sales program to make check sum of the validation of data, can be ignore
#ATTRACTION_ITEMS@maxMediumIf Blank indicated attraction node. Maximum pax can be selected for this session, use by EHORS ticket sales program, can be ignore
#ATTRACTION_ITEMS@autoAsignLowUse by EHORS ticket sales program to auto select in the program, absolutes feature, can be ignore
#TAXESMediumTaxes element node mapped with BDIID which if #ATTRACTION_ITEMS@itemID same, mean this taxes node are belonging to the mapped attraction, each attraction can have more than 1 tax node 
#TAXES@BDIIDMediumUnique ID that use to map with #ATTRACTION_ITEMS@itemID to show the linkage between the attraction and #TAXES node
#TAXES@taxServiceIDLowUnique ID from EHORS system for the tax, can be ignore
#TAXES@taxServiceTypeMediumTax type of the node, can be vat / gt / sc, can be ignore
#TAXES@accountIDMediumUnique ID from EHORS system that the tax charges will goes to which account ID, can be ignore
#TAXES@descriptionMediumTax description, human readable text in STRING format define by customer for the tax
#TAXES@percMediumPercentage use of the tax over the final attraction' session sales amount

Sample availability in EHORS system

Image Added