Skip to main content
POST
/
api
/
v2
/
webhook
/
{id}
/
update
Fetch Webhook Details
curl --request POST \
  --url https://api.paytring.com/api/v2/webhook/{id}/update \
  --header 'Authorization: Basic <encoded-value>'
{
  "status": true,
  "data": {
    "id": "<string>",
    "url": "<string>",
    "topics": [
      "<string>"
    ],
    "status": "<string>",
    "created_at": "<string>"
  }
}
Retrieve configuration details for a specific webhook endpoint.
[!NOTE] The URL for fetching details uses {id}/update but uses the POST method.

Path Parameters

id
string
required
The unique ID of the webhook.

Sample Request

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

Sample Response

{
    "status": true,
    "data": {
        "id": "wh_12345",
        "url": "https://your-domain.com/webhook",
        "topics": ["order.paid"],
        "status": "active",
        "created_at": "2024-01-22T01:29:50Z"
    }
}

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.

Response

200 - application/json

Successful response

status
boolean
data
object