We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use to create a new customer account and attach it to the current session.
Returns the newly created account object.
const account = createAccount(client, { email: "[email protected]", password: "thepassword", });
const account = createAccount(client, accountData, requestOptions);
client
accountData
email
first_name
last_name
email_optin
password
requestOptions
sessionToken
The text was updated successfully, but these errors were encountered:
bonofiglio
No branches or pull requests
Use to create a new customer account and attach it to the current session.
Returns the newly created account object.
Example
API
client
: See SwellClient.accountData
(object, required): The account data to be used to create the account.email
(string, required): The customer's email address.first_name
(string, optional): The customer's first name.last_name
(string, optional): The customer's last name.email_optin
(boolean, optional): Whether the customer has opted in to receive marketing emails.password
(string, required): The customer's password.requestOptions
(object, optional): Overwrites the client options for the current request.sessionToken
(string, optional): The token from the session to be used.The text was updated successfully, but these errors were encountered: