ResponseWrapper
Generic API response wrapper
statusstring
Possible values: [SUCCESS, ERROR]
messagestring
codeMessagestring
dataobject
error objectnullable
Detailed error information
codestring
Error code
Example:
ERR_GENERAL_0004messagestring
Human-readable error message
Example:
The requested resource was not founddetails object[]
List of error details
Array [
codestring
Specific error code
Example:
ER4001messagestring
What went wrong
Example:
Invalid inputtargetstring
Field that caused the issue
Example:
productCode]
suggestionsstring[]
Suggested actions to resolve the error
Example:
["Check the resource ID","Ensure the resource exists"]metaData object
Additional metadata about the error
property name*string
timestampstring<date-time>
ResponseWrapper
{
"status": "SUCCESS",
"message": "string",
"codeMessage": "string",
"data": {},
"error": {
"code": "ERR_GENERAL_0004",
"message": "The requested resource was not found",
"details": [
{
"code": "ER4001",
"message": "Invalid input",
"target": "productCode"
}
],
"suggestions": [
"Check the resource ID",
"Ensure the resource exists"
],
"metaData": {}
},
"timestamp": "2024-07-29T15:51:28.071Z"
}