LogoLogo
System Status
2020-09-30
2020-09-30
  • 2020-09-30
  • Charges
  • Checkouts
  • Country specification
  • Customers
  • Events
  • Fees
  • File links
  • Files
  • Fulfillments
  • Invoices
  • Orders
  • Payouts
  • Refunds
  • Returns
  • SKUs
  • Sales summaries
  • Sales transactions
  • Sources
  • Webhooks
Powered by GitBook
On this page

Events

PreviousCustomersNextFees

Last updated 6 months ago

The Events resource enables proactive tracking of significant occurrences within your Digital River account. Integrating with this API allows you to monitor and respond to real-time events such as order updates, payment transactions, or customer actions. This capability will enable you to automate workflows and maintain seamless operations, enhancing your ability to manage eCommerce activities efficiently.

See in the Digital River API documentation for more information.

  • GETReturns a list of events
  • GETGets an event by identifier

Returns a list of events

get

Gets events, extending back 30 days, filtered by the specified path parameter.

Authorizations
Query parameters
createdTimestring · date-timeOptional

A filter on the list based on the createdTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:

  • gt—return values where the createdTime field is after this timestamp
  • gte—return values where the createdTime field is after or equal to this timestamp
  • lt—return values where the createdTime field is before this timestamp
  • lte—return values where the createdTime field is before or equal to this timestamp
endingBeforestringOptional

A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.

startingAfterstringOptional

A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.

limitinteger · min: 1 · max: 100Optional

A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.

typestringOptional

Represents a specific event name, or a group of events using * as a wildcard. The returned list is filtered to include only matching events. You may pass either type or types, but not both.

typesstringOptional

An array containing less than 20 specific event names. The returned list is filtered to include only matching events. You may pass either type or types, but not both.

Responses
200
200 OK. The response contains a data attribute that consists of an array. Each entry in the array is a separate event object.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /events HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "hasMore": true,
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "createdTime": "2025-05-09T05:18:05.574Z",
      "digitalRiverVersion": "2025-05-09",
      "data": {
        "object": {},
        "previousAttributes": {}
      },
      "liveMode": true,
      "type": "charge.succeeded"
    }
  ]
}

Gets an event by identifier

get

Retrieve the details of an event by supplying its unique identifier, which you may have received in a webhook.

Authorizations
Path parameters
idstring · uuidRequired

Event identifer

Responses
200
200 OK. Returns an event object if a valid identifier was provided.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /events/{id} HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdTime": "2025-05-09T05:18:05.574Z",
  "digitalRiverVersion": "2025-05-09",
  "data": {
    "object": {},
    "previousAttributes": {}
  },
  "liveMode": true,
  "type": "charge.succeeded"
}
Events