Billing

Summarize expected-vs-actual billing mismatches

Admin-only endpoint that summarizes mismatch flags into auto-repairable and manual-review groups for the requested updated-at window. Without an explicit time range, the summary defaults to the last 30 days.

get/admin/billing/mismatches/summary

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/admin/billing/mismatches/summary
  • Auth: API key in header x-api-key

Query parameters

fromstring

Updated-at lower bound in RFC3339 format

tostring

Updated-at upper bound in RFC3339 format

plan'Free' | 'Starter' | 'Growth' | 'Pro' | 'Business' | 'Enterprise' | 'Admin'

Billing plan

mismatch_flagstring

Mismatch flag to summarize

repair_status'pending' | 'running' | 'succeeded' | 'failed' | 'skipped'

Stripe repair status

exclude_test_accountsboolean

Exclude sandbox accounts and Stripe test data

Headers

x-api-keystring required

Admin API key required unless an Admin JWT is already present

Response

Billing mismatch summary

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "auto_repairable": [
      {
        "actual_total_cents": 50200,
        "delta_total_cents": -5100,
        "expected_total_cents": 55300,
        "invoice_count": 7,
        "mismatch_flag": "unmatched_adjustment"
      }
    ],
    "manual_review": [
      {
        "actual_total_cents": 50200,
        "delta_total_cents": -5100,
        "expected_total_cents": 55300,
        "invoice_count": 7,
        "mismatch_flag": "unmatched_adjustment"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.