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

# Ingest a provider event

> Receives a raw webhook event from a payment provider for async processing.



## OpenAPI

````yaml post /v1/provider-events
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/provider-events:
    post:
      tags:
        - Provider Events
      summary: Ingest a provider event
      description: >-
        Receives a raw webhook event from a payment provider for async
        processing.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                providerId:
                  type: string
                externalEventId:
                  type: string
                eventType:
                  type: string
                payload:
                  type: object
                  additionalProperties:
                    nullable: true
              required:
                - providerId
                - externalEventId
                - eventType
                - payload
      responses:
        '201':
          description: Event ingested
          content:
            application/json:
              schema:
                nullable: true

````