Ensures the authenticated user has a Stripe Customer record and returns its id.
POST/stripe/ensure-customer
Creates one (Email, Name, Metadata.UserId) if missing and persists the id to ProfileData.StripeCustomerId. NO charge is made — this is purely the customer record, which is required before saving a card via SetupIntent for AutoRecharge.
Responses
- 200
- 401
- 403
- 500
OK
Unauthorized - missing or invalid credentials.
Forbidden - authenticated but missing required role or policy.
Internal Server Error