Skip to main content
GET
/
api
/
external
/
v2
/
cancellation-managements
/
{id}
Get cancellation flow configuration
curl --request GET \
  --url https://membership-admin.appstle.com/api/external/v2/cancellation-managements/{id}
{
  "shop": "my-store.myshopify.com",
  "id": 101,
  "cancellationInstructionsText": "<string>",
  "cancellationReasonsJSON": "<string>",
  "cancellationRetentionMessage": "<string>",
  "pauseDurationCycle": 123,
  "dynamicallyPauseCycleOnCancellation": true,
  "discountRecurringCycleLimit": 123
}

Documentation Index

Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt

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

Headers

X-API-Key
string

Path Parameters

id
integer<int64>
required

Shop identifier (typically shop domain)

Query Parameters

api_key
string

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

Response

Cancellation flow configuration successfully retrieved

shop
string
required

Shop domain identifier

Example:

"my-store.myshopify.com"

id
integer<int64>

Unique identifier of the cancellation management config

Example:

101

cancellationType
enum<string>

Type of cancellation flow to present to customers

Available options:
CANCEL_IMMEDIATELY,
CANCELLATION_INSTRUCTIONS,
CUSTOMER_RETENTION_FLOW
cancellationInstructionsText
string

Custom instructions text shown during cancellation

cancellationReasonsJSON
string

JSON array of cancellation reason options presented in the survey

cancellationRetentionMessage
string

Retention message shown to discourage cancellation

pauseDurationCycle
integer<int32>

Number of billing cycles to pause when pause option is selected

dynamicallyPauseCycleOnCancellation
boolean
discountRecurringCycleLimit
integer<int32>

Number of billing cycles the retention discount applies to