Issues a full or partial refund for the most recent invoice of a member’s subscription.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.
URL Parameters
The ID of the community
The ID of the community membership
Request Body
Amount to refund in cents. If omitted, full invoice amount is refunded.
Refund reason:
duplicate, fraudulent, or requested_by_customer (default)Returns
Returns the refund details from Stripe.Error Responses
Notes
- Authorization: Community owner or admin only
- Latest Invoice: Refunds the most recent invoice charge
- Partial Refunds: Specify
amount_centsless than invoice total - Full Refunds: Omit
amount_centsto refund entire invoice - Metadata: Refund details are stored in member metadata
- Subscription: Refunding doesn’t cancel the subscription automatically
- Stripe: Refund is processed through Stripe and may take 5-10 business days to appear

