Your prepaid wallet, saved cards, current usage and invoices.
Billing belongs to your account, not to a workspace, so these endpoints take no
X-Workspace-Slug header. Resources are billed to the owner of the workspace they run in, so
your usage and invoices cover the workspaces you own.
Amounts are kept in US dollars. Fields ending in _cents are US cents and fields ending in
_micros are millionths of a dollar (10,000 micros = 1 cent). Customers billed in Nigeria see
and pay amounts in naira: display_currency and exchange_rate tell you how to convert, and
fields ending in _minor are in the minor unit of that currency (kobo for NGN).
Every billing endpoint, including the wallet and saved card endpoints, needs a verified email
address and returns 403 with action: verify_email otherwise.
If usage goes unpaid, your account becomes past_due and then suspended (see
billing_status in Get your profile). Suspension powers
off your VMs, databases, Kubernetes clusters and deployments. Paying what you owe makes the
account active again, and everything suspension powered off is started again
automatically within about a minute.
Endpoints
| Endpoint | Description |
|---|---|
GET /v1/wallet | Get your wallet balance |
GET /v1/wallet/entries | List wallet entries |
GET /v1/wallet/transactions | List payment transactions |
GET /v1/wallet/cards | List saved cards |
DELETE /v1/wallet/cards/{uid} | Remove a saved card |
GET /v1/billing/summary | Get billing summary |
GET /v1/invoices | List invoices |
GET /v1/invoices/{uid} | Get an invoice |
GET /v1/invoices/{uid}/pdf | Download an invoice PDF |