Generate Cancel Flow Link
Generates a secure, time-limited URL for the hosted retention flow. When a customer clicks cancel in your app, send them to this URL — Revtain serves a branded page offering the retention options configured on your account (pause, discount, downgrade).
- URL is valid for 48 hours and can be used once
- When the customer makes a choice, you receive a
churn.flow.{outcome}webhook - Requires the cancel flow to be enabled on your account
Documentation Index
Fetch the complete documentation index at: https://docs.revtain.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your Revtain API key (format: rev_xxx). Provided during onboarding.
Body
Your internal identifier for the customer.
"cus_abc123"
The customer's email address.
"customer@example.com"
Your internal subscription identifier. Echoed back on the churn webhook.
"sub_789"
The recurring charge in the smallest currency unit. Used to render the retention offer.
x >= 02900
3-letter ISO 4217 currency code.
"USD"
Where to send the customer after they complete the flow.
"https://app.yourdomain.com/account"
Response
Cancel flow link created