Webhook

A webhook can be set up to receive notifications of events that occur on a plan.

put
Set a webhook

https://api.8pay.network/v1/bsc/fixed-recurring/plans/:planId/webhook
Request
Response
Request
Path Parameters
planId
required
string
ID of the plan
Headers
Authorization
required
string
API key
Body Parameters
webhook
required
string
webhook url
Response
200: OK
{
"webhook": "http://mywebhook.com/path/file.php"
}

get
Get a webhook

https://api.8pay.network/v1/bsc/fixed-recurring/plans/:planId/webhook
Request
Response
Request
Path Parameters
planId
required
string
ID of the plan
Headers
Authorization
required
string
API key
Response
200: OK
{
"webhook": "http://mywebhook.com/path/file.php"
}

delete
Delete a webhook

https://api.8pay.network/v1/bsc/fixed-recurring/plans/:planId/webhook
Request
Response
Request
Path Parameters
planId
required
string
ID of the plan
Headers
Authorization
required
string
API key
Response
204: No Content