Create a Webhook

Changed on

This endpoint generates a webhook

post/webhooks

Request

  • Base URL
    https://api.sandbox.waza.co/payouts/v1
  • URL
    https://api.sandbox.waza.co/payouts/v1/webhooks
  • Auth
    none required

Headers

x-waza-keystring

your app key

Request body

urlstring required

URL endpoint where the webhook notifications are sent

secretstring required

webhook secret key

enabled_eventsstring[] required

An array of event names that you want to receive notifications i.e. ["transaction.created", "transaction.processing"]

Response

200

Example response

{
  "data": {
    "id": "0f21e451-d2a2-4630-be1d-9afeb509375d",
    "created_at": "2023-08-10T09:36:05.941Z",
    "updated_at": "2023-08-10T09:36:05.941Z",
    "state": "ENABLED",
    "url": "https://127.0.0.1:3001",
    "secret": "1234",
    "enabled_events": [
      "transaction.created"
    ]
  }
}

Changes