ResponseWrapperBoolean
Generic API response wrapper for Boolean
statusstring
Response status
Possible values: [SUCCESS, ERROR]
Example:
SUCCESSmessagestring
Message describing the response
Example:
Request successfulcodeMessagestring
Code message describing the response
Example:
SUC-001databoolean
Boolean result
Example:
trueerror objectnullable
Details of any error that occurred
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>
Timestamp of when the response was generated
Example:
2025-01-15T09:36:22.500ZResponseWrapperBoolean
{
"status": "SUCCESS",
"message": "Request successful",
"codeMessage": "SUC-001",
"data": true,
"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": "2025-01-15T09:36:22.500Z"
}