Creates a new contact.
The info
object must include at least one of the following:
By default, if the call contains an email already in use by another contact,
the new contact won't be created. To override this behavior, set allowDuplicates
to true
.
You can only call this method when authenticated as a Wix app or Wix user identity.
function createContact(
info: ContactInfo,
options: CreateContactOptions,
): Promise<CreateContactResponse>;
Contact info.
Create contact options.
import { contacts } from "@wix/crm";
async function createContact(info, options) {
const response = await contacts.createContact(info, options);
}
There are 3 errors with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.