Customer Resource
Customer Resource
This resource is used to interact with the customer functionality.
Methods
CreateAccount
Creates a customer account
Arguments
accountData
object
(required)
Argument example
{
email: "john_doe@email.com",
password: "123456",
firstName: "John",
lastName: "Doe",
acceptsMarketing: true,
}
Examples
__nylaResources.customer.createAccount({
email: 'john_doe@email.com',
password: '123456',
firstName: 'John',
lastName: 'Doe',
acceptsMarketing: true,
})