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

Extract

List coursePurchase

List coursePurchase

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

Returns a paginated list of coursePurchase events, each emitted when a learner purchases a course. Filter results by date range, user, or notifiable resource.

Example request

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

Parameters

NameTypeRequiredLocationDescription
kindstringNoqueryFilters events by kind, scoping results to a specific event subtype.
cursorstringNoqueryOpaque pagination cursor returned by a previous response; pass it to retrieve the next page of results.
startDateISO 8601 timestampNoqueryReturns only events that occurred at or after this ISO 8601 timestamp.
endDateISO 8601 timestampNoqueryReturns only events that occurred at or before this ISO 8601 timestamp.
notifiableIduuidNoqueryFilters events to those associated with the specified course or resource UUID.
userIduuidNoqueryFilters events to those generated by the specified learner 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.cursorstringOpaque cursor to pass as the cursor parameter to retrieve the next page.
pageInfo.totalintegerTotal number of events matching the query.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
eventsobject[]Array of coursePurchase event objects matching the query.