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.

ENDPOINTS
GET /odis/v1/communities/:community_id/stripe-account
POST /odis/v1/communities/:community_id/onboard
POST /odis/v1/communities/:community_id/refresh
GET /odis/v1/communities/:community_id/payouts
GET /odis/v1/communities/:community_id/balance

Overview

Community owners connect their Stripe accounts to receive payments from member subscriptions. The Stripe Connect integration handles account creation, onboarding, dashboard access, payouts, and balance tracking.

Authentication

All endpoints require:
  • Community Owner: Full access to their Stripe account details
  • Admin: Full access to all Stripe accounts

Stripe Account Status Object

{
  "connected": true,
  "accountId": "acct_1234567890",
  "detailsSubmitted": true,
  "chargesEnabled": true,
  "payoutsEnabled": true
}

Account States

  • Not Connected: No Stripe account exists yet
  • Incomplete Setup: Account created but onboarding not completed
  • Connected: Fully onboarded and operational
  • Restricted: Issues with account preventing charges or payouts

Onboarding Flow

  1. Create Account: System creates Stripe Connect account
  2. Generate Link: Onboarding URL created for owner
  3. Complete Onboarding: Owner completes Stripe’s onboarding process
  4. Activation: Account becomes active and can accept payments

Platform Fees

The platform automatically collects fees from community earnings. Fee percentages are configured server-side.

Payout Schedule

Stripe handles payouts according to the account’s payout schedule (typically daily or weekly).