Skip to main content

FastAPI demo

The FastAPI demo pairs an API-first backend with the Afterglow Sessions ticket experience. The visible ticket, server-side order, price, and fulfillment promise tell one consistent story.

About the app

Afterglow Sessions is an event-ticket experience built around a simple promise: the ticket a guest chooses is the ticket they pay for and receive. Guests can review the event and reserve their place without navigating a disconnected set of forms.

For the organizer, the app creates a direct route from event discovery to paid attendance. Its API-first shape also leaves room for the same ticket flow to serve a website, mobile client, or another sales surface.

Start with MCP

Connect your MCP client and ask MCP to adapt this ticket flow to your FastAPI application. It can produce a scoped API, security, and test plan before you begin implementation.

What it demonstrates

  • A FastAPI endpoint that validates a ticket reservation before creating an order
  • Typed order construction with the Inttegro Python SDK
  • Server-held credentials, request correlation, and bounded error messages
  • A 303 redirect to Inttegro Checkout

Run the demo

Create a Python virtual environment, install the pinned development requirements, and run the Uvicorn application. The released README contains the exact commands and focused pytest check.

Follow the integration

  1. app/checkout.py constructs the typed order and keeps SDK error details at the server boundary.
  2. app/main.py connects the page, validation, correlation, and redirect flow.

Production boundary

Persist your own reservation and the Inttegro order ID together. Treat the browser return as navigation, then verify payment server-side before issuing the ticket.

Continue