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

# Create webhook

> Developer API operation for POST /dev/v1/webhooks.



## OpenAPI

````yaml /openapi.json post /dev/v1/webhooks
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/webhooks:
    post:
      tags:
        - Webhook Endpoints
      summary: Create webhook
      description: Developer API operation for POST /dev/v1/webhooks.
      operationId: postDevV1Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - url
                - events
              properties:
                url:
                  type: string
                  minLength: 1
                events:
                  type: array
                  minItems: 1
                  maxItems: 12
                  items:
                    type: string
                    enum:
                      - order:created
                      - order:updated
                      - order:partial
                      - order:paid
                      - order:cancelled
                      - order:disputed
                      - order:created:product
                      - order:updated:product
                      - order:partial:product
                      - order:paid:product
                      - order:cancelled:product
                      - order:disputed:product
                      - order:manual_payment_pending
                      - order:item.delivered
                      - order:item.delivery_failed
                      - order:shipped
                      - dispute:created
                      - dispute:evidence_ready
                      - dispute:submitted
                      - dispute:won
                      - dispute:lost
                      - dispute:accepted
                      - product:created
                      - product:edited
                      - product:stock
                      - product:dynamic
                      - query:created
                      - query:replied
                      - feedback:received
                      - affiliate:payout_requested
                      - reseller:enrolled
                      - reseller:application.created
                      - reseller:application.rejected
                      - reseller:suspended
                      - reseller:order.completed
                      - reseller:tier.advanced
                      - subscription:trial:started
                      - subscription:trial:ended
                      - subscription:created
                      - subscription:updated
                      - subscription:renewed
                      - subscription:cancelled
                      - subscription:upcoming
                      - subscription:partial
                      - subscription:plan_change_scheduled
                      - subscription:plan_changed
                      - subscription:trial:started:product
                      - subscription:trial:ended:product
                      - subscription:created:product
                      - subscription:updated:product
                      - subscription:renewed:product
                      - subscription:cancelled:product
                      - subscription:upcoming:product
                      - subscription:plan_change_scheduled:product
                      - subscription:plan_changed:product
                      - subscription:payment_failed
                      - subscription:past_due
                      - subscription:recovered
                      - subscription:paused
                      - subscription:resumed
                      - subscription:trial:converted
                      - subscription:payment_failed:product
                      - subscription:past_due:product
                      - subscription:recovered:product
                      - subscription:paused:product
                      - subscription:resumed:product
                      - subscription:trial:converted:product
              additionalProperties:
                type: object
                additionalProperties: true
              example:
                url: https://app.example.com/webhooks/shoppex
                events:
                  - order:paid
                  - order:created
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                example:
                  data:
                    id: 11111111-1111-4111-8111-111111111111
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.