Page tree

Versions Compared

Key

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

...

draw.io Diagram
EHORS' APIs Flow
borderfalse
viewerToolbartrue
fitWindowfalsediagramDisplayName
pageId1146898
diagramDisplayName
lboxfalse
revision1
diagramNameEHORS API GENERAL
simpleViewertrue
width
linksauto
tbstyletop
diagramWidth698759.5
dra

The flow is simple, guest from third party supplier needed to retrieve information from EHORS system, third party can just call a URL by providing several mandatory parameters/variables.

Basic Requirement

API Service URLhttps://api.ehors.com/
Data Request MethodPOST
Data Format CharsetUTF-8 (General)
Data Respond Format from EHORSXML Generic

MUST have Parameters/Variables

Variable NameData TypeSampleExplaination
accessIDString (255)
ABC123
Unique key per customer' property, it'll link to particular site of the customer' property EHORS system,
Meaning 1 property will need 1 accessID
accessKeyString (255)
ABC123
Combination of accessID to allow access to the EHORS system, its like a "username" and "password"
moduleCodeString (255)
ModuleABC
A code from EHORS' APIs authorized module access, this can be combined with the different property have different access of modules.
Read more
commandString (255)
G_ABC_AA
Command designed in EHORS' APIs to map function or script called in customer' EHORS system

EHORS APIs Respond XML Format

...

Follow by default Node, and each node or sub node element can also contain 1 or more attributes.

Node/Element/AttributesExplain
#SCRIPT_RESULTRoot XML node
#SCRIPT_RESULT/RESULTResult of the API call respond data retrieved by API from customer EHORS system
#SCRIPT_RESULT/SCRIPT_STATUSGeneral Status of SUCCESS transactions or NON-SUCCESS transactions, refer to NON-SUCCESS reference 
#SCRIPT_RESULT/ERROR_MESSAGEOnly show when the #SCRIPT_RESULT/SCRIPT_STATUS is NON-SUCCESS, and it may contain RAW URL ENCODED format of message

Limitations / Throttle Control

...