---
title: "Sync Subscription"
method: POST
path: "/payments/sync-subscription"
tags: ["payments"]
---

# Sync Subscription

`POST /payments/sync-subscription`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/payments/sync-subscription`
- Auth: HTTP bearer

Sync local subscription state with Stripe.

Safety net for when webhooks fail or are delayed.
Checks Stripe for the customer's actual active subscription
and updates the local DB + user plan accordingly.

Called by the frontend billings page when it detects a mismatch
(e.g., paid invoice exists but user is on free plan).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
