KashierDevelopersKashier Developers

Update a webhook

curl -X PUT "https://test-api.kashier.io/v2/webhooks/string" \  -H "Content-Type: application/json" \  -d '{    "isActive": false  }'
{  "_id": "string",  "merchantId": "string",  "name": "string",  "url": "http://example.com",  "headers": {    "property1": "string",    "property2": "string"  },  "events": [    "pay"  ],  "mode": "test",  "isActive": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Updates an existing webhook. Send only the fields you want to change. The https-only URL rule from webhook creation applies here too. Moving a webhook to the other mode re-checks that mode's webhook cap, so an update can be rejected if the target mode is already full.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Path Parameters

webhookId*string

The webhook's _id, from List your webhooks or Create a webhook.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

PUT
/v2/webhooks/{webhookId}