Records an identity's plan and its Stripe customer link (subscription activation, renewal, cancellation, or a sales/comp plan set by hand). Idempotent by `reason`, mirroring the quota endpoint.
The identity ↔ Stripe customer join. The path email is the primary key: it is the identity's own address, read out of the gateway by checkout and mirrored into our Stripe metadata, and it resolves through [identity::identity_by_email]'s alias-collapsed canonical_key; so a subscription bought as you+work@gmail.com reaches the identity that signed up as you@gmail.com. stripe_customer_id is stamped onto that row, not joined on, because Checkout mints a fresh Stripe customer per session: customer → identity is many-to-one, so it could never be the primary join. When the email matches nothing but the supplied customer id is already linked to an identity, that link is used as a fallback (the customer edited their email in Stripe's billing portal), rather than 404-ing for Stripe's whole retry window.
Request
- Base URL: https://api.mapmap.ai
- URL: https://api.mapmap.ai/admin/identities/{email}/plan
- Auth: HTTP bearer
Path parameters
Identity email (case-insensitive)
Request body
Response
Plan applied (or unchanged, when the reason was replayed)
Changes
No recorded changes to this operation across all 1 revision of this API.