Extract
List coursePurchase
List coursePurchase
GET
https://example.thoughtindustries.com/incoming/v2/events/coursePurchaseReturns 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
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
kind | string | No | query | Filters events by kind, scoping results to a specific event subtype. |
cursor | string | No | query | Opaque pagination cursor returned by a previous response; pass it to retrieve the next page of results. |
startDate | ISO 8601 timestamp | No | query | Returns only events that occurred at or after this ISO 8601 timestamp. |
endDate | ISO 8601 timestamp | No | query | Returns only events that occurred at or before this ISO 8601 timestamp. |
notifiableId | uuid | No | query | Filters events to those associated with the specified course or resource UUID. |
userId | uuid | No | query | Filters 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
| Field | Type | Description |
|---|---|---|
pageInfo | CursorPageInfo | Pagination metadata for the current result set. |
pageInfo.perPage | integer | Number of events returned per page. |
pageInfo.cursor | string | Opaque cursor to pass as the cursor parameter to retrieve the next page. |
pageInfo.total | integer | Total number of events matching the query. |
pageInfo.hasMore | boolean | Indicates whether additional pages of results are available. |
events | object[] | Array of coursePurchase event objects matching the query. |