autoTopupTriggers
Get auto top-up trigger events for an auto topup config. Ordered by triggered_at datetime, latest first.
Arguments
Target auto top-up config ID, e.g. '123'.
Filter by failure reason of the auto top-up trigger event.
Filter by source of the auto top-up trigger event.
Filter by status of the auto top-up trigger event.
Filter by datetime (inclusive) from which trigger events have occurred, e.g. '2024-01-01T00:00:00+00:00'.
Returns
AutoTopupTriggerConnectionTypeConnectionGraphQL output type for querying nodes of auto top-up trigger events.
Using this class instead of AutoTopupTriggerType directly allows for pagination.
Possible Errors
Allowed Viewers
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query AutoTopupTriggers(
$after: String,
$autoTopupConfigId: ID!,
$before: String,
$failureReason: SmartDeviceAutoTopupTriggerFailureReasons,
$first: Int,
$last: Int,
$source: SmartDeviceAutoTopupTriggerSources,
$status: SmartDeviceAutoTopupTriggerStatus,
$triggersFrom: DateTime
) {
autoTopupTriggers(
after: $after,
autoTopupConfigId: $autoTopupConfigId,
before: $before,
failureReason: $failureReason,
first: $first,
last: $last,
source: $source,
status: $status,
triggersFrom: $triggersFrom
) {
edges {
...AutoTopupTriggerConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
}
}
Variables
{
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"autoTopupConfigId": "78253488",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"failureReason": "NO_IMPORT_METER",
"first": 10,
"last": 10,
"source": "LOW_CREDIT_BALANCE",
"status": "INITIATED",
"triggersFrom": "1976-03-20T14:35:27.973230+00:00"
}
Response
{
"data": {
"autoTopupTriggers": {
"edges": [AutoTopupTriggerConnectionTypeEdge],
"pageInfo": PageInfo
}
}
}