Skip to main content
POST
/
stores
/
{storeId}
/
subscriptions
/
{subscriptionId}
/
cancel
Cancel a subscription
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>"
}

Authorizations

Authorization
string
header
required

Store API token. Use the sk_ prefixed secret key as the Bearer token.

Path Parameters

storeId
string
required

Store ID (shp_ prefix)

Required string length: 12 - 48
subscriptionId
string
required

Subscription ID (sub_ prefix)

Required string length: 12 - 48

Body

application/json
immediate
boolean
default:false

If true, cancel immediately and revoke access. If false, cancel at end of current billing period.

Response

Successful operation

ok
boolean
required
data
any
required