# ChartMogul

> ChartMogul account, customers, contacts, data sources, tags and metrics.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/chartmogul

## Actions

### Add customer tags

Add customer tags.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.
- Tags (`tags`, list, required): Tags.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "tags": []
  }
}
```

### Create contact

Create contact.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Email (`email`, text): Email.
- Title (`title`, text): Title.
- Phone (`phone`, text): Phone.
- Linked in (`linked_in`, text): Linked in.
- Twitter (`twitter`, text): Twitter.
- Notes (`notes`, text): Notes.
- Data source uuid (`data_source_uuid`, text): Data source uuid.
- External id (`external_id`, text): External id.
- Last seen (`last_seen`, date and time): Last seen.
- Custom (`custom`, list): Custom.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "customer_uuid": "example",
    "email": "example",
    "first_name": "example",
    "last_name": "example",
    "uuid": "example"
  }
}
```

### Create customer

Create customer.

**Inputs**

- Name (`name`, text, required): Name.
- External id (`external_id`, text, required): External id.
- Data source uuid (`data_source_uuid`, text, required): Data source uuid.
- Email (`email`, text): Email.
- Country (`country`, text): Two-letter country code. One of: `AD` (Andorra), `AE` (United Arab Emirates), `AF` (Afghanistan), `AG` (Antigua & Barbuda), `AI` (Anguilla), `AL` (Albania), `AM` (Armenia), `AO` (Angola), `AQ` (Antarctica), `AR` (Argentina), and 240 more.
- State (`state`, text): State.
- City (`city`, text): City.
- Lead created at (`lead_created_at`, date and time): Lead created at.
- Free trial started at (`free_trial_started_at`, date and time): Free trial started at.
- Attributes (`attributes`, object): Attributes.
- Primary contact (`primary_contact`, object): Primary contact.
- Website url (`website_url`, text): Website url.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "attributes": {},
    "city": "example",
    "country": "example",
    "created_at": "example",
    "data_source_uuid": "example",
    "email": "example",
    "external_id": "example",
    "name": "example",
    "state": "example",
    "updated_at": "example",
    "uuid": "example"
  }
}
```

### Create data source

Create data source.

**Inputs**

- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "name": "example",
    "status": "example",
    "system": "example",
    "uuid": "example"
  }
}
```

### Delete contact

Delete contact.

**Inputs**

- Contact uuid (`contact_uuid`, text, required): Contact uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {}
}
```

### Delete customer

Delete customer.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {}
}
```

### Delete data source

Delete data source.

**Inputs**

- Data source uuid (`data_source_uuid`, text, required): Data source uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {}
}
```

### Get account

Get account.

**Inputs**: None.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "currency": "example",
    "name": "example",
    "time_zone": "example"
  }
}
```

### Get contact

Get contact.

**Inputs**

- Contact uuid (`contact_uuid`, text, required): Contact uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "customer_uuid": "example",
    "email": "example",
    "first_name": "example",
    "last_name": "example",
    "uuid": "example"
  }
}
```

### Get customer

Get customer.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "attributes": {},
    "city": "example",
    "country": "example",
    "created_at": "example",
    "data_source_uuid": "example",
    "email": "example",
    "external_id": "example",
    "name": "example",
    "state": "example",
    "updated_at": "example",
    "uuid": "example"
  }
}
```

### Get customer attributes

Get customer attributes.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "custom": {},
    "tags": []
  }
}
```

### Get data source

Get data source.

**Inputs**

- Data source uuid (`data_source_uuid`, text, required): Data source uuid.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "name": "example",
    "status": "example",
    "system": "example",
    "uuid": "example"
  }
}
```

### Get metrics

Get metrics.

**Inputs**

- Start date (`start_date`, date, required): Start date.
- End date (`end_date`, date, required): End date.
- Interval (`interval`, text): Interval. One of: `day`, `week`, `month`, `quarter`.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "entries": [],
    "summary": {}
  }
}
```

### List contacts

List contacts.

**Inputs**

- Per page (`per_page`, number): Per page. From 1 to 200.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "entries": [],
    "has_more": false
  }
}
```

### List customers

List customers.

**Inputs**

- Per page (`per_page`, number): Per page. From 1 to 200.
- Cursor (`cursor`, text): Cursor.
- Email (`email`, text): Email.
- Data source uuid (`data_source_uuid`, text): Data source uuid.
- External id (`external_id`, text): External id.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "entries": [],
    "has_more": false
  }
}
```

### List data sources

List data sources.

**Inputs**

- Name (`name`, text): Name.
- System (`system`, text): System.
- With auto churn subscription setting (`with_auto_churn_subscription_setting`, true/false): With auto churn subscription setting.
- With invoice handling setting (`with_invoice_handling_setting`, true/false): With invoice handling setting.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "data_sources": []
  }
}
```

### Remove customer tags

Remove customer tags.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.
- Tags (`tags`, list, required): Tags.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "tags": []
  }
}
```

### Set customer attributes

Set customer attributes.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.
- Custom (`custom`, list, required): Custom.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {}
}
```

### Update contact

Update contact.

**Inputs**

- Contact uuid (`contact_uuid`, text, required): Contact uuid.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Email (`email`, text): Email.
- Title (`title`, text): Title.
- Phone (`phone`, text): Phone.
- Linked in (`linked_in`, text): Linked in.
- Twitter (`twitter`, text): Twitter.
- Notes (`notes`, text): Notes.
- Data source uuid (`data_source_uuid`, text): Data source uuid.
- External id (`external_id`, text): External id.
- Last seen (`last_seen`, date and time): Last seen.
- Custom (`custom`, list): Custom.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "customer_uuid": "example",
    "email": "example",
    "first_name": "example",
    "last_name": "example",
    "uuid": "example"
  }
}
```

### Update customer

Update customer.

**Inputs**

- Customer uuid (`customer_uuid`, text, required): Customer uuid.
- Name (`name`, text): Name.
- Email (`email`, text): Email.
- Country (`country`, text): Two-letter country code. One of: `AD` (Andorra), `AE` (United Arab Emirates), `AF` (Afghanistan), `AG` (Antigua & Barbuda), `AI` (Anguilla), `AL` (Albania), `AM` (Armenia), `AO` (Angola), `AQ` (Antarctica), `AR` (Argentina), and 240 more.
- State (`state`, text): State.
- City (`city`, text): City.
- Lead created at (`lead_created_at`, date and time): Lead created at.
- Free trial started at (`free_trial_started_at`, date and time): Free trial started at.
- Attributes (`attributes`, object): Attributes.
- Primary contact (`primary_contact`, object): Primary contact.
- Website url (`website_url`, text): Website url.

**Outputs**

- `data` (object): Api result.

**Example output**

```json
{
  "data": {
    "attributes": {},
    "city": "example",
    "country": "example",
    "created_at": "example",
    "data_source_uuid": "example",
    "email": "example",
    "external_id": "example",
    "name": "example",
    "state": "example",
    "updated_at": "example",
    "uuid": "example"
  }
}
```
