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
kindstringYespathThe event kind to extract, supplied as the final path segment of the URL (coursePurchase for this endpoint).
cursorstringNoqueryOpaque pagination cursor returned by a previous response; pass it to retrieve the next page of results.
startDateintegerNoqueryReturns only events that occurred at or after this time, expressed as a Unix timestamp in milliseconds.
endDateintegerNoqueryReturns only events that occurred at or before this time, expressed as a Unix timestamp in milliseconds.

Example response

{
  "pageInfo": {
    "cursor": "string",
    "hasMore": true
  },
  "events": []
}

Response fields

FieldTypeDescription
pageInfoobjectCursor-based pagination metadata for the event stream.
pageInfo.cursorstringOpaque cursor to pass on the next request to retrieve the following page.
pageInfo.hasMorebooleanWhether additional pages of results are available.
eventsobject[]Array of event objects matching the query parameters.