Get a billing run
One billed period, with its invoice lines. URL-encode the id. Secret and trusted tokens may call it; a limited token may not (403).
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
billing_run_id*stringThe billing run id.
billing_region?stringThe agreement's region. Defaults to us.
Success.
application/json- response
One billed period of one agreement. See https://docs.comecero.com/docs/usage-billing/how-usage-is-billed#billing-runs
object?stringAlways billing_run.
billing_run_id?stringbilling_run:{agreement_id}:{period_start}, sometimes with a suffix. URL-encode it in paths.
billing_agreement_id?stringThe agreement.
period_start?stringStart of the period billed.
date-timeperiod_end?stringEnd of the period billed.
date-timekind?stringfinal_late is the last late-usage pass after an agreement ends.
"period""final_late"status?stringThe run's state.
"pending""completed""failed"invoice_id?stringThe invoice the usage is on: usually the subscription's renewal invoice, otherwise a separate usage invoice. Empty when nothing was charged or the amount waits for the minimum.
carried_forward?booleantrue when the amount was under the minimum and waits for the next invoice.
prepared_lines?array<>The invoice lines.
failure_code?|Set when failed. You can fix and retry, from the dashboard: currency_mismatch, missing_metric_or_plan, hard_limit_exceeded, subscription_not_found, invalid_customer_id, missing_credit_entitlement, funding_not_a_credit, credit_region_mismatch. needs_review (over 5,000 USD, or over 10 times the last invoice) is approved by Comecero.
failure_message?|Set when failed.
billing_region?stringBilling region. Defaults to us.
"us""uk""eu"test?booleanTest or live.
curl -X GET 'https://api.comecero.com/api/v1/usage/runs/string'{ "object": "billing_run", "billing_run_id": "billing_run:agr_cust_8412:2026-11-01T00:00:00Z", "billing_agreement_id": "agr_cust_8412", "period_start": "2026-11-01T00:00:00Z", "period_end": "2026-12-01T00:00:00Z", "kind": "period", "status": "completed", "invoice_id": "IN0123456789", "carried_forward": false, "prepared_lines": [ { "kind": "usage", "name": "AI tokens (token): 500000 used, 1 Nov 2026 00:00 to 1 Dec 2026 00:00 UTC", "quantity": 500000, "rated_amount": 8, "credit_debit": 5, "amount": 3 } ], "failure_code": null, "failure_message": null, "billing_region": "us", "test": false}List bills that need attention GET
Billing runs that are stuck, up to 100: held for Comecero's review (`needs_review`), failed (`failed`), or waiting for prepaid credit (`waiting_for_credit`). Failures you can fix are retried from the dashboard, under Usage Billing. Secret and trusted tokens may call it; a limited token may not (`403`).
Overview
Next Page