# BigChange

> Manage BigChange contacts, people, jobs and notes, and read quotes, invoices, purchase orders and stock.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/bigchange

## Actions

### Cancel a job

Cancel a job that hasn't started yet.

**Inputs**

- Job (`job_id`, number, required): The job to use. At least 1.
- Reason (`reason`, text): Why the job is being cancelled.

**Outputs**

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

**Example output**

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

### Create a contact

Create a contact (a customer or site) with its address and location.

**Inputs**

- Name (`name`, text, required): The contact's name: the business or person the work is for.
- Group (`group_id`, number, required): The contact group the new contact belongs to.
- Latitude (`latitude`, number, required): The latitude of the contact's address, in decimal degrees.
- Longitude (`longitude`, number, required): The longitude of the contact's address, in decimal degrees.
- Reference (`reference`, text): Your own reference for the contact. It should usually be unique.
- Parent (`parent_id`, number): The parent contact, when this contact is a site of another.
- Street (`street`, text): The street address.
- Town (`town`, text): The town or city.
- Postal code (`postal_code`, text): The postcode or ZIP code.
- Country (`country`, text): The country, written out in full.
- Extra information (`extra_information`, text): Free-text notes about the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a job

Create a job for a contact. Schedule it with Schedule a job.

**Inputs**

- Job type (`type_id`, number, required): The job type.
- Contact (`contact_id`, number, required): The contact (customer) the job is for.
- Description (`description`, text): What the job involves.
- Reference (`reference`, text): Your own reference for the job. Leave blank to let the job type number it, if it does.
- Planned duration (`planned_duration`, number): How long the job should take, in minutes. Leave blank to use the job type's default. At least 1.
- Order number (`order_number`, text): The customer's order number. Some job types require one.
- Person ID (`person_id`, text): The ID of the person who is the main point of contact for the job.
- Category ID (`category_id`, number): The ID of the job category.
- Job group ID (`job_group_id`, number): The ID of the job group to add the job to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a note

Add a note to a contact, job, resource or other record.

**Inputs**

- Entity type (`entity_type`, text, required): The kind of record the note is about. One of: `contact`, `job`, `stockItem`, `resource`, `vehicle`, `salesOpportunity`, `contract`.
- Entity ID (`entity_id`, number, required): The ID of the record the note is about, of the kind chosen in Entity type.
- Note type (`type_id`, number, required): The note type.
- Subject (`subject`, text, required): The note's subject line.
- Description (`description`, text): The body of the note.
- Status (`status`, text): The note's status. New notes are usually open. One of: `open`, `completed`, `cancelled`.
- Due at (`due_at`, date and time): When the note is due to be completed.
- Reference (`reference`, text): Your own reference for the note. Leave blank to have one made for you.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a person

Add a person to a contact.

**Inputs**

- Contact (`contact_id`, number, required): The contact the person works for.
- Forename (`forename`, text, required): The person's first name.
- Surname (`surname`, text, required): The person's last name.
- Title (`title`, text): The person's title, such as Mrs or Dr.
- Email (`email`, text): The person's email address.
- Mobile (`mobile`, text): The person's mobile phone number.
- Landline (`landline`, text): The person's landline phone number.
- Position (`position`, text): The person's job title at the contact.
- Department (`department`, text): The department the person works in.
- Is opted out (`is_opted_out`, true/false): Whether the person has opted out of marketing messages.

**Outputs**

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

**Example output**

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

### Delete a contact

Delete a contact.

**Inputs**

- Contact (`contact_id`, number, required): The contact (customer or site) to use.

**Outputs**

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

**Example output**

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

### Delete a note

Delete a note.

**Inputs**

- Note ID (`note_id`, number, required): The ID of the note to delete.

**Outputs**

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

**Example output**

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

### Delete a person

Delete a person from a contact.

**Inputs**

- Person ID (`person_id`, text, required): The ID of the person to delete.

**Outputs**

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

**Example output**

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

### Get a contact

Get one contact's details, address and custom fields.

**Inputs**

- Contact (`contact_id`, number, required): The contact (customer or site) to use. At least 1.

**Outputs**

- `data` (object): Represents a model for reading contact.

**Example output**

```json
{
  "data": {
    "accountStatus": "normal",
    "country": "example",
    "createdAt": "example",
    "customFields": [],
    "extraInformation": "example",
    "groupId": 1,
    "id": 1,
    "location": {
      "latitude": 1.0,
      "longitude": 1.0
    },
    "modifiedAt": "example",
    "name": "example",
    "parentId": 1,
    "postalCode": "example",
    "reference": "example",
    "stopReason": "example",
    "stoppedAt": "example",
    "street": "example",
    "town": "example"
  }
}
```

### Get a job

Get one job's details, status, schedule and outcome.

**Inputs**

- Job (`job_id`, number, required): The job to use. At least 1.

**Outputs**

- `data` (object): Represents a model that holds information about a job.

