Skip to main content

Bill Runs

Bill runs generate invoices for active subscriptions.

List Bill Runs

GET /api/v1/invoice/bill-runs

Create Bill Run

POST /api/v1/invoice/bill-runs/create
Body:
{
  "billing_date": "2024-01-31"
}

Get Bill Run

GET /api/v1/invoice/bill-runs/{bill_run_id}

Invoice Templates

Get Active Template

GET /api/v1/invoice/invoice-templates/active

Create Template

POST /api/v1/invoice/templates/create
Body:
{
  "name": "Standard Invoice",
  "template_data": {
    "company_name": "Acme Corp",
    "logo_url": "https://..."
  }
}

Update Template

PUT /api/v1/invoice/invoice-templates/{template_id}

Invoices

List Invoices

GET /api/v1/invoice/invoices
Query Parameters:
  • account_id (string, optional): Filter by account
  • status (string, optional): Filter by status

Get Invoice

GET /api/v1/invoice/invoices/{invoice_id}