createEnergyAccount
Create an account for either electricity or dual fuel.
Arguments
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-4910: No product exists with the given input.
- KT-CT-4911: Product not available.
- KT-CT-7899: An internal error occurred.
- KT-ES-4102: Account with multiple properties.
- KT-ES-4111: Supply point already exists.
- KT-ES-4113: ATR not valid for contracting.
- KT-ES-4117: Invalid data.
- KT-ES-4121: Gas tariffs are not available.
- KT-ES-4123: Nif not found.
- KT-ES-4914: The received CUPS is invalid.
- KT-ES-4917: The given supply point is not valid to contract.
- KT-ES-7701: The affiliate client failed to meet the requirements.
- KT-ES-7819: The request to Chipiron to get SIPS data failed.
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.
mutation CreateEnergyAccount($input: CreateEnergyAccountInput) {
createEnergyAccount(input: $input) {
accountNif
accountNumber
electricityAgreementNumber
gasAgreementNumber
referralCreated
token
userId
}
}
Variables
{
"input": CreateEnergyAccountInput
}
Response
{
"data": {
"createEnergyAccount": {
"accountNif": "east-public-why-news-west",
"accountNumber": "A-A0AFC462",
"electricityAgreementNumber": "bar-sing-tax-former-risk",
"gasAgreementNumber": "customer-clearly-base-claim-feel",
"referralCreated": true,
"token": "economy-thought-raise-term-girl",
"userId": "59891221"
}
}
}