prepareAccount
Prepare account for sign up. Returns the existing account and/or user if matching datafound for the provided input, otherwise creates a new account and account user.
Arguments
Returns
PrepareAccountResult!Possible Errors
- KT-CT-10303: Mutation not enabled in this environment.
- KT-CT-10316: Input data has invalid format.
- KT-CT-10317: An error occured when trying to prepare the account.
- KT-CT-10322: A user with this email address already exists.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
Allowed Viewers
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 PrepareAccount($input: PrepareAccountInput!) {
prepareAccount(input: $input) {
accountNumber
isNewAccount
isNewUser
userId
userNumber
}
}
Variables
{
"input": PrepareAccountInput
}
Response
{
"data": {
"prepareAccount": {
"accountNumber": "A-3A4C79FF",
"isNewAccount": true,
"isNewUser": true,
"userId": "57004760",
"userNumber": "fight-human-situation-raise-manage"
}
}
}