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
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>"
}