# Syncro

> Manage Syncro customers, contacts and tickets, log time and comments, look up assets and invoices, raise and clear RMM alerts, and follow new and changed tickets, comments, customers, assets, alerts, invoices and estimates.

App · 27 actions. Web page: https://docs.lodol.com/docs/integrations/syncro

## Actions

### Add ticket comment

Add a comment to a ticket: a reply the customer is emailed, or a private note.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID (not its number), from List tickets or an earlier step. At least 1.
- Subject (`subject`, text, required): The comment's subject, such as Update.
- Comment (`body`, text, required): The comment itself.
- Private note (`hidden`, true/false): Turn on for a private note only your team sees.
- Don't email the customer (`do_not_email`, true/false): Turn on so the customer isn't emailed this comment.
- Text message (`sms_body`, text): A text message to send the customer with the comment.
- Author name (`tech`, text): The name shown as the comment's author.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "comment": {
      "body": "example",
      "created_at": "example",
      "hidden": true,
      "id": 1,
      "subject": "example",
      "tech": "example",
      "ticket_id": 1,
      "updated_at": "example",
      "user_id": 1
    }
  }
}
```

### Add ticket time entry

Log time worked on a ticket, with an end time or a number of minutes.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID (not its number), from List tickets or an earlier step. At least 1.
- Started (`start_at`, date and time, required): When the work started.
- Ended (`end_at`, date and time): When the work ended.
- Minutes (`duration_minutes`, number): How many minutes the work took, if no end time is given. At least 1.
- Notes (`notes`, text): What was done.
- Technician (`technician_id`, number): Who did the work. Leave empty for you. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "active_duration": 1,
    "billable": true,
    "created_at": "example",
    "end_time": "example",
    "id": 1,
    "notes": "example",
    "recorded": true,
    "start_time": "example",
    "ticket_id": 1,
    "user_id": 1
  }
}
```

### Clear RMM alert

Clear (delete) a monitoring alert.

**Inputs**

- Alert ID (`alert_id`, number, required): The alert's ID, from List RMM alerts or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "success": "example"
  }
}
```

### Create contact

Add a contact (a person at a customer).

**Inputs**

- Customer (`customer_id`, number, required): The customer the contact works for. At least 1.
- Name (`name`, text, required): The contact's full name.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number.
- Extension (`extension`, text): The phone extension.
- Mobile (`mobile`, text): The contact's mobile number.
- Address (`address1`, text): The street address.
- Address line 2 (`address2`, text): The second address line.
- City (`city`, text): The city.
- State (`state`, text): The state or region.
- ZIP code (`zip`, text): The ZIP or postal code.
- Notes (`notes`, text): Notes about the contact.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "address1": "example",
    "address2": "example",
    "city": "example",
    "created_at": "example",
    "customer_id": 1,
    "email": "example",
    "extension": "example",
    "id": 1,
    "mobile": "example",
    "name": "example",
    "notes": "example",
    "opt_out": true,
    "phone": "example",
    "properties": {},
    "state": "example",
    "updated_at": "example",
    "zip": "example"
  }
}
```

### Create customer

Add a customer: a business, or a person with a first and last name.

**Inputs**