**Example output**

```json
{
  "data": {
    "actualDuration": 1,
    "actualEndAt": "example",
    "actualStartAt": "example",
    "assistants": [],
    "categoryId": 1,
    "categoryName": "example",
    "contactAddress": "example",
    "contactComment": "example",
    "contactId": 1,
    "contactLocation": {
      "latitude": 1.0,
      "longitude": 1.0
    },
    "contactName": "example",
    "contractId": 1,
    "createdAt": "example",
    "customFields": [],
    "description": "example",
    "dueAt": "example",
    "id": 1,
    "internalComment": "example",
    "isActioned": false,
    "isConfirmed": false,
    "isFinanciallyComplete": false,
    "jobGroupId": 1,
    "officeNotes": "example",
    "orderNumber": "example",
    "personId": "example",
    "personName": "example",
    "plannedDuration": 1,
    "plannedEndAt": "example",
    "plannedStartAt": "example",
    "recurrenceId": 1,
    "reference": "example",
    "resourceId": 1,
    "resourceName": "example",
    "resourcesComment": "example",
    "result": "example",
    "salesOpportunityId": 1,
    "siteContactIds": [],
    "status": "new",
    "statusModifiedAt": "example",
    "statusRecordedAt": "example",
    "typeId": 1,
    "typeName": "example",
    "uid": "example",
    "vehicleId": 1,
    "vehicleRegistration": "example"
  }
}
```

### Get a quote

Get one quote's details and totals.

**Inputs**

