Skip to main content
POST
/
api
/
v2
/
webhook
/
{id}
Update Webhook
curl --request POST \
  --url https://api.paytring.com/api/v2/webhook/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "topics": [
    "<string>"
  ],
  "active": true
}
'
Modify an existing webhook endpoint’s configuration.

Path Parameters

id
string
required
The unique ID of the webhook.

Body Parameters

url
string
(Optional) The new URL.
topics
array
(Optional) Updated list of event types.
active
boolean
(Optional) Set to false to deactivate.

Sample Request

curl --location 'https://api.paytring.com/api/v2/webhook/wh_12345' \
--user '<API_KEY>:<API_SECRET>' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://new-domain.com/webhook",
    "active": false
}'

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The unique ID of the webhook.

Body

application/json
url
string
topics
string[]
active
boolean

Response

200

Webhook updated successfully