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

Extract

List failedPurchase

List failedPurchase

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

Returns a paginated list of failed purchase events. Filter results by date range, user, or notifiable resource.

Example request

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

Parameters

NameTypeRequiredLocationDescription
kindstringNoqueryFilters events by kind subtype.
cursorstringNoqueryPagination cursor returned from a previous response; pass this value 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 by the UUID of the associated notifiable resource (e.g., a course or bundle).
userIduuidNoqueryFilters events to those associated with 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.cursorstringOpaque cursor string to pass as the cursor parameter to retrieve the next page.
pageInfo.totalintegerTotal number of matching events across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
eventsobject[]Array of failed purchase event objects matching the query criteria.