---
canonical_url: "https://docs.composio.dev/toolkits/elead"
markdown_url: "https://docs.composio.dev/toolkits/elead.md"
product: "platform"
version: null
last_updated: null
---

# Elead

eLead provides dealership CRM access to customers, opportunities, sales activities, leads, vehicles, employees, and reference data through Fortellis.

- **Category:** sales & crm
- **Auth:** S2S_OAUTH2
- **Composio-managed OAuth available?** No
- **Tools:** 53
- **Triggers:** 0
- **Slug:** `ELEAD`
- **Version:** 00000000_00

## Tools

### Add Opportunity Comment

**Slug:** `ELEAD_ADD_OPPORTUNITY_COMMENT`

Add a comment to an eLead sales opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Add-comment request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Opportunity Salesperson

**Slug:** `ELEAD_ADD_OPPORTUNITY_SALESPERSON`

Add a salesperson to an eLead opportunity, with their position and primary-assignment settings.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The add opportunity salesperson request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Opportunity Trade In

**Slug:** `ELEAD_ADD_OPPORTUNITY_TRADE_IN`

Add a trade-in vehicle to an eLead sales opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Add-trade-in request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Opportunity Vehicle Sought

**Slug:** `ELEAD_ADD_OPPORTUNITY_VEHICLE_SOUGHT`

Add a sought vehicle to an eLead sales opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Add-sought-vehicle request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Complete Inbound Call Activity

**Slug:** `ELEAD_COMPLETE_INBOUND_CALL_ACTIVITY`

Attach inbound-call data to a scheduled activity and mark it complete.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Inbound-call activity using the official Fortellis request schema. |
| `activity_id` | string | Yes | eLead activity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Complete Opportunity Sales Step

**Slug:** `ELEAD_COMPLETE_OPPORTUNITY_SALES_STEP`

Complete a sales step for an opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The complete opportunity sales step request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Complete Outbound Call Activity

**Slug:** `ELEAD_COMPLETE_OUTBOUND_CALL_ACTIVITY`

Attach outbound-call data to a scheduled activity and mark it complete.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Outbound-call activity using the official Fortellis request schema. |
| `activity_id` | string | Yes | eLead activity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Completed Activity

**Slug:** `ELEAD_CREATE_COMPLETED_ACTIVITY`

Create a new completed activity for an existing opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Completed activity using the official Fortellis request schema. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Customer

**Slug:** `ELEAD_CREATE_CUSTOMER`

Create an Elead prospect or customer.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Official customer fields for the new customer. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Opportunity

**Slug:** `ELEAD_CREATE_OPPORTUNITY`

Create a new eLead sales opportunity for an existing customer.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Create-opportunity request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Sales Lead

**Slug:** `ELEAD_CREATE_SALES_LEAD`

Create a sales lead and its associated customer, opportunity, and activity records from a prospect payload.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The lead/prospect model to create. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Opportunity Trade In

**Slug:** `ELEAD_DELETE_OPPORTUNITY_TRADE_IN`

Permanently remove a trade-in vehicle record from an eLead opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `trade_in_id` | string | Yes | Elead trade-in vehicle unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Opportunity Vehicle Sought

**Slug:** `ELEAD_DELETE_OPPORTUNITY_VEHICLE_SOUGHT`

Permanently remove a sought-vehicle record from an opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `vehicle_sought_id` | string | Yes | The Elead vehicle sought unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Activity

**Slug:** `ELEAD_GET_ACTIVITY`

Retrieve an activity's assignment, timing, outcome, associated opportunity, and message by activity ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `activity_id` | string | Yes | eLead activity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Customer

**Slug:** `ELEAD_GET_CUSTOMER`

Retrieve a prospect or customer record by Elead customer UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `customer_id` | string | Yes | Elead customer UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Customer Owned Vehicle

**Slug:** `ELEAD_GET_CUSTOMER_OWNED_VEHICLE`

Retrieve the owned-vehicle record for an eLead customer UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `customer_id` | string | Yes | Elead customer UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Opportunity

**Slug:** `ELEAD_GET_OPPORTUNITY`

Retrieve an opportunity's customer, status, vehicles, trade-ins, and sales team by opportunity ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Activity History

**Slug:** `ELEAD_LIST_ACTIVITY_HISTORY`

