Skip to main content
PATCH
/
webhooks
/
subscriptions
/
{subscriptionId}
Update webhook subscription
curl --request PATCH \
  --url https://api.paysway.dev/webhooks/subscriptions/{subscriptionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "enabled": true,
  "url": "<string>",
  "events": [
    "<string>"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdDate": "2023-11-07T05:31:56Z",
  "enabled": true,
  "title": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.paysway.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

subscriptionId
string<uuid>
required

Body

application/json
title
string
enabled
boolean
url
string<uri>
events
string[]

Response

200 - application/json

Webhook subscription updated successfully

id
string<uuid>
required
createdDate
string<date-time>
required
enabled
boolean
required
title
string
required
url
string<uri>
required
events
string[]
required
secret
string

Base64-encoded secret key used to generate webhook signatures. Only returned at creation.