Update a Webhook

Changed on

With this endpoint, you can update an existing webhook configuration. You can modify the target URL, secret, or change the list of events you're subscribed to.

patch/webhooks/{id}

Request

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

Path parameters

idstring required

unique {id} of account owner e.g. 0947445e-333f-4b3b-a5f9-27267429d2b0

Headers

x-waza-keystring

your app key

Request body

urlstring

URL endpoint where the webhook notifications are sent

secretstring

Webhook url secret

enabled_eventsstring

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": "DISABLED",
    "url": "https://127.0.0.1:3001",
    "secret": "1234",
    "enabled_events": [
      "transaction.created"
    ]
  }
}

Changes