Response Structure
Sample Response Structure
For Successful requests : 200 OK
Sample Response in JSON
{
"status": true,
"message": "string",
"data": T
}Name
Type
Description
bool
The request status
string
Successful response message
object (optional)
Extra information feedback. For example, a create account request will return the account number and ID
For Failed requests : 4XX and 5XX
Sample Response in JSON
{
"errors": [
{
"statusCode": 0,
"errorCode": "string",
"errorMessage": "string"
}
]
}Name
Type
Description
errors
Array
This is an array of errors returned
statusCode
int
The http status code. For example 401, 500 etc
errorCode
string
custom status code.
errorMessage
string
The reason for the error
Last updated