# Firmao

> Manage customers, contacts, sales opportunities, notes, projects and tasks in Firmao CRM.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/firmao

## Actions

### Create contact

Add a contact person to a customer.

**Inputs**

- Customer (`customer`, number, required): The customer the person works for.
- First name (`firstName`, text, required): Their first name.
- Last name (`lastName`, text): Their last name.
- Job title (`position`, text): Their job title.
- Emails (`emails`, list): Their email addresses.
- Phones (`phones`, list): Their phone numbers.
- Description (`description`, text): Notes about them.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "contact",
        "objectId": 50001,
        "objectLabel": "Marzena Wojciechowska",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create customer

Add a customer (counterparty).

**Inputs**

- Name (`name`, text, required): The customer's full name.
- Short name (`label`, text): The customer's short name, shown in lists.
- Type (`customerType`, text): The kind of customer as Firmao names it, such as PARTNER.
- Description (`description`, text): What the customer does.
- Emails (`emails`, list): Its email addresses.
- Phones (`phones`, list): Its phone numbers.
- Fax (`faxNumber`, text): Its fax number.
- Website (`website`, text): Its website.
- Tax ID (`nipNumber`, text): Its tax identification number (NIP). Must be unique.
- Bank account (`bankAccountNumber`, text): Its bank account number.
- Employees (`employeesNumber`, number): How many people it employs. At least 0.
- Ownership (`ownership`, text): Its ownership as Firmao names it, such as PRIVATE.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "customer",
        "objectId": 50001,
        "objectLabel": "KOMP-SERVICE",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create product

Add a product or service.

**Inputs**

- Name (`name`, text, required): The product's name.
- Code (`productCode`, text): Its product code.
- For sale (`saleable`, true/false): Whether it can be sold.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "product",
        "objectId": 50001,
        "objectLabel": "Sample Product",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create project

Add a project.

**Inputs**

- Name (`name`, text, required): The project's name.
- Description (`description`, text): What the project is.
- Start (`startDate`, date and time): When it starts.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "project",
        "objectId": 50003,
        "objectLabel": "Example",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create sales note

Record a call, meeting or note with a customer.

**Inputs**

- Customer (`customer`, number, required): The customer it is about.
- Note (`description`, text, required): What happened.
- Type (`type`, text): The kind of note as Firmao names it, such as NOTE or MEETING.
- Date (`date`, date and time): When it happened.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "salesnote",
        "objectId": 50011,
        "objectLabel": "",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create sales opportunity

Add a sales opportunity.

**Inputs**

- Name (`label`, text, required): What the opportunity is.
- Currency (`currency`, text, required): Its currency code, such as PLN or EUR.
- Customer (`customer`, number): The customer it is with.
- Value (`salesOpportunityValue`, number): What it is worth. At least 0.
- Expected sale date (`salesDate`, date): When you expect to close it.
- Responsible user ID (`responsibleUser`, number): The ID of the Firmao user who owns it.
- Stage (`stage`, text): The stage's key in your sales process, such as 2.
- Sales process (`sellingProcess`, text): The sales process's key, such as DEFAULT.
- Source (`acquisitionMethod`, text): How it was found, as Firmao names it, such as MARKETING_CAMPAIGN.
- Emails (`emails`, list): Contact email addresses.
- Phones (`phones`, list): Contact phone numbers.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "salesopportunity",
        "objectId": 8,
        "objectLabel": "test - DELL",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create task

Add a task.

**Inputs**

