Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Permanently deletes a membership tier. Only allowed if there are no active members.

URL Parameters

id
integer
required
The ID of the membership tier to delete

Returns

Returns a success message if the tier was deleted.
curl -X DELETE https://api.onlydrams.app/odis/v1/tiers/2 \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "message": "Membership tier deleted successfully"
}

Error Responses

{
  "message": "Cannot delete tier with active members"
}

Notes

  • Authorization: Community owner or admin only
  • Constraint: Cannot delete tiers with active members
  • Alternative: Use the archive endpoint to prevent new subscriptions while maintaining existing members
  • Stripe: Associated Stripe Product is not deleted but becomes inactive