---
title: "Sync tier from Stripe customer subscriptions into Supabase"
method: POST
path: "/billing/sync-subscription-from-stripe"
tags: ["billing"]
---

# Sync tier from Stripe customer subscriptions into Supabase

`POST /billing/sync-subscription-from-stripe`

## Response `200`

Uses stripe_customer_id on the current user to list active Stripe subscriptions, infers Memara tier from subscription prices (including lookup_key / product name), then updates Supabase. Use when webhooks never wrote tier/subscription_id (e.g. customer paid but raw_user_meta_data has only stripe_customer_id).

- ConfirmCheckoutSessionResponse
  - `tier` string, required
  - `synced` boolean
  - `subscription_id` string, nullable

---

[API](https://skmtc.net/memara/apis/memara-api.md) · [All operations](https://skmtc.net/memara/apis/memara-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memara/memara-api/revisions/4dc7c4418845/schema)
