APIEndpoint referenceStripe
/stripe/apply-retention-discount
30% off one invoice, offered when a user starts to cancel.
30% off one invoice, offered when a user starts to cancel.
The local flag is not checked before granting, so the endpoint will issue a second coupon to a user who already had one. The UI is what stops that today.
AuthorizationBearer <token>
Supabase access token.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/stripe/apply-retention-discount"{ "success": true}