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

# Send a test event

> Fire a synthetic event of the given type. It is delivered to every active webhook
    currently subscribed to that event type — not just one — the same way a real event would be,
    including retries on failure. Useful for verifying a receiving endpoint without a real purchase.



## OpenAPI

````yaml /api-reference/api-docs.yaml post /v0/webhooks/sendTestEvent
openapi: 3.1.0
info:
  title: Fungies API v0
  version: 0.3.7
servers:
  - url: https://api.fungies.io
security: []
tags:
  - name: discounts
    description: Discounts related endpoints
  - name: keys
    description: Offer product keys related endpoints
  - name: orders
    description: Orders related endpoints
  - name: payments
    description: Payments related endpoints
  - name: offers
    description: Offers related endpoints
  - name: products
    description: Products related endpoints
  - name: subscriptions
    description: Subscriptions related endpoints
  - name: tax
    description: Tax calculation related endpoints
  - name: users
    description: Users related endpoints
  - name: variants
    description: Product variants related endpoints
  - name: plans
    description: Product plans related endpoints
  - name: elements
    description: Elements related endpoints
  - name: webhooks
    description: Webhooks related endpoints
paths:
  /v0/webhooks/sendTestEvent:
    post:
      tags:
        - webhooks
      summary: Send a test event
      description: >-
        Fire a synthetic event of the given type. It is delivered to every
        active webhook
            currently subscribed to that event type — not just one — the same way a real event would be,
            including retries on failure. Useful for verifying a receiving endpoint without a real purchase.
      operationId: PostV0WebhooksSendTestEvent
      requestBody:
        description: POST /v0/webhooks/sendTestEvent Request body
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV0WebhooksSendTestEventRequestBody'
      responses:
        '200':
          description: POST /v0/webhooks/sendTestEvent Positive response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV0WebhooksSendTestEventPositiveResponse
        '400':
          description: POST /v0/webhooks/sendTestEvent Negative response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV0WebhooksSendTestEventNegativeResponse
              examples:
                example1:
                  value:
                    status: error
                    error:
                      message: Sample error message
      security:
        - APIKEY_1: []
          APIKEY_2: []
components:
  schemas:
    PostV0WebhooksSendTestEventRequestBody:
      type: object
      properties:
        eventType:
          type: string
          enum:
            - payment_success
            - payment_refunded
            - payment_failed
            - subscription_created
            - subscription_interval
            - subscription_updated
            - subscription_cancelled
        items:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              offerId:
                type: string
                format: uuid
              quantity:
                type: integer
                format: int64
                exclusiveMinimum: 0
                maximum: 9007199254740991
              customFields:
                type:
                  - object
                  - 'null'
                additionalProperties:
                  type: string
            required:
              - offerId
              - quantity
        userId:
          type: string
          format: uuid
      required:
        - eventType
    PostV0WebhooksSendTestEventPositiveResponse:
      type: object
      properties:
        status:
          type: string
          const: success
        data:
          type: object
          properties:
            success:
              type: boolean
          required:
            - success
      required:
        - status
        - data
    PostV0WebhooksSendTestEventNegativeResponse:
      type: object
      properties:
        status:
          type: string
          const: error
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - status
        - error
  securitySchemes:
    APIKEY_1:
      type: apiKey
      in: header
      name: x-fngs-public-key
    APIKEY_2:
      type: apiKey
      in: header
      name: x-fngs-secret-key

````