Skip to main content
https://.thoughtindustries.com

Extract

List bundlePurchase

List bundlePurchase

GEThttps://example.thoughtindustries.com/incoming/v2/events/bundlePurchase

Retrieves a paginated list of bundlePurchase events. Each event is emitted when a learner purchases a bundle. Filter results by date range, user, or the purchased bundle.

Example request

curl "https://example.thoughtindustries.com/incoming/v2/events/bundlePurchase" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
kindstringNoqueryFilters events by kind subtype.
cursorstringNoqueryOpaque cursor string returned by a previous response; pass it to fetch the next page of results.
startDateISO 8601 timestampNoqueryReturns only events that occurred on or after this ISO 8601 timestamp.
endDateISO 8601 timestampNoqueryReturns only events that occurred on or before this ISO 8601 timestamp.
notifiableIduuidNoqueryFilters events to those associated with the specified bundle UUID.
userIduuidNoqueryFilters events to those generated by the specified user UUID.

Example response

{
  "data": {
    "APIEvents": {
      "pageInfo": {
        "perPage": 0,
        "cursor": "string",
        "total": 0,
        "hasMore": true
      },
      "events": [
        {}
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.perPageintegerNumber of events returned per page.
pageInfo.cursorstringCursor value to pass in the next request to retrieve the following page.
pageInfo.totalintegerTotal number of events matching the query.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
eventsobject[]Array of bundlePurchase event objects matching the query.