Get activity history by customer, opportunity, or user ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to_date` | string | No | End of a date range of at most 31 days, filtering completed date or open-activity due date. |
| `outcomes` | array | No | Activity outcomes to include; values are sent as repeated query parameters. |
| `from_date` | string | No | Start of a date range of at most 31 days, filtering completed date or open-activity due date. |
| `subject_id` | string | Yes | Customer, opportunity, or user identifier selected by subject_type. |
| `subject_type` | string ("customer" | "opportunity" | "user") | Yes | Type of subject whose activity history to list. |
| `activity_types` | array | No | Activity types to include; values are sent as repeated query parameters. |
| `open_activities_only` | boolean | No | Whether to include only open activities. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Activity Outcomes

**Slug:** `ELEAD_LIST_ACTIVITY_OUTCOMES`

List the available outcomes for a specified eLead activity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `activity_id` | string | Yes | eLead activity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Activity Types

**Slug:** `ELEAD_LIST_ACTIVITY_TYPES`

List valid activity type IDs and names for scheduling or creating activities.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Company Emails

**Slug:** `ELEAD_LIST_COMPANY_EMAILS`

List email addresses the connected eLead company can use as From addresses.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Company Employees

**Slug:** `ELEAD_LIST_COMPANY_EMPLOYEES`

List employees in the connected eLead company for the specified position name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `position_name` | string | Yes | The position name. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Company Positions

**Slug:** `ELEAD_LIST_COMPANY_POSITIONS`

List positions for the connected eLead company.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Company Sales Steps

**Slug:** `ELEAD_LIST_COMPANY_SALES_STEPS`

List sales steps for the connected eLead company.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Completed Opportunity Sales Steps

**Slug:** `ELEAD_LIST_COMPLETED_OPPORTUNITY_SALES_STEPS`

Get completed sales steps for an opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Customer Opportunities

**Slug:** `ELEAD_LIST_CUSTOMER_OPPORTUNITIES`

Return one page of eLead sales opportunities belonging to a customer.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Initial page number. |
| `cursor` | string | No | Continuation cursor returned by a previous call. |
| `page_size` | integer | No | Number of results per page. |
| `customer_id` | string | Yes | Elead customer unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Employee Emails

**Slug:** `ELEAD_LIST_EMPLOYEE_EMAILS`

Gets the "from" email addresses for the specified employee.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `employee_id` | string | Yes | Employee identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Employee Phones

**Slug:** `ELEAD_LIST_EMPLOYEE_PHONES`

Gets the phone numbers for the specified employee.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `employee_id` | string | Yes | Employee identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Employee Telephony Ids

**Slug:** `ELEAD_LIST_EMPLOYEE_TELEPHONY_IDS`

Gets the telephony identifiers for the specified employee.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `employee_id` | string | Yes | Employee identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Opportunity Changes

**Slug:** `ELEAD_LIST_OPPORTUNITY_CHANGES`

Return one page of general or substatus eLead opportunity changes since an optional date and time within past 7 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Initial page number. |
| `cursor` | string | No | Continuation cursor returned by a previous call. |
| `date_from` | string | No | ISO 8601 date and time from which to list changes; it must be within past 7 days. |
| `page_size` | integer | No | Number of results per page. |
| `change_type` | string ("opportunity" | "sub_status") | Yes | Type of opportunity change to list: general opportunity changes or substatus changes. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Opportunity Sources

**Slug:** `ELEAD_LIST_OPPORTUNITY_SOURCES`

List opportunity sources for the connected eLead company, optionally filtered by opportunity up type.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `up_type` | array | No | The opportunity source up type. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Opportunity Statuses

**Slug:** `ELEAD_LIST_OPPORTUNITY_STATUSES`

List opportunity statuses and substatuses for the connected eLead company.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Opportunity Sub Sources

**Slug:** `ELEAD_LIST_OPPORTUNITY_SUB_SOURCES`

Retrieves the opportunity subsources for the specified source and up types.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `up_type` | array | Yes | The opportunity source up types. |
| `source_name` | string | Yes | The source name. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sales Lead Changes

**Slug:** `ELEAD_LIST_SALES_LEAD_CHANGES`

Query one page of sales leads changed since a UTC date and time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | Yes | The initial page number. |
| `since` | string | Yes | UTC date and time from which to search. It must be within the past seven days and cannot be in the future. |
| `cursor` | string | No | Continuation cursor returned by a previous call. |
| `lead_type` | array | No | One to five unique sales-lead types to include. |
| `page_size` | integer | Yes | The page size (minimum 100). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vehicle Classes

**Slug:** `ELEAD_LIST_VEHICLE_CLASSES`

Gets the available vehicle class types.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vehicle Makes

**Slug:** `ELEAD_LIST_VEHICLE_MAKES`

Gets the available vehicle makes by year and vehicle class (optional).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `year` | integer | Yes | The vehicle year. |
| `class` | string | No | The vehicle class. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vehicle Models

**Slug:** `ELEAD_LIST_VEHICLE_MODELS`

Gets the available vehicle models by year and make.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `make` | string | Yes | The vehicle make. |
| `year` | integer | Yes | The vehicle year. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vehicle Trims

**Slug:** `ELEAD_LIST_VEHICLE_TRIMS`

Gets the available vehicle trims by year, make, and model.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `make` | string | Yes | The vehicle make. |
| `year` | integer | Yes | The vehicle year. |
| `model` | string | Yes | The vehicle model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Vehicle Years

**Slug:** `ELEAD_LIST_VEHICLE_YEARS`

List available vehicle years for vehicle-reference-data lookups.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Reassign Primary Bdc Agent

**Slug:** `ELEAD_REASSIGN_PRIMARY_BDC_AGENT`

Reassign the primary bdc agent for the specified opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The reassign opportunity primary BDC agent request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Reassign Primary Salesperson

**Slug:** `ELEAD_REASSIGN_PRIMARY_SALESPERSON`

Reassign an opportunity's primary salesperson; scheduled activities are also reassigned by default unless disabled.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The reassign opportunity primary salesperson request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Remove Opportunity Salesperson

**Slug:** `ELEAD_REMOVE_OPPORTUNITY_SALESPERSON`

Remove a salesperson's position assignment from an eLead opportunity without deleting the salesperson.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The remove opportunity salesperson request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Schedule Activity

**Slug:** `ELEAD_SCHEDULE_ACTIVITY`

Create a new scheduled activity for an existing opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Scheduled activity using the official Fortellis request schema. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Activity History

**Slug:** `ELEAD_SEARCH_ACTIVITY_HISTORY`

Query activity history by sales customer and opportunity identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `customer_id` | string | Yes | Elead customer unique identifier. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Customers

**Slug:** `ELEAD_SEARCH_CUSTOMERS`

Search Elead customers and return one result page with a continuation cursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Initial result page number. |
| `cursor` | string | No | Opaque cursor returned by a prior search call; omit for the initial page. |
| `request` | object | Yes | Official customer search criteria. |
| `page_size` | integer | No | Number of customer results per page. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Opportunities

**Slug:** `ELEAD_SEARCH_OPPORTUNITIES`

Search eLead sales opportunities by date range and optional sales attributes, returning one page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Initial page number. |
| `cursor` | string | No | Continuation cursor returned by a previous call. |
| `source` | string | No | Opportunity source to filter by. |
| `date_to` | string | No | End of the ISO 8601 date range; the range defaults to last 30 minutes if unspecified. |
| `up_type` | string ("Unknown" | "Campaign" | "Internet" | "Phone" | "Showroom") | No | Opportunity up type to filter by. |
| `date_from` | string | No | Beginning of the ISO 8601 date range; the range defaults to last 30 minutes if unspecified. |
| `page_size` | integer | No | Number of results per page. |
| `sub_source` | string | No | Opportunity subsource to filter by. |
| `sub_status` | string | No | Opportunity substatus to filter by. |
| `salesperson_id` | string | No | Salesperson UUID to filter by. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Send Activity Email

**Slug:** `ELEAD_SEND_ACTIVITY_EMAIL`

Send an email for a scheduled activity and mark that activity complete.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Activity email using the official Fortellis request schema. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Send Opportunity Email

**Slug:** `ELEAD_SEND_OPPORTUNITY_EMAIL`

Send an email for an eLead opportunity and create the corresponding CRM activity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Send-email request model. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Set Opportunity Inactive

**Slug:** `ELEAD_SET_OPPORTUNITY_INACTIVE`

Set an opportunity inactive with an inactive sub-status and optional follow-up details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The set opportunity inactive request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Undo Opportunity Sales Step

**Slug:** `ELEAD_UNDO_OPPORTUNITY_SALES_STEP`

Mark a sales step incomplete for an opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The undo opportunity sales step request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Activity

**Slug:** `ELEAD_UPDATE_ACTIVITY`

Update an activity using its identifier and the supplied activity model. The activity must be Open. A valid nextActivity.outcomeId completes it and may create the next task.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Activity update using the official Fortellis request schema. |
| `activity_id` | string | Yes | eLead activity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Customer

**Slug:** `ELEAD_UPDATE_CUSTOMER`

Update prospect or customer information by Elead customer UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | Official customer fields to update. |
| `customer_id` | string | Yes | Elead customer UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Opportunity Sub Status

**Slug:** `ELEAD_UPDATE_OPPORTUNITY_SUB_STATUS`

Set the substatus of an existing eLead sales opportunity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request` | object | Yes | The update opportunity sub status request model. |
| `opportunity_id` | string | Yes | Elead opportunity unique identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
