Webhook

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

Set a webhook

PUT https://api.8pay.network/v1/:chain/fixed-recurring/plans/:planId/webhook

Path Parameters

NameTypeDescription

planId

string

ID of the plan

chain

string

Headers

NameTypeDescription

Authorization

string

Bearer <api-key>

Request Body

NameTypeDescription

webhook

string

webhook url

{
    "webhook": "http://mywebhook.com/path/file.php"
}

Get a webhook

GET https://api.8pay.network/v1/:chain/fixed-recurring/plans/:planId/webhook

Path Parameters

NameTypeDescription

planId

string

ID of the plan

chain

string

Headers

NameTypeDescription

Authorization

string

Bearer <api-key>

{
    "webhook": "http://mywebhook.com/path/file.php"
}

Delete a webhook

DELETE https://api.8pay.network/v1/:chain/fixed-recurring/plans/:planId/webhook

Path Parameters

NameTypeDescription

planId

string

ID of the plan

chain

string

Headers

NameTypeDescription

Authorization

string

Bearer <api-key>

Last updated