Skip to main content
POST
/
webhooks
/
subscriptions
Create webhook subscription
curl --request POST \
  --url https://api.paysway.dev/webhooks/subscriptions \
  --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.

Body

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

Response

201 - application/json

Webhook subscription created 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.