- Business name (`business_name`, text): The company's name. Leave empty for a person.
- First name (`firstname`, text): The customer's first name.
- Last name (`lastname`, text): The customer's last name.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The main phone number.
- Mobile (`mobile`, text): The mobile number.
- Address (`address`, text): The street address.
- Address line 2 (`address_2`, text): The second address line.
- City (`city`, text): The city.
- State (`state`, text): The state or region.
- ZIP code (`zip`, text): The ZIP or postal code.
- Notes (`notes`, text): Notes about the customer.
- Referred by (`referred_by`, text): Who or what referred the customer.
- Text messages (`get_sms`, true/false): Whether the customer gets text messages.
- Send no email (`no_email`, true/false): Turn on to send this customer no email at all.
- Opted out of marketing (`opt_out`, true/false): Turn on if the customer opted out of marketing.
- Custom fields (`properties`, object): Values for the account's custom customer fields, by field name.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "customer": {
      "address": "example",
      "address_2": "example",
      "business_name": "example",
      "business_then_name": "example",
      "city": "example",
      "created_at": "example",
      "disabled": true,
      "email": "example",
      "firstname": "example",
      "fullname": "example",
      "get_sms": true,
      "id": 1,
      "lastname": "example",
      "mobile": "example",
      "no_email": true,
      "notes": "example",
      "online_profile_url": "example",
      "opt_out": true,
      "phone": "example",
      "properties": {},
      "referred_by": "example",
      "state": "example",
      "updated_at": "example",
      "zip": "example"
    }
  }
}
```

### Create RMM alert

Raise a monitoring (RMM) alert for a customer, optionally on one of their assets.

**Inputs**

- Customer (`customer_id`, number, required): The customer the alert is for. At least 1.
- Asset (`asset_id`, number): The customer's asset the alert is about. At least 1.
- Description (`description`, text, required): What the alert is about.
- Details (`formatted_output`, text): More detail, such as the output of the check that failed.
- Extra values (`properties`, object): Extra values to keep with the alert, by name.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "alert": {
      "asset_id": 1,
      "computer_name": "example",
      "created_at": "example",
      "customer_id": 1,
      "description": "example",
      "formatted_output": "example",
      "id": 1,
      "properties": {},
      "resolved": true,
      "status": "example",
      "ticket_id": 1,
      "updated_at": "example"
    },
    "success": true
  }
}
```

### Create ticket

Open a ticket for a customer, with the issue described in its first comment.

**Inputs**

- Customer (`customer_id`, number, required): The customer the ticket is for. At least 1.
- Subject (`subject`, text, required): A short summary of the issue.
- Status (`status`, text): The ticket's status. Leave empty for New when creating.
- Priority (`priority`, text): The ticket's priority, as set up in your Syncro account.
- Issue type (`problem_type`, text): The kind of issue, as set up in your Syncro account.
- Assigned technician (`assignee_id`, number): The technician the ticket is assigned to. At least 1.
- Contact (`contact_id`, number): The customer's contact the ticket is for. At least 1.
- Due date (`due_date`, date): When the ticket is due.
- Assets (`asset_ids`, list): The customer's assets (devices) the ticket is about.
- Custom fields (`properties`, object): Values for the ticket type's custom fields, by field name.
- Issue description (`description`, text): What the issue is. It becomes the ticket's first comment, which the customer can see.
- Don't email the customer (`do_not_email`, true/false): Turn on so the customer isn't emailed the first comment.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "ticket": {
      "asset_ids": [
        1
      ],
      "comments": [
        {
          "body": "example",
          "created_at": "example",
          "hidden": true,
          "id": 1,
          "subject": "example",
          "tech": "example",
          "ticket_id": 1,
          "updated_at": "example",
          "user_id": 1
        }
      ],
      "contact_id": 1,
      "created_at": "example",
      "customer_business_then_name": "example",
      "customer_id": 1,
      "due_date": "example",
      "end_at": "example",
      "id": 1,
      "number": 1,
      "pdf_url": "example",
      "priority": "example",
      "problem_type": "example",
      "properties": {},
      "resolved_at": "example",
      "start_at": "example",
      "status": "example",
      "subject": "example",
      "tag_list": [
        "example"
      ],
      "ticket_type_id": 1,
      "updated_at": "example",
      "user_id": 1
    }
  }
}
```

### Delete contact

Delete a contact. Their customer stays.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from List contacts or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

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

### Delete customer

Delete a customer from Syncro.

**Inputs**

- Customer (`customer_id`, number, required): The customer. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Delete ticket

Delete a ticket.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID (not its number), from List tickets or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Get asset

Get an asset with its type, serial number and details such as its operating system.

**Inputs**

- Asset ID (`asset_id`, number, required): The asset's ID, from List assets or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "asset": {
      "asset_serial": "example",
      "asset_type": "example",
      "contact_id": 1,
      "created_at": "example",
      "customer_id": 1,
      "external_rmm_link": "example",
      "id": 1,
      "name": "example",
      "properties": {},
      "updated_at": "example"
    }
  }
}
```

### Get contact

Get a contact's name, email, phone numbers and address.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from List contacts or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "address1": "example",
    "address2": "example",
    "city": "example",
    "created_at": "example",
    "customer_id": 1,
    "email": "example",
    "extension": "example",
    "id": 1,
    "mobile": "example",
    "name": "example",
    "notes": "example",
    "opt_out": true,
    "phone": "example",
    "properties": {},
    "state": "example",
    "updated_at": "example",
    "zip": "example"
  }
}
```

### Get customer

Get a customer's details, address, notes and custom fields.

**Inputs**

- Customer (`customer_id`, number, required): The customer. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "customer": {
      "address": "example",
      "address_2": "example",
      "business_name": "example",
      "business_then_name": "example",
      "city": "example",
      "created_at": "example",
      "disabled": true,
      "email": "example",
      "firstname": "example",
      "fullname": "example",
      "get_sms": true,
      "id": 1,
      "lastname": "example",
      "mobile": "example",
      "no_email": true,
      "notes": "example",
      "online_profile_url": "example",
      "opt_out": true,
      "phone": "example",
      "properties": {},
      "referred_by": "example",
      "state": "example",
      "updated_at": "example",
      "zip": "example"
    }
  }
}
```

### Get invoice

Get an invoice with its line items, payments and balance due.

**Inputs**

- Invoice ID (`invoice_id`, number, required): The invoice's ID, from List invoices or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "invoice": {
      "balance_due": "example",
      "created_at": "example",
      "customer_business_then_name": "example",
      "customer_id": 1,
      "date": "example",
      "due_date": "example",
      "id": 1,
      "is_paid": true,
      "line_items": [
        {
          "id": 1,
          "item": "example",
          "name": "example",
          "price": "example",
          "quantity": "example"
        }
      ],
      "name": "example",
      "number": "example",
      "payments": [
        {}
      ],
      "pdf_url": "example",
      "status": "example",
      "subtotal": "example",
      "tax": "example",
      "ticket_id": 1,
      "total": "example",
      "updated_at": "example"
    }
  }
}
```

### Get RMM alert

Get a monitoring (RMM) alert with its customer, computer, details and whether it is resolved.

**Inputs**

- Alert ID (`alert_id`, number, required): The alert's ID, from List RMM alerts or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "rmm_alert": {
      "asset_id": 1,
      "computer_name": "example",
      "created_at": "example",
      "customer_id": 1,
      "description": "example",
      "formatted_output": "example",
      "id": 1,
      "properties": {},
      "resolved": true,
      "status": "example",
      "ticket_id": 1,
      "updated_at": "example"
    }
  }
}
```

### Get ticket

Get a ticket with its comments, time entries, line items and assets.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID (not its number), from List tickets or an earlier step. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "ticket": {
      "asset_ids": [
        1
      ],
      "comments": [
        {
          "body": "example",
          "created_at": "example",
          "hidden": true,
          "id": 1,
          "subject": "example",
          "tech": "example",
          "ticket_id": 1,
          "updated_at": "example",
          "user_id": 1
        }
      ],
      "contact_id": 1,
      "created_at": "example",
      "customer_business_then_name": "example",
      "customer_id": 1,
      "due_date": "example",
      "end_at": "example",
      "id": 1,
      "number": 1,
      "pdf_url": "example",
      "priority": "example",
      "problem_type": "example",
      "properties": {},
      "resolved_at": "example",
      "start_at": "example",
      "status": "example",
      "subject": "example",
      "tag_list": [
        "example"
      ],
      "ticket_type_id": 1,
      "updated_at": "example",
      "user_id": 1
    }
  }
}
```

### List assets

Find assets (computers and other devices), all of them or one customer's, 25 at a time.

**Inputs**

- Customer (`customer_id`, number): Only this customer's assets. At least 1.
- Search (`query`, text): Words to search assets for, such as a name or serial number.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "assets": [
      {
        "asset_serial": "example",
        "asset_type": "example",
        "contact_id": 1,
        "created_at": "example",
        "customer_id": 1,
        "external_rmm_link": "example",
        "id": 1,
        "name": "example",
        "properties": {},
        "updated_at": "example"
      }
    ],
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    }
  }
}
```

