Events

Learn how to use the Events resource.

The Events resource allows you to:

Return a list of all events

To retrieve the details of all events, send a GET events request.

Request header example
Request header example
GET https://api.digitalriver.com/events
Authorization:[basic {secret key}]
Accept:[application/json]

‌A successful request returns an array of Event objects. The returns are sorted by creation date, with the most recently created event appearing first.

Event object example
Event object example
{
"hasMore": true,
"data":
[
{
"id": "evt_d290f1ee-6c54-4b01-90e6-d701748f0851",
"createdTime": "2018-08-29T09:12:33Z",
"digitalRiverVersion": "2018-04-19",
"data": {
"object": {},
"previousAttributes": {}
},
"liveMode": true,
"request": {
"id": "_43ef187f-634e-4b9f-8dc4-082c352525ee"
}, "type": "charge.succeeded"
}
]
}

Get an event by ID

To retrieve details of an event, you must supply the unique identifier for the event.

Request header example
Request header example
GET https://api.digitalriver.com/events/d290f1ee-6c54-4b01-90e6-d701748f0851
Authorization:[basic {secret key}]
Accept:[application/json]

‌ A successful request returns the Event object:

Event object example
Event object example
{
"id": "evt_d290f1ee-6c54-4b01-90e6-d701748f0851",
"createdTime": "2018-08-29T09:12:33Z",
"digitalRiverVersion": "2018-04-19",
"data": {
"object": {},
"previousAttributes": {}
},
"liveMode": true,
"pendingWebhooks": 0,
"request": {
"id": "_43ef187f-634e-4b9f-8dc4-082c352525ee"
}, "type": "charge.succeeded"
}