Billing
Repair Stripe reconciliation from Stripe API
Admin-only endpoint that scans unmatched or failed Stripe invoice and adjustment reconciliation candidates, retrieves the latest Stripe objects, and replays local snapshot and closed-ledger reconciliation. This is the only admin billing route that explicitly reads from Stripe.
post/admin/billing/stripe/repair
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/admin/billing/stripe/repair
- Auth: API key in header x-api-key
Query parameters
kind'invoice' | 'adjustment' | 'all'
Repair candidate kind
limitinteger
Maximum repair candidates to scan. Defaults to 200 and clamps to 1000.
Headers
x-api-keystring required
Admin API key required unless an Admin JWT is already present
Response
Stripe repair summary
Example response
{
"code": 200,
"data": {
"adjustment_repaired": 80,
"errors": [
{
"candidate_kind": "invoice",
"error": "stripe customer is not linked to a user",
"event_id": "evt_123",
"invoice_id": "in_123",
"resource_id": "cn_123"
}
],
"failed": 3,
"invoice_repaired": 40,
"scanned": 200,
"skipped": 77,
"succeeded": 120
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.