When a new visitor first shares some of their contact information with your site, they're added to your Contact List. Once that happens, their details are available through the Contacts API.
Some examples of how a person can become a contact are:
Learn more about how you can manage your contact list.
With the Contacts APIs, you can:
To use the Contacts API,
import { contacts }
from wix-crm-backend:
It's important to note this point before coding:
If a contact is also a site member or site contributor, the contact cannot be deleted. The related site member or site contributor must first be deleted, and then the contact can also be deleted.
Extended fields: Additional properties that store additional contact information.
A contact's extended field data is available
in the contact object under info.extendedFields
.
Extended field definitions can be created and managed with
the extended field functions such as
findOrCreateExtendedField()
.
There are 2 types of extended fields:
Labels: Tags that help site contributors categorize and organize their contacts.
Labels can be system-defined or user-defined.
You can manage a site's labels with
the label functions such as
findOrCreateLabel()
.
A contact's assigned labels are available
in the contact object under info.labelKeys
.