Skip to main content
Anbyan tenant APIs return a small set of response body shapes. These shapes are reflected in the OpenAPI schemas generated from the frontend TypeScript contracts.

Single resources

Single-resource endpoints usually return a data wrapper.
Customer card detail and card action endpoints use this pattern.

Paginated lists

List endpoints return pagination metadata with a data array.
Customer accounts, customer cards, customer statements, customer transactions, staff ledger transactions, and deposit lists follow this pattern.

Binary documents

Statement preview and download endpoints return document streams instead of JSON.
Browser-facing applications should treat these endpoints as document responses.

Errors

Validation and not-found responses use a message and optional field-level errors.

Casing

Application responses use camelCase. Older paginated endpoints may retain compatibility fields such as current_page, nextPage_url, and prevPage_url; the endpoint schema shows the exact response shape.