comecerodocs

List bills that need attention

GET
/usage/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).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Response Body

The runs that need attention.

application/json
  1. response
data?array<>
Example Request
curl -X GET 'https://api.comecero.com/api/v1/usage/attention'
Example Response
{  "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"    }  ]}