Skip to main content
GET
/
api
/
external
/
v2
/
manage-subscription-link
/
{customerId}
Generate customer portal link
curl --request GET \
  --url https://subscription-admin.appstle.com/api/external/v2/manage-subscription-link/{customerId} \
  --header 'X-API-Key: <x-api-key>'
{
  "manageSubscriptionLink": "https://store.example.com/pages/manage-subscriptions?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaG9wIjoic3RvcmUuZXhhbXBsZS5jb20iLCJjdXN0b21lcklkIjo5ODc2NTQzMjEsImNyZWF0ZWRBdCI6MTcxMDUxMjQwMDAwMH0.dGhpcyBpcyBhIHNhbXBsZSB0b2tlbiBmb3IgZG9jdW1lbnRhdGlvbg",
  "tokenExpirationTime": "2024-03-15T16:30:00.000Z",
  "expiresInMinutes": 120,
  "customerId": 987654321,
  "portalUrl": "https://store.example.com/pages/manage-subscriptions"
}

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
required

API Key for authentication

Path Parameters

customerId
integer<int64>
required

Customer ID to generate portal link for. Provide the numeric ID without the gid:// prefix

Required range: x >= 1

Query Parameters

api_key
string

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

Response

Manage subscription link successfully generated

tokenExpirationTime
string<date-time>