curl --request POST \
--url https://api.pandabase.io/v2/core/stores/{storeId}/subscriptions/{subscriptionId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"immediate": false
}
'{
"ok": true,
"data": "<unknown>"
}Cancel at period end (default) or immediately. Immediate cancellation revokes access and licenses.
curl --request POST \
--url https://api.pandabase.io/v2/core/stores/{storeId}/subscriptions/{subscriptionId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"immediate": false
}
'{
"ok": true,
"data": "<unknown>"
}Store API token. Use the sk_ prefixed secret key as the Bearer token.
Store ID (shp_ prefix)
12 - 48Subscription ID (sub_ prefix)
12 - 48If true, cancel immediately and revoke access. If false, cancel at end of current billing period.