---
title: "Reconcile Stripe"
method: POST
path: "/api/tasks/reconcile-stripe"
tags: ["Tasks", "Tasks"]
---

# Reconcile Stripe

`POST /api/tasks/reconcile-stripe`

Daily reconciliation job. Wired to Cloud Scheduler at 03:00 UTC.

Reads the last 24h of paid invoices from BOTH our DB and Stripe, diffs
them, and returns a structured report. Clean = 200; any discrepancy
= 500 with an ERROR log line that the `primetime_stripe_reconciliation_
failure` log-based metric picks up and routes to the ops alert policy.

NEVER auto-corrects — see services/reconciliation.py docstring.

## Headers

- `x-cloudscheduler-secret` string, nullable
- `x-scheduler-secret` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/primetime/apis/primetime-media-api.md) · [All operations](https://skmtc.dev/primetime/apis/primetime-media-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/primetime/primetime-media-api/revisions/9da9a9f64e11/schema)
