# Wix

> Manage your Wix site: add and look up CRM contacts, list your Wix Stores products, and review recent eCommerce orders.

App · Website Builders · 5 actions. Web page: https://docs.lodol.com/docs/integrations/wix

## Actions

### Create contact

Add a contact to your site's CRM. Provide at least one of a name, email, or phone number.

**Inputs**

- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number, e.g. +14155550123.
- Company (`company`, text): The contact's company name.
- Job title (`job_title`, text): The contact's job title.

**Outputs**

- `created_date` (text): When the contact was created.
- `first_name` (text): First name.
- `id` (text): The contact's id.
- `last_name` (text): Last name.
- `primary_email` (text): Primary email address.
- `primary_phone` (text): Primary phone number.
- `revision` (number): Revision number, incremented on each update.
- `updated_date` (text): When the contact was last updated.

**Example output**

```json
{
  "created_date": "2024-01-15T10:30:00.000Z",
  "first_name": "Jordan",
  "id": "f2c1a0d4-1111-2222-3333-444455556666",
  "last_name": "Rivera",
  "primary_email": "jordan.rivera@example.com",
  "primary_phone": "+14155550123",
  "revision": 1,
  "updated_date": "2024-01-15T10:30:00.000Z"
}
```

### Get contact

Retrieve a single contact from your site's CRM by its id.

**Inputs**

- Contact ID (`contact_id`, text, required): The id of the contact to retrieve.

**Outputs**

- `created_date` (text): When the contact was created.
- `first_name` (text): First name.
- `id` (text): The contact's id.
- `last_name` (text): Last name.
- `primary_email` (text): Primary email address.
- `primary_phone` (text): Primary phone number.
- `revision` (number): Revision number, incremented on each update.
- `updated_date` (text): When the contact was last updated.

**Example output**

```json
{
  "created_date": "2024-01-15T10:30:00.000Z",
  "first_name": "Jordan",
  "id": "f2c1a0d4-1111-2222-3333-444455556666",
  "last_name": "Rivera",
  "primary_email": "jordan.rivera@example.com",
  "primary_phone": "+14155550123",
  "revision": 1,
  "updated_date": "2024-01-15T10:30:00.000Z"
}
```

### Query contacts

Search your site's contacts, optionally filtering by email address.

**Inputs**

- Email (`email`, text): Only return contacts whose primary email matches this address.
- Limit (`limit`, number): Maximum number of contacts to return. From 1 to 1000. Default: `50`.

**Outputs**

- `contacts` (list): The matching contacts.
- `total` (number): Total number of matching contacts.

**Example output**

```json
{
  "contacts": [
    {
      "created_date": "2024-01-15T10:30:00.000Z",
      "first_name": "Jordan",
      "id": "f2c1a0d4-1111-2222-3333-444455556666",
      "last_name": "Rivera",
      "primary_email": "jordan.rivera@example.com",
      "primary_phone": "+14155550123",
      "revision": 1,
      "updated_date": "2024-01-15T10:30:00.000Z"
    }
  ],
  "total": 1
}
```

### Query products

List products from your site's Wix Stores catalog.

**Inputs**

- Limit (`limit`, number): Maximum number of products to return. From 1 to 100. Default: `100`.

**Outputs**

- `products` (list): The catalog products.
- `total` (number): Total number of products in the catalog.

**Example output**

```json
{
  "products": [
    {
      "currency": "USD",
      "id": "b1a2c3d4-5678-90ab-cdef-1234567890ab",
      "in_stock": true,
      "name": "Classic T-Shirt",
      "price": "$25.00",
      "sku": "TSHIRT-001"
    }
  ],
  "total": 1
}
```

### Search orders

List recent eCommerce orders for your site, newest first.

**Inputs**

- Limit (`limit`, number): Maximum number of orders to return. From 1 to 100. Default: `50`.

**Outputs**

- `orders` (list): The site's orders.

**Example output**

```json
{
  "orders": [
    {
      "buyer_email": "jordan.rivera@example.com",
      "created_date": "2024-01-15T10:30:00.000Z",
      "currency": "USD",
      "fulfillment_status": "NOT_FULFILLED",
      "id": "c0ffee00-0000-0000-0000-000000000001",
      "number": "10001",
      "payment_status": "PAID",
      "status": "APPROVED",
      "total": "$42.00"
    }
  ]
}
```
