createAccount
Create an account.
If the supplied email and fiscal code match an existing account user, the account is added to their portfolio. Otherwise, a new account and account user are created and linked to a new portfolio.
Arguments
Returns
CreateAccountCreate an account.
If the supplied email and fiscal code match an existing account user, the account is added to their portfolio. Otherwise, a new account and account user are created and linked to a new portfolio.
Possible Errors
Allowed Viewers
Required Permissions
Can create accountsQuery Complexity
6Examples
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 CreateAccount($input: CreateElectricityAccountInput) {
createAccount(input: $input) {
accountNumber
propertyId
token
userId
}
}
Variables
{
"input": CreateElectricityAccountInput
}
Response
{
"data": {
"createAccount": {
"accountNumber": "A-E49A3F1E",
"propertyId": "48715704",
"token": "partner-notice-talk-network-service",
"userId": "88980252"
}
}
}