Extract
List failedPurchase
List failedPurchase
GET
https://example.thoughtindustries.com/incoming/v2/events/failedPurchaseReturns 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
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
kind | string | No | query | Filters events by kind subtype. |
cursor | string | No | query | Pagination cursor returned from a previous response; pass this value 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 by the UUID of the associated notifiable resource (e.g., a course or bundle). |
userId | uuid | No | query | Filters 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
| 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 string to pass as the cursor parameter to retrieve the next page. |
pageInfo.total | integer | Total number of matching events across all pages. |
pageInfo.hasMore | boolean | Indicates whether additional pages of results are available. |
events | object[] | Array of failed purchase event objects matching the query criteria. |