v1

latestOpenAPI 3.1.02026-08-06209117239.7 KB
billing

Sync tier from Stripe customer subscriptions into Supabase

post/billing/sync-subscription-from-stripe

Response

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).

tierstring required
syncedboolean
subscription_idstring nullable