---
title: "Audit or repair one user's canonical Stripe subscription"
method: POST
path: "/admin/billing/stripe/subscriptions/repair"
tags: ["Billing"]
---

# Audit or repair one user's canonical Stripe subscription

`POST /admin/billing/stripe/subscriptions/repair`

## Request

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

Searches Stripe by trusted user_id metadata, refuses ambiguous live subscriptions, and previews the canonical customer, subscription, plan, and item-level period. dry_run defaults to true.

## Headers

- `x-api-key` string, required

## Request body

- object

## Response `200`

OK

- AppResponse: The Response struct is used for wrapping the API response with a code, message, and data.
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` unknown
  - `msg` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `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/028417aa35bb?raw)
