initiateProductSwitch
Do a product switch for a user.
Arguments
Instigate a product switch for a specific supply point given a valid product and account number.
Possible Errors
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1507: Agreement product switch date is not within the acceptable range.
- KT-CT-1509: Unable to create agreement.
- KT-CT-1516: Requested product switch is not valid.
- KT-CT-4619: Quote with given code not found.
- KT-CT-4624: Unable to accept the given product code.
- KT-CT-4626: No product selected for the given quote code.
- KT-CT-4627: No products are available for this quote.
- KT-CT-4640: Unable to get market or client params from quoted product.
- KT-CT-4719: No supply point found for identifier provided.
- KT-CT-4924: Unauthorized.
- KT-CT-7899: An internal error occurred.
Allowed Viewers
Required Permissions
Can manage account renewalsCan switch product
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.
mutation InitiateProductSwitch($input: InitiateProductSwitchInput!) {
initiateProductSwitch(input: $input) {
productCode
switchDate
}
}
Variables
{
"input": InitiateProductSwitchInput
}
Response
{
"data": {
"initiateProductSwitch": {
"productCode": "visit-Republican-would-reflect-last",
"switchDate": "2007-11-05"
}
}
}