Billing
The VMs of a tenant use its prepaid credit. Awake, a VM pays for its memory and its disk. Asleep, it pays for its disk only.
Endpoints
| Method | Path | Returns |
|---|---|---|
GET | /v1/tenants/{tenant}/usage | 200 with the usage object. |
GET | /v1/tenants/{tenant}/credit | 200 with the credit object. |
POST | /v1/tenants/{tenant}/credit/top-up | 201 with the top-up object. |
GET | /v1/tenants/{tenant}/invoices/{month} | 200 with the invoice object. |
Objects
- The usage object: The usage of the VMs of the tenant, and the totals. A cost is in US dollars.
- The credit object: The prepaid credit of the tenant. Each amount is a string of US dollars to the cent.
- The top-up object: A Stripe payment page.
- The invoice object: A PDF invoice.