The tenant's payment history (proxied live from Onvo)
const url = 'https://api.emite.cr/v1/billing/payments?limit=example&startingAfter=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”object
The charges on this page, newest first: settled ones (succeeded, refunded, partially_refunded) and failed attempts.
object
Onvo payment-intent id.
ISO date the charge was created.
Amount in whole colones (Onvo céntimos ÷ 100).
ISO-4217 currency (CRC).
Onvo charge status: succeeded | refunded | partially_refunded | failed.
Charge kind: 'subscription' | 'prepaid' | 'other'.
Human-readable description (plan name / prepaid bundle / Onvo description).
ISO date the covered subscription period started (recurring charges only).
ISO date the covered subscription period ended (recurring charges only).
Cursor to pass as startingAfter for the next page. null when there are no more.
Examplegenerated
{ "data": [ { "id": "example", "date": "example", "amount": 1, "currency": "example", "status": "example", "kind": "example", "description": "example", "periodStart": "example", "periodEnd": "example" } ], "cursorNext": "example"}