Lister tous les webhooks pour une entreprise.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const webhookDetails of client.webhooks.list()) {
console.log(webhookDetails.id);
}{
"data": [
{
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"metadata": {},
"updated_at": "<string>",
"url": "<string>",
"disabled": true,
"filter_types": [
"<string>"
],
"rate_limit": 1
}
],
"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
List of webhoooks
Afficher attributs enfants
Created at timestamp
An example webhook name.
The webhook's ID.
Updated at timestamp
Url endpoint of the webhook
Status of the webhook.
If true, events are not sent
Filter events to the webhook.
Webhook event will only be sent for events in the list.
Configured rate limit
x >= 0true if no more values are to be fetched.
Cursor pointing to the next paginated object
Cursor pointing to the previous paginated object
Cette page vous a-t-elle été utile ?
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const webhookDetails of client.webhooks.list()) {
console.log(webhookDetails.id);
}{
"data": [
{
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"metadata": {},
"updated_at": "<string>",
"url": "<string>",
"disabled": true,
"filter_types": [
"<string>"
],
"rate_limit": 1
}
],
"done": true,
"iterator": "<string>",
"prev_iterator": "<string>"
}