- Name (`name`, text, required): What the task is.
- Description (`description`, text): Details of the task.
- Project (`project`, number): The project it belongs to.
- Type (`taskType`, text): The kind of task as Firmao names it, such as PROJECT.
- Status (`status`, text): Its status as Firmao names it, such as WAITING.
- Priority (`priority`, text): Its priority as Firmao numbers it, such as 300.
- Planned start (`plannedStartDate`, date and time): When it should start.
- Planned end (`plannedEndDate`, date and time): When it should end.
- Estimated hours (`estimatedHours`, number): How many hours it should take. At least 0.
- Responsible users (`responsibleUsers`, list): The users who do it, each by ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "task",
        "objectId": 50017,
        "objectLabel": "Example task",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```

### Create time entry

Record a user's working time, or start or end it.

**Inputs**

- User ID (`user`, number, required): The ID of the Firmao user the time is for.
- Type (`type`, text, required): The kind of time as Firmao names it, such as TASK.
- From (`dateTimeFrom`, date and time): When the work started.
- To (`dateTimeTo`, date and time): When the work ended.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "ATTACH",
        "newValueClass": "timeentry",
        "newValueDisplay": "Jacob Smith, TASK",
        "newValueId": "50037",
        "newValueIsDictionary": false,
        "objectClass": "user",
        "objectId": 1,
        "objectLabel": "Jacob Smith",
        "oldValueIsDictionary": false,
        "property": "timeEntry"
      }
    ]
  }
}
```

### Delete record

Move a record to Firmao's trash, where it can be restored.

**Inputs**

- Kind of record (`object_type`, text, required): What kind of record it is. One of: `customers` (Customer), `contacts` (Contact), `projects` (Project), `tasks` (Task), `products` (Product or service), `salesnotes` (Sales note), `salesopportunities` (Sales opportunity), `offers` (Offer or order), `transactions` (Transaction).
- Record ID (`id`, number, required): The record's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CHANGE",
        "newValueIsDictionary": false,
        "objectClass": "customer",
        "objectId": 50001,
        "objectLabel": "KOMP-SERVICE",
        "oldValueIsDictionary": false,
        "property": "deleted"
      }
    ]
  }
}
```

### Get email content

Get the HTML content of one email.

**Inputs**

- Email ID (`id`, number, required): The email's ID, from List emails.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": {
      "html": "<html><body><p>Email content...</p></body></html>"
    },
    "id": 58
  }
}
```

### List contacts

List contact people.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Customer (`customer`, number): Only records for this customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "creationDate": "2002-12-13T11:40:45Z",
        "customer": {
          "id": 50,
          "label": "Internet Center"
        },
        "departament": "Sekretariat",
        "email": "anna.wojewodzka@mailinator.com",
        "emails": [
          "anna.wojewodzka@mailinator.com"
        ],
        "firstName": "Anna",
        "id": 51,
        "label": "Anna Wojew\u00f3dzka",
        "lastName": "Wojew\u00f3dzka",
        "lastUpdateDate": "2010-05-29T20:53:30Z",
        "phone": "42 688 14 22",
        "phones": [
          "42 688 14 22"
        ],
        "position": "Sekretarka"
      }
    ],
    "dir": "ASC",
    "sort": "firstName",
    "totalSize": 1
  }
}
```

### List customer groups

List your customer groups.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "creationDate": "2010-07-13T07:00:00Z",
        "id": 1,
        "lastUpdateDate": "2010-07-13T07:00:00Z",
        "name": "Stali klienci",
        "salesmen": [
          {
            "id": 5,
            "label": "Anthony Wilson"
          }
        ]
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List customers

List customers (counterparties), sorted and filtered as you choose.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Name contains (`name_contains`, text): Only records whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "balance": 0.0,
        "bankAccountNumber": "50 1020 5558 1111 1702 0600 0067",
        "creationDate": "2002-12-13T11:40:45Z",
        "customerType": "PARTNER",
        "description": "A company specializing in computer service",
        "email": "kompservice.firmao@mailinator.com",
        "emails": [
          "kompservice.firmao@mailinator.com"
        ],
        "employeesNumber": 1,
        "faxNumber": "22 398 78 87",
        "id": 51,
        "income": 0.0,
        "label": "KOMP-SERVICE",
        "lastUpdateDate": "2010-05-29T20:53:30Z",
        "name": "KOMP-SERVICE Jan Kowalski",
        "nipNumber": "7291077843",
        "officeAddress": {
          "city": "Pruszk\u00f3w",
          "country": "Poland",
          "postCode": "05-800",
          "street": "Stefana Batorego 3/4"
        },
        "ownership": "PRIVATE",
        "phone": "22 345 74 26",
        "phones": [
          "22 345 74 26"
        ],
        "website": "www.kompservice.bis"
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List emails

List emails in Firmao, without their content.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Mailbox (`box`, text): Only emails in this mailbox, such as INBOX.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attachment": false,
        "box": "INBOX",
        "cc": [
          "mailadress@mailinator.com"
        ],
        "customer": {
          "id": 1,
          "label": "DELL"
        },
        "id": 58,
        "read": true,
        "sender": "dell@gmail.com",
        "sentDate": "2017-09-08T07:56:50Z",
        "subject": "Order",
        "to": [
          "test@firmao.pl"
        ]
      }
    ],
    "dir": "ASC",
    "sort": "sentDate",
    "totalSize": 1
  }
}
```

### List files

List files attached to records.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "contentType": "image/png",
        "creationDate": "2017-09-08T07:27:05Z",
        "fileSize": 15861,
        "name": "specjalista.png",
        "objectClass": "mail",
        "objectId": 23,
        "objectLabel": "Kalendarium Szkole\u0144 - Wrzesie\u0144 2017"
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List offers and orders

List offers and orders.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Customer (`customer`, number): Only records for this customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "bruttoPrice": 999.0,
        "creationDate": "2012-11-09T12:06:47Z",
        "currency": "PLN",
        "customer": {
          "id": 50,
          "label": "Internet Center"
        },
        "id": 2,
        "lastUpdateDate": "2012-11-09T12:06:47Z",
        "mode": "SALE",
        "nettoPrice": 818.85,
        "number": "1/11/2012/U",
        "offerDate": "2012-11-09",
        "offerStatus": "NEW",
        "paymentDate": "2012-11-09",
        "type": "OFFER"
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List products

List products and services.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Name contains (`name_contains`, text): Only records whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdBy": {
          "id": 1,
          "label": "Jacob Smith"
        },
        "creationDate": "2012-07-17T08:39:15Z",
        "currentStoreState": 50.0,
        "description": "Example product",
        "grossPrice": 12.3,
        "id": 50001,
        "lastUpdateDate": "2012-07-17T08:39:15Z",
        "name": "Example product rename",
        "netPrice": 10.0,
        "productCode": "PR1",
        "saleGrossPrice": 14.76,
        "saleNetPrice": 12.0,
        "saleable": true,
        "unit": "pcs",
        "vat": 23.0
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List projects

List projects.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Name contains (`name_contains`, text): Only records whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "balance": 0,
        "budget": 0,
        "createdBy": {
          "id": 1,
          "label": "Jacob Smith"
        },
        "creationDate": "2017-09-21T13:08:59Z",
        "description": "Description",
        "id": 50001,
        "lastUpdateDate": "2017-09-21T13:08:59Z",
        "managers": [
          {
            "id": 10,
            "label": "Denise Taylor"
          }
        ],
        "name": "Example",
        "startDate": "2012-07-16T22:00:00Z",
        "teamMembers": [
          {
            "id": 6,
            "label": "Emma Clark"
          }
        ]
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List sales notes

List sales notes, such as calls and meetings.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Customer (`customer`, number): Only records for this customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdBy": {
          "id": 1,
          "label": "Jacob Smith"
        },
        "creationDate": "2017-09-12T12:06:19Z",
        "customer": {
          "id": 50,
          "label": "Internet Center"
        },
        "date": "2017-09-12T12:06:00Z",
        "description": "spotkanie",
        "id": 50006,
        "lastUpdateDate": "2017-09-12T12:06:18Z",
        "type": "MEETING"
      }
    ],
    "dir": "ASC",
    "sort": "date",
    "totalSize": 1
  }
}
```

### List sales opportunities

List sales opportunities.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Customer (`customer`, number): Only records for this customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "creationDate": "2023-09-11T05:28:14Z",
        "currency": "PLN",
        "customer": {
          "id": 1,
          "label": "DELL"
        },
        "description": "Upgrade of all laptops",
        "id": 8,
        "label": "test",
        "lastUpdateDate": "2023-09-11T05:28:13Z",
        "responsibleUser": {
          "id": 1,
          "label": "Jacob Smith"
        },
        "salesDate": "2023-09-14",
        "salesOpportunityValue": 11111.0,
        "stage": {
          "key": "3",
          "label": "Lead pozyskany"
        },
        "status": "OPEN"
      }
    ],
    "dir": "ASC",
    "sort": "creationDate",
    "totalSize": 1
  }
}
```

