import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
// Automatically fetches more pages as needed.
for await (const webhookListResponse of client.webhooks.list()) {
console.log(webhookListResponse.id);
}
{
"data": [
{
"created_at": "<string>",
"description": "<string>",
"disabled": true,
"filter_types": [
"<string>"
],
"id": "<string>",
"metadata": {},
"rate_limit": 1,
"updated_at": "<string>",
"url": "<string>"
}
],
"done": true,
"iterator": "<string>",
"prev_iterator": "<string>"
}
List all webhooks for a business.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
// Automatically fetches more pages as needed.
for await (const webhookListResponse of client.webhooks.list()) {
console.log(webhookListResponse.id);
}
{
"data": [
{
"created_at": "<string>",
"description": "<string>",
"disabled": true,
"filter_types": [
"<string>"
],
"id": "<string>",
"metadata": {},
"rate_limit": 1,
"updated_at": "<string>",
"url": "<string>"
}
],
"done": true,
"iterator": "<string>",
"prev_iterator": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Limit the number of returned items
The iterator returned from a prior invocation
List of endpoints
The response is of type object
.
Was this page helpful?