2xx response in this reference, even where an
individual endpoint’s schema below doesn’t spell it out explicitly.
Success envelope
A single-entity response (e.g. fetching one order) puts that entity directly in
data — there’s
no extra nesting.Pagination
List endpoints that paginate (orders, points history, product listings, etc.) populatemeta:
page and limit as query parameters; both are optional and endpoint-specific defaults
apply (commonly page=1&limit=20).
Errors
Errors are not wrapped in the envelope above — they use a flatter shape sosuccess: false
is always the first thing to check.
Validation errors (400, request body failed schema validation):
message can also be an array of strings for some framework-level validation failures. 500
responses always return the generic message "Internal server error" — details are logged
server-side, never sent to the client.