### List tasks

List tasks.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Name contains (`name_contains`, text): Only records whose name contains this text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdBy": {
          "id": 1,
          "label": "Jacob Smith"
        },
        "creationDate": "2017-09-21T13:11:51Z",
        "description": "Description",
        "estimatedHours": 8,
        "id": 50033,
        "lastUpdateDate": "2017-09-21T13:11:51Z",
        "name": "Example task",
        "percentDone": 0,
        "plannedEndDate": "2012-07-17T22:00:00Z",
        "plannedStartDate": "2012-07-16T22:00:00Z",
        "priority": 300,
        "responsibleUsers": [
          {
            "id": 2,
            "label": "Ethan Lam"
          }
        ],
        "status": {
          "group": "OPEN",
          "key": "WAITING",
          "label": "Pending"
        },
        "taskType": "PROJECT"
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List transaction items

List the line items of a transaction.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Transaction ID (`transaction`, number): The transaction whose items to list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "grossPrice": 246.0,
        "id": 50081,
        "nettoPrice": 200.0,
        "productCode": "DELL001",
        "quantity": 2.0,
        "unit": "pcs",
        "unitNettoPrice": 100.0,
        "vatPercent": 23.0
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### List transactions

List invoices, receipts and other sales or purchase documents.

**Inputs**

- Start at (`start`, number): How many records to skip, to read the next page. At least 0.
- Limit (`limit`, number): The most records to return. The maximum depends on your plan. At least 1.
- Sort by (`sort`, text): The field to sort by, such as name, id or creationDate.
- Sort direction (`dir`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending).
- ID (`record_id`, number): Only the record with this ID.
- Customer (`customer`, number): Only records for this customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "creationDate": "2002-12-13T11:40:45Z",
        "currency": "PLN",
        "customer": {
          "id": 50,
          "label": "Internet Center"
        },
        "id": 50,
        "invoiceDate": "2010-09-27",
        "lastUpdateDate": "2010-05-29T20:53:30Z",
        "mode": "SALE",
        "name": "Sale of DE PC",
        "paid": true,
        "paidValue": 999.0,
        "paymentDate": "2010-09-30",
        "paymentType": "TRANSFER",
        "restOfPaidValue": 0.0,
        "transactionDate": "2010-09-24",
        "transactionGrossPrice": 999.0,
        "transactionNettoPrice": 818.85,
        "transactionNumber": "1/1/2010",
        "transactionVatPrice": 180.15,
        "type": "INVOICE"
      }
    ],
    "dir": "ASC",
    "sort": "name",
    "totalSize": 1
  }
}
```

### Update customer

Change a customer's details. Firmao advises changing one field at a time.

**Inputs**

- Customer (`id`, number, required): The customer to change.
- Name (`name`, text): The customer's new full name.
- Short name (`label`, text): The customer's short name, shown in lists.
- Type (`customerType`, text): The kind of customer as Firmao names it, such as PARTNER.
- Description (`description`, text): What the customer does.
- Emails (`emails`, list): Its email addresses.
- Phones (`phones`, list): Its phone numbers.
- Fax (`faxNumber`, text): Its fax number.
- Website (`website`, text): Its website.
- Tax ID (`nipNumber`, text): Its tax identification number (NIP). Must be unique.
- Bank account (`bankAccountNumber`, text): Its bank account number.
- Employees (`employeesNumber`, number): How many people it employs. At least 0.
- Ownership (`ownership`, text): Its ownership as Firmao names it, such as PRIVATE.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "changelog": [
      {
        "deletedWith": "",
        "modification": "CREATE",
        "newValueIsDictionary": false,
        "objectClass": "customer",
        "objectId": 50001,
        "objectLabel": "KOMP-SERVICE",
        "oldValueIsDictionary": false,
        "property": ""
      }
    ]
  }
}
```
