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

# Receive Stripe webhook event



## OpenAPI

````yaml https://portal.unicontrol.me/v1/openapi post /v1/billing/stripe/webhook
openapi: 3.1.0
info:
  title: Unicontrol API
  description: Welcome
  version: 1.0.0
servers:
  - url: http://0.0.0.0:3000
    description: Local Server
  - url: https://portal.test.flexhome.casa
    description: Development
  - url: https://portal.unicontrol.me
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/billing/stripe/webhook:
    post:
      tags:
        - Billing
      summary: Receive Stripe webhook event
      operationId: postV1BillingStripeWebhook
      parameters:
        - in: header
          name: stripe-signature
          required: true
          schema:
            type: string
          description: Stripe webhook signature for verification
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Stripe event payload
            example:
              id: evt_xxx
              type: checkout.session.completed
              data: {}
      responses:
        '200':
          description: Webhook processed
          content:
            application/json:
              example:
                received: true
        '400':
          description: Dados inválidos
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
              example:
                message: validation error
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````