Skip to main content

Test Webhook

info

Please be aware that this endpoint requires a Manage Webhooks API Key.

POST /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/webhooks/test

Request Query Parameters

NameDescriptionTypeRequired
webhook_idIf a valid webhook_id is passed, the certain webhook will be tested.
If the webhook_id not passed or empty, all webhooks will be tested.
string

Response

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage

webhook.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
method: 'POST',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
const group_id = '';
const linked_account_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/webhooks/test`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));

Example Success Response

No response body