GET
/
events
/
{event_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

const event = await client.usageEvents.retrieve('event_id');

console.log(event.business_id);
{
  "business_id": "<string>",
  "customer_id": "<string>",
  "event_id": "<string>",
  "event_name": "<string>",
  "metadata": null,
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

event_id
string
required

Unique event identifier (case-sensitive, must match the ID used during ingestion)

Response

200
application/json

Event retrieved successfully

The response is of type object.