customerFlexibilityCampaignEvents
Retrieve Customer Flexibility Campaign Events by the Campaign slug, with customer enrollment info.
Arguments
The account number to check event enrollment for.
The slug of the campaign to which the event belongs.
The supply point identifier to check event enrollment for.
Possible Errors
Allowed Viewers
Query Complexity
3Examples
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 CustomerFlexibilityCampaignEvents(
$accountNumber: String!,
$after: String,
$before: String,
$campaignSlug: String!,
$first: Int,
$last: Int,
$supplyPointIdentifier: String!
) {
customerFlexibilityCampaignEvents(
accountNumber: $accountNumber,
after: $after,
before: $before,
campaignSlug: $campaignSlug,
first: $first,
last: $last,
supplyPointIdentifier: $supplyPointIdentifier
) {
edgeCount
edges {
...CFCampaignEventConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-1BBBB9D8",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"campaignSlug": "charge-strategy-machine-level-animal",
"first": 10,
"last": 10,
"supplyPointIdentifier": "78488746"
}
Response
{
"data": {
"customerFlexibilityCampaignEvents": {
"edgeCount": 13,
"edges": [CFCampaignEventConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 96
}
}
}