Required form before canceling a paid plan: what could we have done better (owner)
POST
/v1/orgs/{org}/billing/cancellation-feedback
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/cancellation-feedback';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"reason":"price","switchedTo":"example","comment":"example","rating":1,"contactAllowed":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/cancellation-feedback \ --header 'Content-Type: application/json' \ --data '{ "reason": "price", "switchedTo": "example", "comment": "example", "rating": 1, "contactAllowed": true }'DAT-3351. Not a retention step: no offers. The answer is valid for 30 minutes for canceling (or opening the Stripe portal with intent=cancel) and is emailed to the internal inbox.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reason
required
string
switchedTo
Required when reason is switched_tool: which tool
string
comment
required
What could we have done for you to stay? 20–2000 characters
string
rating
integer
contactAllowed
boolean
Responses
Section titled “Responses”Saved
Media typeapplication/json
object
id
required
string
validForMinutes
required
integer
Example generated
{ "id": "example", "validForMinutes": 1}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}