Cancel the plan at the end of the billing period
post
https://api.expiryedge.com/v1/cancelSubscriptionadmin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/cancelSubscription' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "too_expensive",
"feedback": "We are consolidating tools at Northwind Dental."
}'Antwort
{
"status": "success",
"message": "Subscription will be canceled at the end of the billing period",
"cancel_at": "2026-10-15T00:00:00.000Z"
}Sets the organization's Stripe subscription to cancel at period end and records the feedback.
reasonstringmax length: 500feedbackstringmax length: 5000
200
Cancellation scheduled.
statusstringerforderlichErlaubtsuccessmessagestringerforderlichcancel_atstringerforderlichUTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-time
400 | No active subscription found, or another failure. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | User record not found. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
