Cancel the plan at the end of the billing period

posthttps://api.expiryedge.com/v1/cancelSubscription
admin60/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.

Body-Parameter

application/json
  • reasonstring
    max length: 500
  • feedbackstring
    max length: 5000

Rückgabe

200
Cancellation scheduled.
  • statusstringerforderlich
    Erlaubtsuccess
  • messagestringerforderlich
  • cancel_atstringerforderlich
    UTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time

Fehler

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.