Skip to content

The tenant's payment history (proxied live from Onvo)

GET
/v1/billing/payments
curl --request GET \
--url 'https://api.emite.cr/v1/billing/payments?limit=example&startingAfter=example' \
--header 'Authorization: Bearer <token>'

Lists settled charges (subscription renewals + prepaid purchases) newest first, annotated with the subscription period each recurring charge covered. Cursor-paginated via startingAfter; pass back cursorNext from the response. Gated by billing:read (owner/admin/accountant) — payment history is sensitive financial data.

limit
required
string
startingAfter
required
string
Media typeapplication/json
object
data
required

The charges on this page, newest first: settled ones (succeeded, refunded, partially_refunded) and failed attempts.

Array<object>
object
id
required

Onvo payment-intent id.

string
date
required

ISO date the charge was created.

string
amount
required

Amount in whole colones (Onvo céntimos ÷ 100).

number
currency
required

ISO-4217 currency (CRC).

string
status
required

Onvo charge status: succeeded | refunded | partially_refunded | failed.

string
kind
required

Charge kind: 'subscription' | 'prepaid' | 'other'.

string
description
required

Human-readable description (plan name / prepaid bundle / Onvo description).

string
periodStart
required

ISO date the covered subscription period started (recurring charges only).

string
nullable
periodEnd
required

ISO date the covered subscription period ended (recurring charges only).

string
nullable
cursorNext
required

Cursor to pass as startingAfter for the next page. null when there are no more.

string
nullable
Examplegenerated
{
"data": [
{
"id": "example",
"date": "example",
"amount": 1,
"currency": "example",
"status": "example",
"kind": "example",
"description": "example",
"periodStart": "example",
"periodEnd": "example"
}
],
"cursorNext": "example"
}