- Quote ID (`quote_id`, number, required): The ID of the quote. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "acceptedAt": "example",
    "cancelledAt": "example",
    "clientNotes": "example",
    "contactId": 1,
    "contractId": 1,
    "cost": 1.0,
    "createdAt": "example",
    "currencyCode": "EUR",
    "customFields": [],
    "daysValidFor": 1,
    "deliverySiteContactId": 1,
    "departmentCodeId": 1,
    "id": 1,
    "internalNotes": "example",
    "jobGroupId": 1,
    "jobId": 1,
    "nominalCodeId": 1,
    "reference": "example",
    "rejectedAt": "example",
    "salesOpportunityId": 1,
    "sentAt": "example",
    "totalExclTax": 1.0,
    "totalInclTax": 1.0,
    "totalPaid": 1.0
  }
}
```

### List contact groups

List the contact groups that contacts are filed under.

**Inputs**

- Name (`name`, text): Only return groups whose name matches or starts with this text.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List contacts

List contacts (customers and sites), optionally filtered by name, status or group.

**Inputs**

- Name (`name`, text): Only return contacts whose name matches or starts with this text.
- Status (`status`, text): Only return contacts with this account status. One of: `normal`, `contactOnStop`, `creditLimitOnStop`.
- Group (`group_id`, number): Only return contacts in this contact group.
- Parent (`parent_id`, number): Only return contacts under this parent contact.
- Reference (`reference`, text): Only return contacts with this reference.
- Sort by (`sort_by`, text): The field to sort the results by. One of: `name`, `createdAt`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List invoices

List invoices. Set at least one filter: a contact, job, reference or creation date.

**Inputs**

- Contact (`contact_id`, number): Only return invoices for this contact.
- Job (`job_id`, number): Only return invoices for this job.
- Reference (`reference`, text): Only return invoices with this reference.
- Created at from (`created_at_from`, date and time): Only return invoices created at or after this time.
- Created at to (`created_at_to`, date and time): Only return invoices created at or before this time.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List job types

List the job types jobs can be created with.

**Inputs**

- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List jobs

List jobs, filtered by status, contact, type, resource or dates.

**Inputs**

- Status (`status`, list): Only return jobs in these statuses. Cancelled jobs are only returned when you include Cancelled. One or more of: `new`, `scheduled`, `unscheduled`, `sent`, `read`, `accepted`, `refused`, `onTheWay`, `started`, `suspended`, and 6 more.
- Contact (`contact_id`, number): Only return jobs for this contact.
- Job type (`type_id`, number): Only return jobs of this job type.
- Resource (`resource_id`, number): Only return jobs assigned to this resource.
- Reference (`reference`, text): Only return jobs with this reference.
- Order number (`order_number`, text): Only return jobs with this order number.
- Created at from (`created_at_from`, date and time): Only return jobs created at or after this time.
- Created at to (`created_at_to`, date and time): Only return jobs created at or before this time.
- Start at from (`start_at_from`, date and time): Only return jobs planned or started at or after this time.
- Start at to (`start_at_to`, date and time): Only return jobs planned or started at or before this time.
- Sort by (`sort_by`, text): The field to sort the results by. One of: `createdAt`, `scheduledAt`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List note types

List the note types notes can be created with.

**Inputs**

- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List notes

List notes on contacts, jobs and other records.

**Inputs**

- Entity type (`entity_type`, text): Only return notes on this kind of record. Needed to filter by record ID. One of: `contact`, `job`, `stockItem`, `resource`, `vehicle`, `salesOpportunity`, `contract`.
- Entity ID (`entity_id`, number): Only return notes on the record with this ID. Choose its kind in Entity type.
- Contact (`contact_id`, number): Only return notes for this contact.
- Status (`status`, list): Only return notes in these statuses. One or more of: `open`, `completed`, `cancelled`.
- Created at from (`created_at_from`, date and time): Only return notes created at or after this time.
- Created at to (`created_at_to`, date and time): Only return notes created at or before this time.
- Sort by (`sort_by`, text): The field to sort the results by. One of: `createdAt`, `dueAt`, `progressedAt`, `status`, `progressPercentage`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List people

List the people who work at your contacts.

**Inputs**

- Contact (`contact_id`, number): Only return people who belong to this contact.
- Surname (`surname`, text): Only return people whose surname matches or starts with this text.
- Email (`email`, text): Only return people with this email address.
- Is main (`is_main`, true/false): Only return main contacts (yes) or only other people (no).
- Sort by (`sort_by`, text): The field to sort the results by. One of: `surname`, `createdAt`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List purchase orders

List purchase orders.

**Inputs**

- Contact (`contact_id`, number): Only return purchase orders for this contact.
- Job (`job_id`, number): Only return purchase orders for this job.
- Created at from (`created_at_from`, date and time): Only return purchase orders created at or after this time.
- Created at to (`created_at_to`, date and time): Only return purchase orders created at or before this time.
- Sort by (`sort_by`, text): The field to sort the results by. One of: `createdAt`, `reference`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List quotes

List quotes. Set at least one filter: a contact, job, reference or creation date.

**Inputs**

- Contact (`contact_id`, number): Only return quotes for this contact.
- Job (`job_id`, number): Only return quotes for this job.
- Reference (`reference`, text): Only return quotes with this reference.
- Created at from (`created_at_from`, date and time): Only return quotes created at or after this time.
- Created at to (`created_at_to`, date and time): Only return quotes created at or before this time.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List resources

List resources: the engineers and staff jobs are assigned to.

**Inputs**

- Name (`name`, text): Only return resources whose name matches or starts with this text.
- Is archived (`is_archived`, true/false): Only return archived resources (yes) or active ones (no).
- Sort by (`sort_by`, text): The field to sort the results by. One of: `name`, `createdAt`.
- Direction (`direction`, text): Whether to sort in ascending or descending order. One of: `ascending`, `descending`.
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### List stock items

List stock items and where they are held.

**Inputs**

- Serial number (`serial_number`, text): Only return the stock item with this serial number.
- Location contact (`location_contact_id`, number): Only return stock held at this contact.
- Is sold (`is_sold`, true/false): Only return sold stock (yes) or unsold stock (no).
- Page number (`page_number`, number): The page of results to return, starting at 1. From 1 to 2147483.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. From 1 to 1000.

**Outputs**

- `data` (object): A paged collection of items.

**Example output**

```json
{
  "data": {
    "items": [],
    "pageItemCount": 1,
    "pageNumber": 1,
    "pageSize": 1
  }
}
```

### Schedule a job

Assign a new, scheduled or unscheduled job to a resource and a start time.

**Inputs**

- Job (`job_id`, number, required): The job to use. At least 1.
- Resource (`resource_id`, number): The resource (engineer) to assign the job to.
- Planned start at (`planned_start_at`, date and time): When the job should start.
- Vehicle ID (`vehicle_id`, number): The ID of the vehicle to assign. Leave blank to use the resource's own vehicle.

**Outputs**

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

**Example output**

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

### Update a contact

Change a contact's details. Fields left blank keep their current values.

**Inputs**

- Contact (`contact_id`, number, required): The contact (customer or site) to use.
- Name (`name`, text): The contact's new name.
- Group (`group_id`, number): The contact group to move the contact to.
- Reference (`reference`, text): Your own reference for the contact.
- Street (`street`, text): The street address.
- Town (`town`, text): The town or city.
- Postal code (`postal_code`, text): The postcode or ZIP code.
- Country (`country`, text): The country, written out in full.
- Extra information (`extra_information`, text): Free-text notes about the contact.

**Outputs**

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

**Example output**

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

### Update a job

Change a job's details. Fields left blank keep their current values.

**Inputs**

- Job (`job_id`, number, required): The job to use. At least 1.
- Description (`description`, text): What the job involves. It can't change once the job has started.
- Reference (`reference`, text): Your own reference for the job.
- Planned duration (`planned_duration`, number): How long the job should take, in minutes. At least 1.
- Order number (`order_number`, text): The customer's order number.
- Office notes (`office_notes`, text): Notes for the office team about the job.
- Is actioned (`is_actioned`, true/false): Whether everything to do with the job has been dealt with.
- Is financially complete (`is_financially_complete`, true/false): Whether the job is financially complete.

**Outputs**

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

**Example output**

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