Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

General Purpose

This command are use to retrieve available package list from EHORS system define by customer by providing date of sales. 
One package can have 1 or more BDI or attractions sales, this command are ONLY use to list general package information, for package detail please refer to [ G_PKG_Details ] Get Package Details

ONLY packages are with condition market segment "Internet" and segment source "Direct" will be fetch from EHORS

Request Parameter

Variable Name

Variable Type

Explain

Example

dateOfSalesDate(YYYY-mm-dd)Date of sales, by given which date of sales to collect available package(s) list defined by customer at EHORS system with market segment "Internet" and segment source "Direct"2021-11-23

Sample Request with JS

$(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);
        }
    })
});

Sample request with CURL

curl -d "accessID=ABC123&accessKey=XYZ576abc&moduleCode=TicketSales&command=G_ATT_Package&dateOfSales=2021-11-23" -X POST https://api.ehors.com

Respond XML Sample

Success XML Sample
<?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>

Sample NO package available
<?xml version="1.0" encoding="utf-8"?>
<SCRIPT_RESULT>
  <RESULT/>
  <SCRIPT_STATUS>SUCCESS</SCRIPT_STATUS>
</SCRIPT_RESULT>

XML Node Explain

Node

Importance 

Explain

#PACKAGESHighEach node indicate a unique package 
#PACKAGES@packageIDHighUnique ID from EHORS system to identify the package if selected to use or sales, a MUST if guest wanted to book for a package
#PACKAGES@packageNameHighHuman readable package name defined by customer in EHORS system for the package name
#PACKAGES@BDIIDsLowBDIID(s) included in the package, use by EHORS ticket sales, can be ignore
#PACKAGES@packageSummaryHighPackage description define by customer in EHORS system to have it market the package, TEXT format ONLY

Sample show available package(s) in EHORS system


  • No labels