NETIQUETTE AMS API
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Documentation AMS API
2
3
1. AMS PUT TRANS API
4
a.
Method Accept :
POST
5
b.Data Type :JSON(Serialize)
6
c.Consume Link :
https://[API SITE WILL BE PROVIDED]/api/amsapi/puttrans.cfm
7
8
Comsume Data Details
FieldID/NameData TypeMaskLengthRequiredRemarks
9
1. Hand Shake ID
hspVarChar100Y
10
2. Company IDcomidVarChar500Y
11
3. Account NoaccnoArray - VarChar8Y
Refer Get Account
12
4. DatedateArray - DateYYYY-MM-DD10Y
13
5. AmountamtArray - Double0.00(16,2)Y
In local currency only and debit will be positive value and credit will be in negative value
14
6. Foreign Amount
fcamtArray - Double0.00(16,2)Y
In foreign currency only and debit will be positive value and credit will be in negative value
15
7. Batch No (Refer Get Batch)
batchnoArray - VarChar5Y
16
8. Exchange Rate
execrateArray - Double0.0000000000(15,10)Y
Put 1 if local currency
17
9. Reference Number 1
referenceArray - VarChar40Y
18
10. Reference Number 2
reference2Array - VarChar40Y
19
11. Tax CodetaxcodeArray - VarChar10N
Empty if not tax account (Refer Get Tax)
20
12. Tax Percentage
taxperArray - Double0.00(5,2)Y
Zero if not tax account
21
13. Description 1
despArray - VarChar254Y
22
14. Description 2
desp2Array - VarChar254Y
23
15. Transaction ID
tranidArray - VarChar30Y
Only when send to ledger if one set of transaction id is tally
24
16. Client Temp id
clienttempidVarChar100Y
25
26
Return Data Details
FieldID/NameData TypeMaskLengthRequired
Multi Choice Option
27
1.Client Temp Id
clienttempidVarChar100Y
28
2. StatusstatusVarChar10Y
1. Success 2.Failure
29
3. Entry NoentryArray - Integer10Y
Unique ID For Each Entry
30
4. DetaildetailVarChar500Only On Failure
31
32
33
34
35
Hand Shake ID
36
Ecryption:
AES 128 bit (Advanced Encryption Standard specified by the National Institute of Standards and Technology (NIST) FIPS-197)
37
currentkey:
1Y5iye5OwWj/Wpg7WR/PjA== (Each Symmetric key is different based on company)
38
JSON DATA TYPE:
HEX
39
To be encrypt data:
Client Temp Id (Each post should have different client temp id)
40
41
Eg:
Client Temp Id: 1234
42
Hand Shake ID will be: FB6BD5CEACB3FA7217200FBE5BFC8919
43
Note:
System Will not give any respond if the hand shake ID has failed (except for sand box)
44
All the multichoice option must match with the list stated
45
All the communication will only being established on at least 256 bit ssl encryption.
46
Any invalid IP address with more than 5 times of invalid hand Shake ID will be blacklisted (except for sand box)
47
48
49
SAMPLE JSON INPUT:
{"hsp":"EE3E9DE465D66D38DA6437A76DBB3DB3", "comid":"gaf", "accno":["3000/001", "3000/002", "4000/001", "4000/001"], "date":["2014-09-15", "2014-09-15", "2014-09-15", "2014-09-15"], "amt": [123.00, 456.00, -123.00, -456.00], "fcamt":[123.00, 456.00, -123.00, -456.00], "batchno": ["20", "20", "20", "20"], "execrate":["1", "1", "1", "1"], "reference":["123456", "123456","123456", "123456"], "reference2":["123456", "123456", "123456", "123456"], "taxcode":["SR", "SR", "SR", "SR"], "taxper":[6,6,6,6], "desp":["abc", "test", "abc", "test"], "desp2":["abc", "test", "abc", "test"], "tranid":["1", "123", "1", "123"], "clienttempid":"1234"}
50
SAMPLE JSON OUTPUT:
{"status":"Success","entry":[5,6,7,8],"detail":"","clienttempid":1234}
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
PUT TRANS
GET TRANS
GET BATCH
GET ACCOUNT
GET TAX CODE
PUT SALES/PURCHASE
GET PAYMENT STATUS