API Calling Convension
- All APIs are accessed through HTTP GET, with the following required headers:
Header | Value | Description |
---|---|---|
x-api-key | string | not enabled yet, not necessary |
content-type | type of content in the requestt | must be application/json |
- The response would always be a JSON object with the following members:
Parameter | Description |
---|---|
Status | 0 for success, otherwise the request has failed |
Message | detailed failure message |
Result | returned data, can be either json object or array |
Sample response to a succeeded request:
{
"Status": 0,
"Message": "success",
"Result": {...}
}
Sample response to a failed request:
{
"Status": 21000,
"Message": "Txn Not Found"
}