Skip to main content

List payments of a debt

List payments of a debt with remaining balance after each payment. Requires Authorization: Bearer with a Better Auth session token.
1 min read
get/finance/profiles/{studioId}/debts/{debtId}/payments
Request example
Response
get/finance/profiles/{studioId}/debts/{debtId}/payments

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.
debtIdstringrequired#
Identifier or key debtId.

Responses

application/json
OK.
dataobject[]required#
Show child attributes
idstringrequired#
debtIdstringrequired#
amountCentsintegerrequired#
occurredAtstringrequired#
notestring#
transactionIdstring#
fromAccountIdstring#
balanceAfterCentsintegerrequired#
originenum<string>#
recurring when the linked expense was materialized, transaction when a one-off ledger row exists, manual when the payment has no linked transaction
Options:manualtransactionrecurring
request_idstring#