Open SuaYoo opened 2 weeks ago
Current impl in progress: /api/orgs/{oid}/billing
returns {"subUrl": <Subscription URL>, "subStatus": <Subscription Status>}
@ikreymer @emma-sg could the backend API also return a subscription type of Per Discord convo, billing will return a self-service
or managed
? That way we don't need to deal with details of all the subscription tiers right now, but we can handle showing different UI for the two.null
subscription object, from which the tier will be inferred for now.
Mockups
Backend changes
GET /api/settings
:GET /api/orgs/{oid}/billing
endpoint with fields:'active', 'canceled', 'incomplete', 'incomplete_expired', 'past_due', 'paused', 'trialing', 'unpaid'
Frontend changes