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.

Retrieves detailed Stripe subscription and customer information for a community member.

URL Parameters

community_id
integer
required
The ID of the community
id
integer
required
The ID of the community membership

Returns

Returns detailed Stripe subscription and customer data.
curl -X GET https://api.onlydrams.app/odis/v1/communities/1/members/50/subscription_details \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "subscription": {
    "id": "sub_1234567890",
    "status": "active",
    "current_period_start": "2024-11-01T00:00:00Z",
    "current_period_end": "2024-12-01T00:00:00Z",
    "cancel_at_period_end": false,
    "canceled_at": null,
    "trial_start": null,
    "trial_end": null,
    "metadata": {}
  },
  "customer": {
    "id": "cus_1234567890",
    "email": "member@example.com",
    "name": "John Doe",
    "phone": "+15555551234",
    "address": {
      "line1": "123 Main St",
      "line2": "Apt 4B",
      "city": "Portland",
      "state": "OR",
      "postal_code": "97201",
      "country": "US"
    },
    "shipping": null
  },
  "shipping_address": {
    "name": "John Doe",
    "line1": "123 Main St",
    "line2": "Apt 4B",
    "city": "Portland",
    "state": "OR",
    "postal_code": "97201",
    "country": "US"
  },
  "billing_address": {
    "line1": "123 Main St",
    "line2": "Apt 4B",
    "city": "Portland",
    "state": "OR",
    "postal_code": "97201",
    "country": "US"
  }
}

Response Fields

subscription
object
Stripe subscription object with current status and billing period
customer
object
Stripe customer object with contact and address information
shipping_address
object
Shipping address collected during checkout (if required by tier)
billing_address
object
Billing address from Stripe customer

Notes

  • Authorization: Community owner or admin only
  • Real-time Data: Fetches current data from Stripe
  • Customer Info: Includes all customer contact details
  • Address Data: Provides both shipping and billing addresses
  • Subscription Status: Shows current Stripe subscription state