Response Format
All API responses will return either an object or an array, ensuring a consistent and predictable structure that is easy to parse.
Successful Responses
For successful requests, the API will return an array or object containing the relevant data.
For example, calling GET /api/v1/master-record/{masterName}
to retrieve all master records will return a response in the following format:
Response Fields:
rows
→ Contains the list of retrieved records.total
→ Total number of records available.page
→ Current page number.pageSize
→ Number of records per page.totalPages
→ Total pages available based on pagination.
Error Response
If a request fails, the API will return an error object with details.
For example, if ITEM_MASTER
does not exist, calling GET /api/v1/master-record/ITEM_MASTER
will return the following error response:
Error Response Fields:
code
→ HTTP status code (e.g., 500 for internal server error).timestamp
→ Time when the error occurred.path
→ API endpoint that was called.error.summary
→ General error description.error.detail
→ Specific error details or message.
Last updated
Was this helpful?