Skip to main content

Arguments

Returns

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.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can create accounts

Query Complexity

6

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

mutation CreateAccount($input: CreateElectricityAccountInput) { createAccount(input: $input) { accountNumber propertyId token userId } }

Variables

Response

{ "data": { "createAccount": { "accountNumber": "A-E49A3F1E", "propertyId": "48715704", "token": "partner-notice-talk-network-service", "userId": "88980252" } } }