Billing
Public balance, rate card, ledger, and invoice endpoints.
Balance
GET/v1/billing/balance
Response
| Field | Type | Notes |
|---|---|---|
objectrequired | "credit_balance" | |
organization_idrequired | string | |
balance_brlrequired | string | |
currencyrequired | "brl" | |
updated_atrequired | string<ISO-8601> | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
Current rate card
GET/v1/rate-cards/current
Response
| Field | Type | Notes |
|---|---|---|
idrequired | string | |
objectrequired | "rate_card" | |
namerequired | string | |
currencyrequired | "brl" | |
effective_fromrequired | string<ISO-8601> | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
effective_torequired | string<ISO-8601> | null | |
entriesrequired | object[] |
Ledger
GET/v1/billing/ledger
Response
| Field | Type | Notes |
|---|---|---|
objectrequired | "list" | |
datarequired | object[] | |
has_morerequired | boolean | |
next_cursorrequired | string | null |
Entry shape
| Field | Type | Notes |
|---|---|---|
idrequired | string | |
objectrequired | "ledger_entry" | |
typerequired | "debit" | "credit" | |
source_typerequired | "usage" | "credit_topup" | |
source_idrequired | string | |
meter_idrequired | string | null | |
amount_brlrequired | string | |
uncollected_brlrequired | string | null | |
currencyrequired | "brl" | |
environmentrequired | "sandbox" | "production" | null | |
recorded_atrequired | string<ISO-8601> | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |
trace_idrequired | string | null |
Self-serve billing endpoints
Credit packages (GET /v1/billing/packages, POST /v1/billing/packages/purchase), saved payment methods (GET/POST /v1/billing/payment-methods, setup-intent, default, DELETE), auto top-up (GET/PUT /v1/billing/auto-topup), and the full rate-card list (GET /v1/rate-cards) are public API endpoints documented in /openapi.json. Writes require billing:write.
Dashboard-only billing actions
Custom-amount top-ups, invoice builds, and spend-limit updates are dashboard control-plane workflows, not public customer API endpoints. They are intentionally excluded from /openapi.json.
Invoices
GET/v1/invoices
Response
| Field | Type | Notes |
|---|---|---|
objectrequired | "list" | |
datarequired | object[] | |
has_morerequired | boolean | |
next_cursorrequired | string | null |
GET/v1/invoices/{'{id}'}/download
Response
| Field | Type | Notes |
|---|---|---|
objectrequired | "invoice_download" | |
invoice_idrequired | string | |
urlrequired | string | |
expires_atrequired | string<ISO-8601> | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ |