Billing

Reconcile unmatched Stripe invoice events

Admin-only endpoint that retries local matching for unmatched Stripe invoice webhook audit events. It does not call the Stripe API.

post/admin/billing/stripe/invoice-events/reconcile

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/admin/billing/stripe/invoice-events/reconcile
  • Auth: API key in header x-api-key

Query parameters

limitinteger

Maximum unmatched events to scan. Defaults to 500 and clamps to 5000.

Headers

x-api-keystring required

Admin API key required unless an Admin JWT is already present

Response

Stripe invoice reconciliation summary

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "errors": [
      {
        "error": "no billing period ledger matched stripe invoice",
        "event_id": "evt_123",
        "stripe_invoice_id": "in_123"
      }
    ],
    "failed": 1,
    "matched": 480,
    "scanned": 500,
    "unmatched": 19
  },
  "msg": "OK"
}

Changes

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