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.

Reactivates an archived membership tier to allow new subscriptions.

URL Parameters

id
integer
required
The ID of the membership tier to activate

Returns

Returns the updated membership tier object with active status.
curl -X POST https://api.onlydrams.app/odis/v1/tiers/2/activate \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "id": 2,
  "name": "Gold Member",
  "description": "Premium access with exclusive content",
  "monthly_price_cents": 1999,
  "monthly_price_dollars": 19.99,
  "annual_price_cents": 19190,
  "annual_price_dollars": 191.9,
  "annual_discount_percentage": 20,
  "currency": "usd",
  "free_trial_enabled": true,
  "free_trial_days": 7,
  "require_shipping_address": true,
  "member_limit": 50,
  "current_member_count": 30,
  "has_available_spots": true,
  "position": 2,
  "status": "active",
  "cover_image_url": "https://storage.googleapis.com/onlydrams/tiers/gold.jpg",
  "stripe_product_id": "prod_yyy",
  "stripe_price_id": "price_yyy",
  "community": {
    "id": 1,
    "name": "Whisky Enthusiasts"
  },
  "created_at": "2024-11-14T10:30:00Z",
  "updated_at": "2024-11-14T12:15:00Z"
}

Notes

  • Authorization: Community owner or admin only
  • New Subscriptions: Enabled after activation
  • Stripe: Associated Stripe Product is marked as active
  • Member Limits: Check has_available_spots to verify capacity