Skip to content

List endpoints use three different pagination envelopes; /wallets exposes no pagination metadata at all #676

Description

@resourcefulmind

Area: Payments / core list endpoints · Type: bug/enhancement (consistency, DX)

The API paginates list endpoints three different ways:

Endpoint List at Pagination fields Where
/v1/payments/transfers data[] total, page, pageSize, hasMore meta
/v1/payments/transfer-batches data[] total, page, pageSize, hasMore meta
/v1/counterparties data.counterparties total, page, pageSize (no hasMore) data
/v1/wallets data.wallets none

Pagination is functional everywhere (pageSize limits results), but a caller can't reuse one pager, and /wallets gives no way to know the total or whether there's a next page.

Impact: every list endpoint needs bespoke pagination handling; /wallets can't be paged reliably from the response alone.
Suggested fix: standardize on { data:[...], meta:{ total, page, pageSize, hasMore, requestId } } (transfers/batches already use it); bring counterparties + wallets onto it and add total/hasMore to /wallets. (Error envelope is already uniform, this is pagination-only.)

Metadata

Metadata

Assignees

Labels

QA improvementsIssues surfaced during the payments QA pass: bugs, gaps, and DX improvements.bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions