# MB Suite

> Manage deals, people and companies in MB Suite's CRM and keep them in step with your other tools.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/mb-suite

## Actions

### Create company

Add a company, or get the existing one with the same name.

**Inputs**

- Name (`name`, text, required): The company's name.
- Domain (`domain`, text): Its web domain, such as acme.com.
- Industry (`industry`, text): Its industry, in words.
- Size (`size`, text): How many people work there. One of: `solo` (Just one person), `2-10` (2 to 10), `11-50` (11 to 50), `51-200` (51 to 200), `201-1000` (201 to 1,000), `1000+` (More than 1,000).
- Website (`website`, text): Its website address.
- LinkedIn page (`linked_in`, text): Its LinkedIn page address.
- Country (`country`, text): Its two-letter country code, such as US. Phones without a country code are read with it.
- Phone (`phone`, text): Its main phone, with the country code.
- Email (`email`, text): Its main email address.
- Owner ID (`owner_id`, text): The user ID of the team member who owns it. Leave empty to leave it unowned.
- Label IDs (`label_ids`, list): Company label IDs to add.
- Reuse by domain (`dedupe_by_domain`, true/false): Reuse a company with the same domain instead of adding another one.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "company_id": "cmp_acme",
    "created": true,
    "matched_by": "name"
  }
}
```

### Create deal

Add a deal to a stage of a pipeline.

**Inputs**

- Title (`title`, text, required): The deal's name, as the board shows it.
- Pipeline (`pipeline_id`, text, required): The pipeline to add it to.
- Stage ID (`stage_id`, text, required): A stage of that pipeline, from Get pipeline.
- Value (`value`, number): The deal amount. 0 if left empty. At least 0.
- Currency (`currency`, text): A three-letter currency code, such as USD. The pipeline's currency if left empty.
- Owner ID (`owner_id`, text): The user ID of the team member who owns it. You if left empty.
- Company ID (`company_id`, text): The company, from List companies.
- Main contact ID (`primary_person_id`, text): The deal's main contact, from List people.
- People IDs (`person_ids`, list): The IDs of the people on the deal.
- Probability (`probability`, number): Win probability from 0 to 100. The stage's if left empty. From 0 to 100.
- Expected close date (`expected_close_date`, date): When you expect to close it.
- Label IDs (`label_ids`, list): Deal label IDs to add.
- Source (`source_channel`, text): Where the deal came from, such as web or manual.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "deal_id": "deal_8f2k1"
  }
}
```

### Create person

Add a person, or get the existing one with the same email.

**Inputs**

- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their main email address.
- Phone (`phone`, text): Their main phone, with the country code, such as +1 415 555 0100.
- Job title (`job_title`, text): Their job title.
- Company ID (`company_id`, text): The company they work for, from List companies. It becomes their main company.
- Country (`country`, text): Their two-letter country code, such as US. Phones without a country code are read with it.
- LinkedIn profile (`linked_in_url`, text): Their LinkedIn profile address.
- Website (`website`, text): Their personal website address.
- Owner ID (`owner_id`, text): The user ID of the team member who owns them.
- Label IDs (`label_ids`, list): Person label IDs to add.
- Do not contact (`do_not_contact`, true/false): Mark them Do not contact from the start.
- Skip automations (`skip_automations`, true/false): Don't start the sequences that begin when a contact is added.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "created": true,
    "matched_by": "email",
    "person_id": "per_juan"
  }
}
```

### Delete company

Delete a company. It stays in the trash for 30 days.

**Inputs**

- Company ID (`company_id`, text, required): The company's ID, from List companies.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "ok": true,
    "trash_expires_at": 1767182400000,
    "trash_item_id": "trash_123"
  }
}
```

### Delete deal

Delete a deal. It stays in the trash for 30 days.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "ok": true,
    "trash_expires_at": 1767182400000,
    "trash_item_id": "trash_123"
  }
}
```

### Delete person

Delete a person. They stay in the trash for 30 days.

**Inputs**

- Person ID (`person_id`, text, required): The person's ID, from List people or Find person.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "ok": true,
    "trash_expires_at": 1767182400000,
    "trash_item_id": "trash_123"
  }
}
```

### Find person

Find the person with an email address or phone number.

**Inputs**

- Email (`email`, text): An email address to look for.
- Phone (`phone`, text): A phone number to look for, with its country code.
- Country (`country`, text): A two-letter country code, to read a phone written without its country code.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "matches": [
      {
        "id": "per_juan",
        "matched_by": "email"
      }
    ],
    "person": {
      "company_ids": [
        "cmp_acme"
      ],
      "company_name": "Acme",
      "country": "AR",
      "created_at": 1764500000000,
      "do_not_contact": false,
      "email": "juan@acme.com",
      "emails": [
        "juan@acme.com"
      ],
      "first_name": "Juan",
      "full_name": "Juan Perez",
      "id": "per_juan",
      "is_archived": false,
      "job_title": "Head of Marketing",
      "label_ids": [
        "lbl_vip"
      ],
      "last_activity_at": 1764590000000,
      "last_name": "Perez",
      "linked_in_url": "https://www.linkedin.com/in/juanperez",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "phone": "+5491140000002",
      "phones": [
        "+5491140000002"
      ],
      "primary_company_id": "cmp_acme",
      "source_channel": "web",
      "updated_at": 1764590000000,
      "website": "https://juanperez.com"
    }
  }
}
```

### Get company

Get one company with its contact details and deal totals.

**Inputs**

- Company ID (`company_id`, text, required): The company's ID, from List companies.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "country": "AR",
    "created_at": 1764500000000,
    "domain": "acme.com",
    "email": "hello@acme.com",
    "id": "cmp_acme",
    "industry": "Software",
    "is_archived": false,
    "label_ids": [
      "lbl_key"
    ],
    "linked_in": "https://www.linkedin.com/company/acme",
    "name": "Acme",
    "open_deal_count": 1,
    "owner_id": "usr_ana",
    "owner_name": "Ana Ruiz",
    "person_count": 3,
    "phone": "+541140000000",
    "size": "11-50",
    "total_won_currency": "USD",
    "total_won_value": 9600,
    "updated_at": 1764590000000,
    "website": "https://acme.com",
    "won_deal_count": 2
  }
}
```

### Get deal

Get one deal with its stage, value, contacts and latest activity.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "action_state": "waiting_them",
    "company_id": "cmp_acme",
    "company_name": "Acme",
    "created_at": 1764500000000,
    "currency": "USD",
    "expected_close_date": 1767225600000,
    "id": "deal_8f2k1",
    "is_archived": false,
    "label_ids": [
      "lbl_hot"
    ],
    "last_activity_at": 1764590000000,
    "lost_at": 1767225600000,
    "lost_reason_id": "lr_price",
    "lost_reason_note": "Chose a cheaper option",
    "owner_id": "usr_ana",
    "owner_name": "Ana Ruiz",
    "person_ids": [
      "per_juan"
    ],
    "pipeline_id": "pip_sales",
    "primary_person_email": "juan@acme.com",
    "primary_person_id": "per_juan",
    "primary_person_name": "Juan Perez",
    "primary_person_phone": "+5491140000002",
    "probability": 40,
    "source_channel": "web",
    "stage_id": "stg_proposal",
    "status": "open",
    "title": "Annual plan - Acme",
    "updated_at": 1764590000000,
    "value": 4800,
    "won_at": 1767225600000
  }
}
```

### Get my account

Get who the API key acts as, its organization, its permissions and today's usage.

**Inputs**: None.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "actor": {
      "uid": "usr_ana"
    },
    "api_version": "2026-11-01",
    "limits": {},
    "operations": [
      {
        "group_count": 50,
        "module": "crm",
        "name": "CRM",
        "operation_count": 334
      }
    ],
    "org": {
      "id": "org_123",
      "name": "Acme Agency"
    }
  }
}
```

### Get person

Get one person with their emails, phones, companies and whether they can be contacted.

**Inputs**

- Person ID (`person_id`, text, required): The person's ID, from List people or Find person.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "company_ids": [
      "cmp_acme"
    ],
    "company_name": "Acme",
    "country": "AR",
    "created_at": 1764500000000,
    "do_not_contact": false,
    "email": "juan@acme.com",
    "emails": [
      "juan@acme.com"
    ],
    "first_name": "Juan",
    "full_name": "Juan Perez",
    "id": "per_juan",
    "is_archived": false,
    "job_title": "Head of Marketing",
    "label_ids": [
      "lbl_vip"
    ],
    "last_activity_at": 1764590000000,
    "last_name": "Perez",
    "linked_in_url": "https://www.linkedin.com/in/juanperez",
    "owner_id": "usr_ana",
    "owner_name": "Ana Ruiz",
    "phone": "+5491140000002",
    "phones": [
      "+5491140000002"
    ],
    "primary_company_id": "cmp_acme",
    "source_channel": "web",
    "updated_at": 1764590000000,
    "website": "https://juanperez.com"
  }
}
```

### Get pipeline

Get one pipeline with its stages and lost reasons.

**Inputs**

- Pipeline (`pipeline_id`, text, required): The pipeline to get.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "currency": "USD",
    "description": "New business",
    "id": "pip_sales",
    "is_archived": false,
    "is_default": true,
    "lost_reasons": [
      {
        "id": "lr_price",
        "name": "Price"
      }
    ],
    "name": "Sales",
    "require_lost_reason": false,
    "stages": [
      {
        "id": "stg_new",
        "name": "New",
        "probability": 10
      }
    ]
  }
}
```

### List companies

List companies, most recently changed first.

**Inputs**

- Domain (`domain`, text): Only companies with this web domain, such as acme.com.
- Changed since (`updated_since`, date and time): Only companies created or changed at or after this time, newest change first.
- Include archived (`include_archived`, true/false): Also return archived records.
- Page size (`limit`, number): How many to return, from 1 to 200. From 1 to 200.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "country": "AR",
        "created_at": 1764500000000,
        "domain": "acme.com",
        "email": "hello@acme.com",
        "id": "cmp_acme",
        "industry": "Software",
        "is_archived": false,
        "label_ids": [
          "lbl_key"
        ],
        "linked_in": "https://www.linkedin.com/company/acme",
        "name": "Acme",
        "open_deal_count": 1,
        "owner_id": "usr_ana",
        "owner_name": "Ana Ruiz",
        "person_count": 3,
        "phone": "+541140000000",
        "size": "11-50",
        "total_won_currency": "USD",
        "total_won_value": 9600,
        "updated_at": 1764590000000,
        "website": "https://acme.com",
        "won_deal_count": 2
      }
    ],
    "has_more": false,
    "next_cursor": "c_2"
  }
}
```

### List deals

List deals, filtered by pipeline, status, owner, person or company.

**Inputs**

- Pipeline (`pipeline_id`, text): Only deals in this pipeline.
- Status (`status`, text): Which deals to list. Open if left empty. One of: `open`, `won`, `lost`, `all`.
- Owner ID (`owner_id`, text): Only deals of this owner's user ID.
- Person ID (`person_id`, text): Only deals of this person.
- Company ID (`company_id`, text): Only deals of this company.
- Changed since (`updated_since`, date and time): Only deals created or changed at or after this time, newest change first.
- Include archived (`include_archived`, true/false): Also return archived records.
- Page size (`limit`, number): How many to return, from 1 to 200. From 1 to 200.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "action_state": "waiting_them",
        "company_id": "cmp_acme",
        "company_name": "Acme",
        "created_at": 1764500000000,
        "currency": "USD",
        "expected_close_date": 1767225600000,
        "id": "deal_8f2k1",
        "is_archived": false,
        "label_ids": [
          "lbl_hot"
        ],
        "last_activity_at": 1764590000000,
        "lost_at": 1767225600000,
        "lost_reason_id": "lr_price",
        "lost_reason_note": "Chose a cheaper option",
        "owner_id": "usr_ana",
        "owner_name": "Ana Ruiz",
        "person_ids": [
          "per_juan"
        ],
        "pipeline_id": "pip_sales",
        "primary_person_email": "juan@acme.com",
        "primary_person_id": "per_juan",
        "primary_person_name": "Juan Perez",
        "primary_person_phone": "+5491140000002",
        "probability": 40,
        "source_channel": "web",
        "stage_id": "stg_proposal",
        "status": "open",
        "title": "Annual plan - Acme",
        "updated_at": 1764590000000,
        "value": 4800,
        "won_at": 1767225600000
      }
    ],
    "has_more": false,
    "next_cursor": "c_2"
  }
}
```

### List people

List people, most recently changed first.

**Inputs**

- Company ID (`company_id`, text): Only people linked to this company.
- Changed since (`updated_since`, date and time): Only people created or changed at or after this time, newest change first.
- Include archived (`include_archived`, true/false): Also return archived records.
- Page size (`limit`, number): How many to return, from 1 to 200. From 1 to 200.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "company_ids": [
          "cmp_acme"
        ],
        "company_name": "Acme",
        "country": "AR",
        "created_at": 1764500000000,
        "do_not_contact": false,
        "email": "juan@acme.com",
        "emails": [
          "juan@acme.com"
        ],
        "first_name": "Juan",
        "full_name": "Juan Perez",
        "id": "per_juan",
        "is_archived": false,
        "job_title": "Head of Marketing",
        "label_ids": [
          "lbl_vip"
        ],
        "last_activity_at": 1764590000000,
        "last_name": "Perez",
        "linked_in_url": "https://www.linkedin.com/in/juanperez",
        "owner_id": "usr_ana",
        "owner_name": "Ana Ruiz",
        "phone": "+5491140000002",
        "phones": [
          "+5491140000002"
        ],
        "primary_company_id": "cmp_acme",
        "source_channel": "web",
        "updated_at": 1764590000000,
        "website": "https://juanperez.com"
      }
    ],
    "has_more": false,
    "next_cursor": "c_2"
  }
}
```

### List pipelines

List your sales pipelines in order, each with its stages and lost reasons.

**Inputs**: None.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "currency": "USD",
        "description": "New business",
        "id": "pip_sales",
        "is_archived": false,
        "is_default": true,
        "lost_reasons": [
          {
            "id": "lr_price",
            "name": "Price"
          }
        ],
        "name": "Sales",
        "require_lost_reason": false,
        "stages": [
          {
            "id": "stg_new",
            "name": "New",
            "probability": 10
          }
        ]
      }
    ]
  }
}
```

### Mark deal lost

Mark a deal as lost, with a reason.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.
- Lost reason ID (`lost_reason_id`, text): One of the pipeline's lost reasons, from Get pipeline. Needed when the pipeline asks for one.
- Note (`lost_reason_note`, text): Why, in your words (up to 1,000 characters).

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "deal": {
      "action_state": "waiting_them",
      "company_id": "cmp_acme",
      "company_name": "Acme",
      "created_at": 1764500000000,
      "currency": "USD",
      "expected_close_date": 1767225600000,
      "id": "deal_8f2k1",
      "is_archived": false,
      "label_ids": [
        "lbl_hot"
      ],
      "last_activity_at": 1764590000000,
      "lost_at": 1767225600000,
      "lost_reason_id": "lr_price",
      "lost_reason_note": "Chose a cheaper option",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_ids": [
        "per_juan"
      ],
      "pipeline_id": "pip_sales",
      "primary_person_email": "juan@acme.com",
      "primary_person_id": "per_juan",
      "primary_person_name": "Juan Perez",
      "primary_person_phone": "+5491140000002",
      "probability": 40,
      "source_channel": "web",
      "stage_id": "stg_proposal",
      "status": "open",
      "title": "Annual plan - Acme",
      "updated_at": 1764590000000,
      "value": 4800,
      "won_at": 1767225600000
    }
  }
}
```

### Mark deal won

Mark a deal as won.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.
- Won stage ID (`won_stage_id`, text): The pipeline's won stage. If left empty, the deal moves to it when there is one.
- Won on (`won_at`, date and time): When it was really closed, if not now. It can't be in the future.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "deal": {
      "action_state": "waiting_them",
      "company_id": "cmp_acme",
      "company_name": "Acme",
      "created_at": 1764500000000,
      "currency": "USD",
      "expected_close_date": 1767225600000,
      "id": "deal_8f2k1",
      "is_archived": false,
      "label_ids": [
        "lbl_hot"
      ],
      "last_activity_at": 1764590000000,
      "lost_at": 1767225600000,
      "lost_reason_id": "lr_price",
      "lost_reason_note": "Chose a cheaper option",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_ids": [
        "per_juan"
      ],
      "pipeline_id": "pip_sales",
      "primary_person_email": "juan@acme.com",
      "primary_person_id": "per_juan",
      "primary_person_name": "Juan Perez",
      "primary_person_phone": "+5491140000002",
      "probability": 40,
      "source_channel": "web",
      "stage_id": "stg_proposal",
      "status": "open",
      "title": "Annual plan - Acme",
      "updated_at": 1764590000000,
      "value": 4800,
      "won_at": 1767225600000
    }
  }
}
```

### Move deal

Move a deal to another stage, or to a stage of another pipeline.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.
- Stage ID (`stage_id`, text, required): The stage to move it to, from Get pipeline.
- Pipeline (`pipeline_id`, text): Another pipeline to move it to. The stage must be one of its stages.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "changed": true,
    "deal": {
      "action_state": "waiting_them",
      "company_id": "cmp_acme",
      "company_name": "Acme",
      "created_at": 1764500000000,
      "currency": "USD",
      "expected_close_date": 1767225600000,
      "id": "deal_8f2k1",
      "is_archived": false,
      "label_ids": [
        "lbl_hot"
      ],
      "last_activity_at": 1764590000000,
      "lost_at": 1767225600000,
      "lost_reason_id": "lr_price",
      "lost_reason_note": "Chose a cheaper option",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_ids": [
        "per_juan"
      ],
      "pipeline_id": "pip_sales",
      "primary_person_email": "juan@acme.com",
      "primary_person_id": "per_juan",
      "primary_person_name": "Juan Perez",
      "primary_person_phone": "+5491140000002",
      "probability": 40,
      "source_channel": "web",
      "stage_id": "stg_proposal",
      "status": "open",
      "title": "Annual plan - Acme",
      "updated_at": 1764590000000,
      "value": 4800,
      "won_at": 1767225600000
    }
  }
}
```

### Reopen deal

Reopen a won or lost deal in a stage of its pipeline.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.
- Stage ID (`stage_id`, text, required): The stage it reopens in, from Get pipeline.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "deal": {
      "action_state": "waiting_them",
      "company_id": "cmp_acme",
      "company_name": "Acme",
      "created_at": 1764500000000,
      "currency": "USD",
      "expected_close_date": 1767225600000,
      "id": "deal_8f2k1",
      "is_archived": false,
      "label_ids": [
        "lbl_hot"
      ],
      "last_activity_at": 1764590000000,
      "lost_at": 1767225600000,
      "lost_reason_id": "lr_price",
      "lost_reason_note": "Chose a cheaper option",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_ids": [
        "per_juan"
      ],
      "pipeline_id": "pip_sales",
      "primary_person_email": "juan@acme.com",
      "primary_person_id": "per_juan",
      "primary_person_name": "Juan Perez",
      "primary_person_phone": "+5491140000002",
      "probability": 40,
      "source_channel": "web",
      "stage_id": "stg_proposal",
      "status": "open",
      "title": "Annual plan - Acme",
      "updated_at": 1764590000000,
      "value": 4800,
      "won_at": 1767225600000
    }
  }
}
```

### Search records

Search deals, people, companies and prospects by name, email, phone or title.

**Inputs**

- Search for (`query`, text, required): A name, email, phone, domain or deal title (2 to 200 characters).
- Kinds (`kinds`, list): Only these kinds of record. All four if left empty. One or more of: `deal` (Deals), `person` (People), `company` (Companies), `prospect` (Prospects).
- Limit (`limit`, number): How many results at most, up to 40. From 1 to 40.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "results": [
      {
        "id": "deal_8f2k1",
        "is_archived": false,
        "kind": "deal"
      }
    ]
  }
}
```

### Update company

Change a company's details. Only the fields you fill in change.

**Inputs**

- Company ID (`company_id`, text, required): The company's ID, from List companies.
- Name (`name`, text): The company's new name.
- Domain (`domain`, text): Its web domain, such as acme.com.
- Industry (`industry`, text): Its industry, in words.
- Size (`size`, text): How many people work there. One of: `solo` (Just one person), `2-10` (2 to 10), `11-50` (11 to 50), `51-200` (51 to 200), `201-1000` (201 to 1,000), `1000+` (More than 1,000).
- Website (`website`, text): Its website address.
- Phone (`phone`, text): Its main phone, with the country code.
- Email (`email`, text): Its main email address.
- Owner ID (`owner_id`, text): The user ID of the team member who owns it.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "company": {
      "country": "AR",
      "created_at": 1764500000000,
      "domain": "acme.com",
      "email": "hello@acme.com",
      "id": "cmp_acme",
      "industry": "Software",
      "is_archived": false,
      "label_ids": [
        "lbl_key"
      ],
      "linked_in": "https://www.linkedin.com/company/acme",
      "name": "Acme",
      "open_deal_count": 1,
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_count": 3,
      "phone": "+541140000000",
      "size": "11-50",
      "total_won_currency": "USD",
      "total_won_value": 9600,
      "updated_at": 1764590000000,
      "website": "https://acme.com",
      "won_deal_count": 2
    }
  }
}
```

### Update deal

Change a deal's details. Only the fields you fill in change.

**Inputs**

- Deal ID (`deal_id`, text, required): The deal's ID, from List deals or Search records.
- Title (`title`, text): The deal's new name.
- Value (`value`, number): The deal amount. At least 0.
- Currency (`currency`, text): A three-letter currency code, such as USD.
- Probability (`probability`, number): Win probability from 0 to 100. From 0 to 100.
- Expected close date (`expected_close_date`, date): When you expect to close it.
- Owner ID (`owner_id`, text): The user ID of the team member who owns it.
- Company ID (`company_id`, text): The deal's company.
- Main contact ID (`primary_person_id`, text): The deal's main contact.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "changed": true,
    "deal": {
      "action_state": "waiting_them",
      "company_id": "cmp_acme",
      "company_name": "Acme",
      "created_at": 1764500000000,
      "currency": "USD",
      "expected_close_date": 1767225600000,
      "id": "deal_8f2k1",
      "is_archived": false,
      "label_ids": [
        "lbl_hot"
      ],
      "last_activity_at": 1764590000000,
      "lost_at": 1767225600000,
      "lost_reason_id": "lr_price",
      "lost_reason_note": "Chose a cheaper option",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "person_ids": [
        "per_juan"
      ],
      "pipeline_id": "pip_sales",
      "primary_person_email": "juan@acme.com",
      "primary_person_id": "per_juan",
      "primary_person_name": "Juan Perez",
      "primary_person_phone": "+5491140000002",
      "probability": 40,
      "source_channel": "web",
      "stage_id": "stg_proposal",
      "status": "open",
      "title": "Annual plan - Acme",
      "updated_at": 1764590000000,
      "value": 4800,
      "won_at": 1767225600000
    }
  }
}
```

### Update person

Change a person's details. Only the fields you fill in change.

**Inputs**

- Person ID (`person_id`, text, required): The person's ID, from List people or Find person.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): An email to add as their main one.
- Phone (`phone`, text): A phone to add as their main one, with the country code.
- Job title (`job_title`, text): Their job title.
- Owner ID (`owner_id`, text): The user ID of the team member who owns them.
- Do not contact (`do_not_contact`, true/false): Whether they are marked Do not contact.

**Outputs**

- `data` (object): The response from MB Suite.

**Example output**

```json
{
  "data": {
    "person": {
      "company_ids": [
        "cmp_acme"
      ],
      "company_name": "Acme",
      "country": "AR",
      "created_at": 1764500000000,
      "do_not_contact": false,
      "email": "juan@acme.com",
      "emails": [
        "juan@acme.com"
      ],
      "first_name": "Juan",
      "full_name": "Juan Perez",
      "id": "per_juan",
      "is_archived": false,
      "job_title": "Head of Marketing",
      "label_ids": [
        "lbl_vip"
      ],
      "last_activity_at": 1764590000000,
      "last_name": "Perez",
      "linked_in_url": "https://www.linkedin.com/in/juanperez",
      "owner_id": "usr_ana",
      "owner_name": "Ana Ruiz",
      "phone": "+5491140000002",
      "phones": [
        "+5491140000002"
      ],
      "primary_company_id": "cmp_acme",
      "source_channel": "web",
      "updated_at": 1764590000000,
      "website": "https://juanperez.com"
    }
  }
}
```