### List contacts

List contacts, all of them or one customer's, 25 at a time.

**Inputs**

- Customer (`customer_id`, number): Only this customer's contacts. At least 1.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "contacts": [
      {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "created_at": "example",
        "customer_id": 1,
        "email": "example",
        "extension": "example",
        "id": 1,
        "mobile": "example",
        "name": "example",
        "notes": "example",
        "opt_out": true,
        "phone": "example",
        "properties": {},
        "state": "example",
        "updated_at": "example",
        "zip": "example"
      }
    ],
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    }
  }
}
```

### List customers

Find customers by name, email or a search, 25 at a time.

**Inputs**

- Search (`query`, text): Words to search customers for.
- Business name (`business_name`, text): Only customers whose business name is like this.
- First name (`firstname`, text): Only customers whose first name is like this.
- Last name (`lastname`, text): Only customers whose last name is like this.
- Email (`email`, text): Only the customer with this email address.
- Include disabled (`include_disabled`, true/false): Also return disabled customers.
- Order (`sort`, text): The order to return customers in. One of: `business_name ASC` (Business name, A to Z), `firstname ASC` (First name, A to Z), `lastname ASC` (Last name, A to Z), `created_at DESC` (Newest first), `created_at ASC` (Oldest first), `updated_at DESC` (Most recently changed first).
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "customers": [
      {
        "address": "example",
        "address_2": "example",
        "business_name": "example",
        "business_then_name": "example",
        "city": "example",
        "created_at": "example",
        "disabled": true,
        "email": "example",
        "firstname": "example",
        "fullname": "example",
        "get_sms": true,
        "id": 1,
        "lastname": "example",
        "mobile": "example",
        "no_email": true,
        "notes": "example",
        "online_profile_url": "example",
        "opt_out": true,
        "phone": "example",
        "properties": {},
        "referred_by": "example",
        "state": "example",
        "updated_at": "example",
        "zip": "example"
      }
    ],
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    }
  }
}
```

### List invoices

List invoices, paid or unpaid, for a ticket or changed since a time, 25 at a time.

**Inputs**

- Payment status (`payment_status`, text): Only paid or only unpaid invoices. Leave empty for both. One of: `paid`, `unpaid`.
- Ticket ID (`ticket_id`, number): Only invoices for this ticket (its ID, not its number). At least 1.
- Changed after (`since_updated_at`, date and time): Only invoices changed after this time.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "invoices": [
      {
        "balance_due": "example",
        "created_at": "example",
        "customer_business_then_name": "example",
        "customer_id": 1,
        "date": "example",
        "due_date": "example",
        "id": 1,
        "is_paid": true,
        "name": "example",
        "number": "example",
        "pdf_url": "example",
        "status": "example",
        "subtotal": "example",
        "tax": "example",
        "ticket_id": 1,
        "total": "example",
        "updated_at": "example"
      }
    ],
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    }
  }
}
```

### List RMM alerts

List monitoring (RMM) alerts, 25 at a time: active ones unless you choose otherwise.

**Inputs**

- Status (`status`, text): Which alerts to return. Leave empty for active ones. One of: `active`, `resolved`, `all`.
- Raised after (`created_after`, date and time): Only alerts raised after this time.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    },
    "rmm_alerts": [
      {
        "asset_id": 1,
        "computer_name": "example",
        "created_at": "example",
        "customer_id": 1,
        "description": "example",
        "formatted_output": "example",
        "id": 1,
        "properties": {},
        "resolved": true,
        "status": "example",
        "ticket_id": 1,
        "updated_at": "example"
      }
    ]
  }
}
```

### List ticket comments

List comments across tickets, newest first within each ticket, optionally for one ticket or customer or since a time.

**Inputs**

- Ticket ID (`ticket_id`, number): Only this ticket's comments (its ID, not its number). At least 1.
- Customer (`customer_id`, number): Only comments on this customer's tickets. At least 1.
- Made after (`comment_created_after`, date and time): Only comments made after this time.
- Made before (`comment_created_before`, date and time): Only comments made before this time.
- Comments per page (`per_page`, number): How many comments a page holds, up to 100. Leave empty for 25. From 1 to 100.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "body": "example",
        "created_at": "example",
        "hidden": true,
        "id": 1,
        "subject": "example",
        "tech": "example",
        "ticket_id": 1,
        "updated_at": "example",
        "user_id": 1
      }
    ],
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    }
  }
}
```

### List tickets

Find tickets by customer, status, technician, date or a search, 25 at a time.

**Inputs**

- Customer (`customer_id`, number): Only this customer's tickets. At least 1.
- Status (`status`, text): Only tickets with this status.
- Assigned technician (`assignee_id`, number): Only tickets assigned to this technician. At least 1.
- Search (`query`, text): Words to search tickets for.
- Ticket number (`number`, text): Only the ticket with this number.
- Created after (`created_after`, date and time): Only tickets created after this time.
- Changed after (`since_updated_at`, date and time): Only tickets changed after this time.
- Resolved after (`resolved_after`, date and time): Only tickets resolved after this time.
- Page (`page`, number): Which page of 25 results to return. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "meta": {
      "page": 1,
      "per_page": 1,
      "total_entries": 1,
      "total_pages": 1
    },
    "tickets": [
      {
        "asset_ids": [
          1
        ],
        "comments": [
          {
            "body": "example",
            "created_at": "example",
            "hidden": true,
            "id": 1,
            "subject": "example",
            "tech": "example",
            "ticket_id": 1,
            "updated_at": "example",
            "user_id": 1
          }
        ],
        "contact_id": 1,
        "created_at": "example",
        "customer_business_then_name": "example",
        "customer_id": 1,
        "due_date": "example",
        "end_at": "example",
        "id": 1,
        "number": 1,
        "pdf_url": "example",
        "priority": "example",
        "problem_type": "example",
        "properties": {},
        "resolved_at": "example",
        "start_at": "example",
        "status": "example",
        "subject": "example",
        "tag_list": [
          "example"
        ],
        "ticket_type_id": 1,
        "updated_at": "example",
        "user_id": 1
      }
    ]
  }
}
```

### Mute RMM alert

Mute a monitoring (RMM) alert for a while, or for good, so it stops raising notifications.

**Inputs**

- Alert ID (`alert_id`, number, required): The alert's ID, from List RMM alerts or an earlier step. At least 1.
- Mute for (`mute_for`, text, required): How long to mute the alert for. One of: `1-hour` (1 hour), `1-day` (1 day), `2-days` (2 days), `1-week` (1 week), `2-weeks` (2 weeks), `1-month` (1 month), `forever`.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "success": "example"
  }
}
```

### Update contact

Change a contact's details. Only the fields filled in change, but Syncro needs the name every time.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from List contacts or an earlier step. At least 1.
- Name (`name`, text, required): The contact's full name.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number.
- Extension (`extension`, text): The phone extension.
- Mobile (`mobile`, text): The contact's mobile number.
- Address (`address1`, text): The street address.
- Address line 2 (`address2`, text): The second address line.
- City (`city`, text): The city.
- State (`state`, text): The state or region.
- ZIP code (`zip`, text): The ZIP or postal code.
- Notes (`notes`, text): Notes about the contact.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "address1": "example",
    "address2": "example",
    "city": "example",
    "created_at": "example",
    "customer_id": 1,
    "email": "example",
    "extension": "example",
    "id": 1,
    "mobile": "example",
    "name": "example",
    "notes": "example",
    "opt_out": true,
    "phone": "example",
    "properties": {},
    "state": "example",
    "updated_at": "example",
    "zip": "example"
  }
}
```

### Update customer

Change a customer's details. Only the fields filled in change.

**Inputs**

- Customer (`customer_id`, number, required): The customer. At least 1.
- Business name (`business_name`, text): The company's name. Leave empty for a person.
- First name (`firstname`, text): The customer's first name.
- Last name (`lastname`, text): The customer's last name.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The main phone number.
- Mobile (`mobile`, text): The mobile number.
- Address (`address`, text): The street address.
- Address line 2 (`address_2`, text): The second address line.
- City (`city`, text): The city.
- State (`state`, text): The state or region.
- ZIP code (`zip`, text): The ZIP or postal code.
- Notes (`notes`, text): Notes about the customer.
- Referred by (`referred_by`, text): Who or what referred the customer.
- Text messages (`get_sms`, true/false): Whether the customer gets text messages.
- Send no email (`no_email`, true/false): Turn on to send this customer no email at all.
- Opted out of marketing (`opt_out`, true/false): Turn on if the customer opted out of marketing.
- Custom fields (`properties`, object): Values for the account's custom customer fields, by field name.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "customer": {
      "address": "example",
      "address_2": "example",
      "business_name": "example",
      "business_then_name": "example",
      "city": "example",
      "created_at": "example",
      "disabled": true,
      "email": "example",
      "firstname": "example",
      "fullname": "example",
      "get_sms": true,
      "id": 1,
      "lastname": "example",
      "mobile": "example",
      "no_email": true,
      "notes": "example",
      "online_profile_url": "example",
      "opt_out": true,
      "phone": "example",
      "properties": {},
      "referred_by": "example",
      "state": "example",
      "updated_at": "example",
      "zip": "example"
    }
  }
}
```

### Update ticket

Change a ticket's subject, status, priority, technician, due date or custom fields. Only the fields filled in change.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID (not its number), from List tickets or an earlier step. At least 1.
- Customer (`customer_id`, number): Move the ticket to this customer. Also lists that customer's contacts and assets to pick from. At least 1.
- Subject (`subject`, text): A short summary of the issue.
- Status (`status`, text): The ticket's status. Leave empty for New when creating.
- Priority (`priority`, text): The ticket's priority, as set up in your Syncro account.
- Issue type (`problem_type`, text): The kind of issue, as set up in your Syncro account.
- Assigned technician (`assignee_id`, number): The technician the ticket is assigned to. At least 1.
- Contact (`contact_id`, number): The customer's contact the ticket is for. At least 1.
- Due date (`due_date`, date): When the ticket is due.
- Assets (`asset_ids`, list): The customer's assets (devices) the ticket is about.
- Custom fields (`properties`, object): Values for the ticket type's custom fields, by field name.

**Outputs**

- `data` (object): The response from Syncro.

**Example output**

```json
{
  "data": {
    "ticket": {
      "asset_ids": [
        1
      ],
      "comments": [
        {
          "body": "example",
          "created_at": "example",
          "hidden": true,
          "id": 1,
          "subject": "example",
          "tech": "example",
          "ticket_id": 1,
          "updated_at": "example",
          "user_id": 1
        }
      ],
      "contact_id": 1,
      "created_at": "example",
      "customer_business_then_name": "example",
      "customer_id": 1,
      "due_date": "example",
      "end_at": "example",
      "id": 1,
      "number": 1,
      "pdf_url": "example",
      "priority": "example",
      "problem_type": "example",
      "properties": {},
      "resolved_at": "example",
      "start_at": "example",
      "status": "example",
      "subject": "example",
      "tag_list": [
        "example"
      ],
      "ticket_type_id": 1,
      "updated_at": "example",
      "user_id": 1
    }
  }
}
```
