Skip to main content

Count transactions by payment status

Returns period counts (all / pending / paid) without pagination. pending = unpaid (includes transfers); paid = is_paid true.
1 min read
get/finance/profiles/{studioId}/transactions/counts
Request example
Response
get/finance/profiles/{studioId}/transactions/counts

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.

Query parameters

periodStartMsintegerrequired#
Period start (epoch ms).
periodEndMsintegerrequired#
Period end (epoch ms).

Responses

application/json
Period counts.
allintegerrequired#
pendingintegerrequired#
paidintegerrequired#