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 6 Current »

Purpose

In this document, developer MUST noted the different of definition of particular wording.

Here under we'll explain several possible mix definitions used in this document:

  • variables = parameters
    A parameter or a formal argument, is a special kind of variable, used in a subroutine to refer to one of the pieces of data provided as input to the subroutine.

Variable Type

Sending variable to EHORS' APIs needed to be notice on the variable type as the format required on particular field.

Variable TypeFormatDescriptionsSample
Date(YYYY-mm-dd)[Year, 4 Digits]-[Month, 2 digits]-[Day, 2 digits]
STRING
Separator by "-" character with year, month and day
Year needed to be 4 digits, month in 2 and day in 2
If month and day less than 10, "0" needed to be add in front
2020-03-17
VarChar(X)STRING, alphanumeric, general text with UTF-8 characters
With maximum X numbers characters. 
Beware of special characters like  
' single quote (apostrophe)
" double quote
\ Black slash
abc1 22h-as_sdasd1
Num(X)NUMBERS only, only digits are allow, 0 until 9.
With maximum X numbers of digits
Only digits are allow, but minus sign are acceptable.12353
Double(X.Y)FLOAT numbers with precision, in this case X can be any number.
Y represent number of precision support

Floating or double number use for amount, separator between X and Y
are the floating precision separator in this case "." (dot).
Minus sign supported BUT no thousand separator

81921.00
TextText in UTF-8 Format, no text limit, however in Linux server back-end,
we d have a 50,000 characters limit per POST variable
And full text

JHVSADUsa  hduasdgauyxg
SADsabcyaj asdas1231rw
DSADACBdyssd SADAS

XML General Reference

Useful link on w3schools => https://www.w3schools.com/xml/dom_nodes.asp

SymbolEHORS API Document FieldExample
<abcName>data123<abcName>#abcNameNode
<abcName egfAttribute="data123" />#abcName@efgAttributeNode attribute

<abcName>
    <xyzName>data123</xyzName>
</abcName>

#abcName/xyxNameSub-element with parent node #abcName
  • No labels