import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const webhookEvent = await client.webhookEvents.retrieve('webhook_event_id');
console.log(webhookEvent.business_id);
{
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"event_id": "<string>",
"event_type": "<string>",
"latest_attempted_at": "2023-11-07T05:31:56Z",
"object_id": "<string>",
"request": "<string>",
"response": "<string>"
}
Get detailed information about a specific webhook event.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const webhookEvent = await client.webhookEvents.retrieve('webhook_event_id');
console.log(webhookEvent.business_id);
{
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"event_id": "<string>",
"event_type": "<string>",
"latest_attempted_at": "2023-11-07T05:31:56Z",
"object_id": "<string>",
"request": "<string>",
"response": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.