PUT
/
webhooks
/
{webhook_id}
curl --request PUT \
  --url https://api.live.paisr.tech/{version}/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Checkout Callback",
  "endpoint": "https://my-checkout.com/callback"
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook_id
string
required

The Webhook ID.

Body

application/json
The details required to update the webhook.
description
string

Clear description on the webhook use case.

Example:

"Checkout Callback"

endpoint
string

Full url of the webhook.

Example:

"https://my-checkout.com/callback"

Response

200
application/json
Successfully updated webhook.
success
boolean

Indicates if the request was successful.

message
string

A descriptive message regarding the result.