accepts-api-key

Resync Subscription

Make a user's local subscription match Stripe, by email. Admin only.

Re-resolves the Stripe customer (the stored id is kept only if Stripe still has it, else the customer is found by its firebaseUID metadata), then upserts the newest active subscription the way the webhooks do, or clears a local subscription Stripe no longer has. Never grants tokens: those stay tied to paid invoices.

post/admin/resync_subscription

Request

  • Base URL
    https://api.tellers.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Headers

x-api-keystring nullable
authorizationstring nullable

Request body

emailstring required

Email of the user whose subscription to resync

Response

Successful Response

emailstring required

Email of the resynced user

stripe_customer_idstring nullable required

Stripe customer the user is linked to, null if none exists

stripe_customer_updatedboolean required

True if the stored Stripe customer id was changed

action'upserted' | 'cleared' | 'unchanged' required

upserted: the local subscription now mirrors Stripe; cleared: a stale local subscription was removed; unchanged: nothing to do

Changes

No recorded changes to this operation across all 2 revisions of this API.