List bills that need attention
Billing runs that need attention, up to 100: held for Comecero's review (needs_review), failed (failed), waiting for prepaid credit (waiting_for_credit), or too old to bill under their spending limit (spend_limit_period_expired). 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).
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
The runs that need attention.
application/json- response
data?array<>curl -X GET 'https://api.comecero.com/api/v1/usage/attention'{ "data": [ { "run": { "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": "failed", "invoice_id": "", "carried_forward": false, "prepared_lines": [], "failure_code": "currency_mismatch", "failure_message": "Rate plan ai_tokens_eu is in EUR but the agreement bills in USD.", "billing_region": "us", "test": false }, "agreement_id": "agr_cust_8412", "customer_id": "cust_8412", "subscription_id": "SB0123456789", "currency": "USD", "reason": "failed" } ]}List an agreement's billing runs GET
Newest period first. For the next page, set `before` to the oldest `period_start` you got. Secret and trusted tokens may call it; a limited token may not (`403`).
Get a billing run GET
One billed period, with its invoice lines. URL-encode the id. Secret and trusted tokens may call it; a limited token may not (`403`).