ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiPayments

Payment totals grouped by a dimension

GET
/api/v1/payments/stats/count

Group payments by status, project, type or label (LNbits stats/count equivalent).

Authorization

bearer

Query Parameters

by*string
Value in"status""project""type""label"
projectId?string

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Example Request
curl -X GET 'http://localhost:3001/api/v1/payments/stats/count?by=status'
Example Response200
Empty