DocumentationAPI Reference
Billing
View current costs, credit usage and invoices.
Billing Summary
GET
/billing/summaryBilling summary for the current or previous billing period.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
period | string | No | current or previous (default: current) |
curl "https://www.mado-hosting.com/api/v1/billing/summary?period=current" \
-H "Authorization: Bearer rsk_your_key"Invoices
GET
/billing/invoicesInvoice history with pagination and filtering.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Page (default: 0) |
limit | number | No | Items per page (default: 10) |
sortBy | string | No | Sort by: createdAt, periodStart, totalAmount, status |
sortOrder | string | No | asc or desc |
status | string | No | Filter by status |
curl "https://www.mado-hosting.com/api/v1/billing/invoices?page=0&limit=10&sortBy=createdAt&sortOrder=desc" \
-H "Authorization: Bearer rsk_your_key"