activeProductSwitchOffers
Get the offers sent to the account for a product switch that can still be accepted, newest first. Each one can be accepted with initiateProductSwitch, using its offer identifier and switch date. An empty list means there are none. Offers that were not sent to the customer are not included. This is a best-effort list: initiateProductSwitch still validates the switch and may reject an offer returned here.
Arguments
Returns
ActiveProductSwitchOfferConnectionTypeConnectionPaginator of Offers sent for a product switch that can still be accepted.
Examples
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 ActiveProductSwitchOffers(
$accountNumber: String!,
$after: String,
$before: String,
$first: Int,
$last: Int
) {
activeProductSwitchOffers(
accountNumber: $accountNumber,
after: $after,
before: $before,
first: $first,
last: $last
) {
edgeCount
edges {
...ActiveProductSwitchOfferConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-CAE0E766",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10
}
Response
{
"data": {
"activeProductSwitchOffers": {
"edgeCount": 95,
"edges": [ActiveProductSwitchOfferConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 75
}
}
}