---
title: "Summarize Stripe repair backlog"
method: GET
path: "/admin/billing/stripe/repair/summary"
tags: ["Billing"]
---

# Summarize Stripe repair backlog

`GET /admin/billing/stripe/repair/summary`

## Request

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

Admin-only endpoint that summarizes invoice event, adjustment event, and invoice snapshot repair backlog by repair status, source, and attempt bucket. Without an explicit time range, the summary defaults to the last 30 days.

## Query parameters

- `from` string
- `to` string
- `recent_errors_limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

Stripe repair backlog summary

- BillingStripeRepairBacklogSummaryResponseDoc
  - `code` integer
  - `data` BillingStripeRepairBacklogSummaryDoc
    - `adjustment_events` BillingStripeRepairBacklogBucketDoc
      - `by_attempt_bucket` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_source` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_status` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `total` integer
    - `auto_retry_exhausted_count` integer
    - `invoice_events` BillingStripeRepairBacklogBucketDoc
      - `by_attempt_bucket` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_source` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_status` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `total` integer
    - `recent_errors` BillingStripeRepairRecentErrorDoc[]
      - `candidate_kind` string
      - `event_id` string
      - `invoice_id` string
      - `repair_attempts` integer
      - `repair_last_attempt_at` string
      - `repair_last_error` string
      - `repair_status` string
      - `resource_id` string
    - `snapshots` BillingStripeRepairBacklogBucketDoc
      - `by_attempt_bucket` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_source` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `by_status` BillingStripeRepairStatusCountDoc[]
        - `count` integer
        - `key` string
      - `total` integer
  - `msg` string

## Other responses

- `400`: Invalid query parameters
- `401`: Authentication required
- `403`: Admin plan required
- `500`: Internal server error

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
