A list of all methods in the WebhookEvents
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
list_webhook_events | |
get_webhook_event |
- HTTP Method:
GET
- Endpoint:
/webhook_events
Parameters
Name | Type | Required | Description |
---|---|---|---|
$createdAtGte | string | ❌ | Get events after this created time |
$createdAtLte | string | ❌ | Get events created before this time |
$limit | int | ❌ | Min : 1, Max : 100, default 10 |
$objectId | string | ❌ | Get events history of a specific object like payment/subscription/refund/dispute |
$pageSize | int | ❌ | Page size default is 10 max is 100 |
$pageNumber | int | ❌ | Page number default is 0 |
Return Type
Models\ListWebhookEventsResponse
Example Usage Code Snippet
<?php
use Dodopayments\Client;
$sdk = new Client(accessToken: 'YOUR_TOKEN');
$response = $sdk->webhookEvents->listWebhookEvents(
createdAtGte: "created_at_gte",
createdAtLte: "created_at_lte",
limit: 7,
objectId: "object_id",
pageSize: 123,
pageNumber: 3
);
print_r($response);
- HTTP Method:
GET
- Endpoint:
/webhook_events/{webhook_event_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
$webhookEventId | string | ✅ |
Return Type
Models\WebhookEventLogResponse
Example Usage Code Snippet
<?php
use Dodopayments\Client;
$sdk = new Client(accessToken: 'YOUR_TOKEN');
$response = $sdk->webhookEvents->getWebhookEvent(
webhookEventId: "webhook_event_id"
);
print_r($response);