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.

The Tickets API provides functionality for purchasing giveaway tickets using Stripe payment processing. Users can buy tickets for various giveaways and raffles.

Key Features

  • Ticket Purchases: Buy tickets for giveaways and raffles
  • Stripe Integration: Secure payment processing via Stripe
  • Payment Intent Creation: Generate payment intents for client-side payment processing
  • Quantity Validation: Ensure valid ticket quantities
  • Customer Management: Automatic customer association with Stripe

Payment Flow

  1. Client requests payment sheet with desired ticket quantity
  2. Server creates Stripe payment intent
  3. Client receives payment intent client secret
  4. Client completes payment using Stripe SDK
  5. Tickets are issued upon successful payment

Authentication

All tickets endpoints require authentication via Bearer token in the Authorization header.

Base URL

https://api.onlydrams.app/api/v1