Organization Billing

Generate Invoice Now

Changed on

Manually trigger invoice generation for this organization.

Useful for testing the billing flow or generating retroactive invoices. Requires ADMIN permission.

Line items follow the v2 (modality+features, D8) composition: flat monthly fee + per-modality feature usage in natural units and dollars + the plan's included-usage pool as a deduction; only usage beyond the pool is due. The total always reconciles to the month's ledger charges (see pricing_v2).

Example:

# Dry run
response = await client.post(
    "/v1/organizations/billing/generate-invoice",
    json={"dry_run": true}
)

# Actually generate
response = await client.post(
    "/v1/organizations/billing/generate-invoice",
    json={"billing_month": "2026-01"}
)
post/v1/organizations/billing/generate-invoice

Request

  • Base URL: https://api.mixpeek.com
  • URL: https://api.mixpeek.com/v1/organizations/billing/generate-invoice
  • Auth: HTTP bearer

Request body

billing_monthstring nullable

Billing month (YYYY-MM). Defaults to previous month.

dry_runboolean

If true, show what would be invoiced without creating Stripe invoice.

Response

Successful Response

object required

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the endpoint scheme security BearerAuth was added to the API