Skip to main content
POST
/
api
/
v2
/
webhook
/
topics
List Topics
curl --request POST \
  --url https://api.paytring.com/api/v2/webhook/topics \
  --header 'Authorization: Basic <encoded-value>'
{
  "status": true,
  "data": [
    {
      "name": "<string>",
      "description": "<string>"
    }
  ]
}
Retrieve a list of all available webhook event types (topics) that you can subscribe to.

Sample Request

curl --location 'https://api.paytring.com/api/v2/webhook/topics' \
--user '<API_KEY>:<API_SECRET>'

Sample Response

{
    "status": true,
    "data": [
        {
            "name": "order.paid",
            "description": "Triggered when an order is successfully paid."
        },
        {
            "name": "order.failed",
            "description": "Triggered when a payment attempt fails."
        }
    ]
}

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

Successful response

status
boolean
data
object[]