List payments
PaymentsAPI REFERENCE

List payments

GET/v1/payments

Return a paginated list of the project's payments, newest first. Page and sort the results with the order, limit, and lastId query parameters.

Example request

A minimal request you can copy and run.

curl https://api.suward.com/v1/payments \
-H "X-Api-Key: $SUWARD_API_KEY"

Query Parameters

NameTypeRequiredDescription
ordernoSort order (asc/desc)
limitintegernoLimit (default 20, max 100)
lastIdstringnoLast ID for pagination

Response

NameTypeRequiredDescription
hasMorebooleannoTrue when more payments exist beyond this page. To fetch the next page, pass the last item's id as the lastId query parameter.
itemsnoPage of payments, ordered per the request's order parameter.
Response · JSON
{
"hasMore": false,
"items": []
}