GET
/
webhooks
/
{id}
NodeJs
const { FedaPay, Webhook } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Show webhook */
const webhook = await Webhook.retrieve( ID, params = {}, headers = {} );
[
  {
    "id": 123,
    "url": "<string>",
    "enabled": true,
    "ssl_verify": true,
    "disable_on_error": true,
    "account_id": 123,
    "http_headers": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Webhook ID

Response

List of webhook

id
integer

Webhook ID.

url
string

URL of the request.

enabled
boolean

Indicates whether the webhook is active.

ssl_verify
boolean

Indicates whether SSL verification is enabled for the webhook.

disable_on_error
boolean

the webhook will be disabled after encountering an error.

account_id
integer

ID of the webhook account

http_headers
boolean

Indicates whether custom HTTP headers are used

created_at
string<date-time>

Date and time of webhook creation

updated_at
string<date-time>

Date and time of last webhook update