> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plec-it.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Handle Stripe webhook

> Receives Stripe webhook events (checkout.session.completed, payment_intent.succeeded, etc.). Verifies request using Stripe-Signature header and raw body. Do not send Bearer auth.



## OpenAPI

````yaml POST /stripe/webhook
openapi: 3.0.0
info:
  title: PLEC API
  description: PLEC backend API reference
  version: '1.0'
  contact: {}
servers:
  - url: https://api.plec-it.com
    description: Production
  - url: https://api-staging.plec-it.com
    description: Staging
  - url: http://localhost:3000
    description: Local Development
security: []
tags: []
paths:
  /stripe/webhook:
    post:
      tags:
        - Stripe
      summary: Handle Stripe webhook
      description: >-
        Receives Stripe webhook events (checkout.session.completed,
        payment_intent.succeeded, etc.). Verifies request using Stripe-Signature
        header and raw body. Do not send Bearer auth.
      operationId: WebhookController_handleWebhook
      parameters:
        - name: stripe-signature
          in: header
          description: Stripe webhook signature (e.g. t=1234567890,v1=...)
          required: true
          schema:
            type: string
        - name: dryRun
          in: query
          description: >-
            When true, validates/simulates but performs no writes. Required for
            docs playground.
          required: true
          schema:
            type: string
            enum:
              - 'true'
            default: 'true'
      requestBody:
        required: true
        description: >-
          Raw Stripe event payload (application/json). Schema varies by event
          type.
        content:
          application/json:
            schema:
              type: object
              description: Stripe Event object
      responses:
        '200':
          description: Event processed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Missing signature or invalid payload

````