Skip to content

Bulk Subscription Actions

Apply one action to many subscriptions in a single request. Only cancel is supported today.

POST /v1/subscriptions/bulk

Request Body

json
{
  "ids": ["sub_xxx", "sub_yyy"],
  "action": "cancel"
}
FieldRequiredTypeDescription
idsYesstring[]Subscription IDs to act on
actionYesstringOnly 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 affected count)