Skip to main content
GET
/
api
/
external
/
v2
/
manage-subscription-link
/
{customerId}
Generate customer portal magic link
curl --request GET \
  --url https://membership-admin.appstle.com/api/external/v2/manage-subscription-link/{customerId}
{
  "manageSubscriptionLink": "https://myshop.com/apps/memberships/cp/manage?token=abc123",
  "tokenExpirationTime": "2023-11-07T05:31:56Z"
}

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

customerId
integer<int64>
required

Shopify customer ID

Query Parameters

api_key
string

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

Response

Magic link generated successfully, returns link URL and expiration time

URL link for customers to manage their subscription

Example:

"https://myshop.com/apps/memberships/cp/manage?token=abc123"

tokenExpirationTime
string<date-time>

Expiration timestamp of the management token