Appearance
Bulk Subscription Actions
Apply one action to many subscriptions in a single request. Only cancel is supported today.
POST /v1/subscriptions/bulkRequest Body
json
{
"ids": ["sub_xxx", "sub_yyy"],
"action": "cancel"
}| Field | Required | Type | Description |
|---|---|---|---|
ids | Yes | string[] | Subscription IDs to act on |
action | Yes | string | Only cancel is supported |
Response
json
{
"data": {
"success": true,
"affected": 2
}
}Example
bash
curl -X POST "https://api.packedge.dev/v1/subscriptions/bulk" \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["sub_xxx", "sub_yyy"],
"action": "cancel"
}'Notes
- IDs that don't belong to your account are silently skipped (reflected in the
affectedcount)
