Mun design
  1. Public Webhooks
Mun design
  • Overview
  • Public Orders
    • Create Order
      POST
    • Update Order Status
      PUT
    • List Orders
      GET
    • Update Order
      PUT
    • Get Order
      GET
    • Cancel Order
      PUT
    • Delete Order
      DELETE
  • Public Webhooks
    • Register Webhook
      POST
    • Update Webhook
      PUT
    • Get Webhook
      GET
    • Delete Webhook
      DELETE
    • Test Webhook
      POST
  • Public Products
    • List Products
      GET
  • Schemas
    • Schemas
      • UpdateOrderStatusRequest
      • Pet
      • CreateOrderRequest
      • HTTPValidationError
      • DesignTypeEnum
      • ApiResponse
      • RegisterWebhookRequest
      • Category
      • Tag
      • UpdateWebhookRequest
      • OrderStatusEnum
      • Order
      • ValidationError
      • ProductTypeEnum
      • User
      • UpdateOrderRequest
    • UserArray
      • UserArray
  1. Public Webhooks

Register Webhook

POST
/webhooks/register
Register a new webhook endpoint
Required API Key in header: X-API-Key
Available events:
order.created
order.updated (when quantity is updated for 'new' orders)
order.completed (when status changes to 'done')
(all events)

Request

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Successful Response
Body

🟠422Parameter Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/webhooks/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "events": [
        "order.created",
        "order.updated",
        "payment.*"
    ],
    "url": "https://example.com/webhook"
}'
Response Response Example
200 - Example 1
{
    "property1": "string",
    "property2": "string"
}
Modified at 2025-09-15 17:52:50
Previous
Delete Order
Next
Update Webhook
Built with