Skip to main content
GET
/
api
/
external
/
v2
/
cancellation-managements
/
{id}
Get cancellation management configuration
curl --request GET \
  --url https://subscription-admin.appstle.com/api/external/v2/cancellation-managements/{id}
{
  "id": 12345,
  "shop": "example-shop.myshopify.com",
  "enabled": true,
  "allowSelfServiceCancellation": true,
  "requireSupportContact": false,
  "minimumSubscriptionDays": 30,
  "cancellationTiming": "END_OF_BILLING_CYCLE",
  "requireCancellationReason": true,
  "allowCustomReason": true,
  "cancellationReasons": [
    "Too expensive",
    "Have too much product",
    "Product quality issues",
    "Switching to competitor",
    "Delivery problems",
    "Don't need anymore",
    "Temporary situation (moving, travel, etc.)",
    "Other"
  ],
  "collectFeedback": true,
  "feedbackRequired": false,
  "showExitSurvey": true,
  "retentionOffersEnabled": true,
  "retentionStrategies": {
    "Too expensive": [
      {
        "type": "DISCOUNT",
        "value": "20",
        "duration": 3,
        "description": "20% off for 3 months"
      },
      {
        "type": "FREQUENCY_CHANGE",
        "description": "Deliver less often to save money"
      }
    ],
    "Have too much product": [
      {
        "type": "PAUSE",
        "maxDuration": 90,
        "description": "Pause for up to 3 months"
      },
      {
        "type": "SKIP",
        "skipCount": 2,
        "description": "Skip your next 2 deliveries"
      },
      {
        "type": "FREQUENCY_CHANGE",
        "description": "Switch to every 2 months"
      }
    ],
    "Product quality issues": [
      {
        "type": "SUPPORT_CONTACT",
        "description": "Let us make it right - contact support"
      },
      {
        "type": "PRODUCT_SWAP",
        "description": "Try a different product"
      }
    ]
  },
  "confirmationFlow": {
    "multiStep": true,
    "showAlternatives": true,
    "requireConfirmation": true,
    "cooldownPeriod": 24
  },
  "notifications": {
    "sendCustomerConfirmation": true,
    "sendMerchantNotification": true,
    "merchantEmail": "subscriptions@example.com",
    "enableWinBackCampaigns": true,
    "winBackSchedule": [
      30,
      60,
      90
    ]
  },
  "analytics": {
    "trackCancellationRate": true,
    "trackReasonFrequency": true,
    "trackRetentionOfferAcceptance": true,
    "alertOnHighChurnRate": true,
    "churnRateThreshold": 15
  },
  "uiSettings": {
    "buttonText": "Cancel Subscription",
    "buttonColor": "#DC3545",
    "warningMessage": "We'll be sorry to see you go! Before you cancel, let us try to help.",
    "confirmationMessage": "Your subscription has been cancelled. You will receive a confirmation email shortly.",
    "thankYouMessage": "Thank you for being a subscriber. We hope to see you again!"
  },
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-02-20T14:45:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://developers.appstle.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-API-Key
string

Path Parameters

id
integer<int64>
required

Query Parameters

api_key
string

API Key (Deprecated - Use Header X-API-Key instead)

Response

Cancellation management configuration successfully retrieved

shop
string
required
id
integer<int64>
cancellationType
enum<string>
Available options:
CANCEL_IMMEDIATELY,
CANCELLATION_INSTRUCTIONS,
CUSTOMER_RETENTION_FLOW,
CANCEL_AFTER_PAUSE
cancellationInstructionsText
string
cancellationReasonsJSON
string
pauseInstructionsText
string
pauseDurationCycle
integer<int32>
enableDiscountEmail
boolean
discountEmailAddress
string
pauseType
enum<string>
Available options:
PAUSE_IMMEDIATELY,
PAUSE_INSTRUCTIONS,
CUSTOMER_RETENTION_FLOW
pauseReasonsJSON
string
dynamicallyPauseCycleOnCancellation
boolean