POST
/
webhooks
curl --request POST \
  --url https://api.live.paisr.tech/{version}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Checkout Callback",
  "endpoint": "https://my-checkout.com/callback",
  "events": [
    "invoice.paid"
  ]
}'
{
  "success": true,
  "data": {
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
The details required to create a webhook.
description
string
required

Clear description on the webhook use case.

Example:

"Checkout Callback"

endpoint
string
required

Full url of the webhook.

Example:

"https://my-checkout.com/callback"

events
string[]
required

List of events to attach to the webhook.

Response

200
application/json
Successfully created webhook.
success
boolean
default:true

Indicates if the request was successful.

data
object