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/on-demand/plans/:planId/webhook

Path Parameters

Name
Type
Description

planId

string

ID of the plan

chain

string

Headers

Name
Type
Description

Authorization

string

Bearer <api-key>

Request Body

Name
Type
Description

webhook

string

webhook url

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

Get a webhook

GET https://api.8pay.network/v1/:chain/on-demand/plans/:planId/webhook

Path Parameters

Name
Type
Description

planId

string

ID of the plan

chain

string

Headers

Name
Type
Description

Authorization

string

Bearer <api-key>

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

Delete a webhook

DELETE https://api.8pay.network/v1/:chain/on-demand/plans/:planId/webhook

Path Parameters

Name
Type
Description

planId

string

ID of the plan

chain

string

Headers

Name
Type
Description

Authorization

string

Bearer <api-key>

Last updated