# Chaser

> Manage receivables, customer contacts and collection notes in Chaser.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/chaser

## Actions

### Create contact

Create contact person

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- External ID (`external_id`, text, required): External ID.
- Contact first name (`contact_first_name`, text): Contact first name.
- Contact last name (`contact_last_name`, text): Contact last name.
- Contact email address (`contact_email_address`, text): Contact email address.
- Phone number (`phone_number`, text): Phone number.
- Mobile number (`mobile_number`, text): Mobile number.
- Status (`status`, text): Status. One of: `ACTIVE`, `ARCHIVED`. Default: `ACTIVE`.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Create customer

Create customer

**Inputs**

- External ID (`external_id`, text, required): External ID.
- Company name (`company_name`, text, required): Company name.
- Contact first name (`contact_first_name`, text): Contact first name.
- Contact last name (`contact_last_name`, text): Contact last name.
- Contact email address (`contact_email_address`, text): Contact email address.
- Phone number (`phone_number`, text): Phone number.
- Mobile number (`mobile_number`, text): Mobile number.
- Status (`status`, text): Status. One of: `ACTIVE`, `ARCHIVED`. Default: `ACTIVE`.
- Groups (`groups`, list): Groups.
- Addresses (`addresses`, list): Addresses.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "addresses": [],
      "chasing": false,
      "company_name": "example",
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "groups": [],
      "id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Create customer note

Create a note on a customer

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Message (`message`, text, required): Message.
- Reminder date (`reminder_date`, date and time): Reminder date.
- Type (`type`, text): Type.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "date": "example",
      "id": "example",
      "message": "example",
      "reminder_date": "example",
      "type": "example"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Delete contact

Delete contact person.

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Contact person (`contact_person_id`, text, required): Contact person unique identifier (external_id)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Delete customer note

Delete a note from a customer

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Note ID (`note_id`, text, required): Note ID: note_ + base64url-encoded note hash

**Outputs**

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

**Example output**

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

### Get contact

Get contact person by id.

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Contact person (`contact_person_id`, text, required): Contact person unique identifier (external_id)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Get credit note

Get credit note by id

**Inputs**

- Credit note (`credit_note_id`, text, required): Credit Note unique identifier. Both "id" and "credit_note_id" can be used. In case of "credit_note_id" please prepend "ext_" prefix (e.g. /v1/credit_notes/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "credit_note_id": "example",
      "credit_note_number": "example",
      "currency_code": "example",
      "customer_external_id": "example",
      "customer_name": "example",
      "date": "example",
      "id": "example",
      "remaining_credit": 1.0,
      "status": "DRAFT",
      "total": 1.0
    },
    "object": "example",
    "url": "example"
  }
}
```

### Get customer

Get customer by id.

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "addresses": [],
      "average_days_to_pay": 1.0,
      "chasing": false,
      "company_name": "example",
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "groups": [],
      "id": "example",
      "mobile_number": "example",
      "payer_rating": 1.0,
      "payer_rating_number_invoices_considered": 1.0,
      "payer_rating_updated_at": "example",
      "payment_portal_link": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Get invoice

Get invoice by id

**Inputs**

- Invoice (`invoice_id`, text, required): Invoice unique identifier. Both "id" and "invoice_id" can be used. In case of "invoice_id" please prepend "ext_" prefix (e.g. /v1/invoices/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "amount_due": 1.0,
      "amount_paid": 1.0,
      "chasing": false,
      "currency_code": "example",
      "customer_external_id": "example",
      "customer_name": "example",
      "date": "example",
      "due_date": "example",
      "expect_payment_date": "example",
      "fully_paid_date": "example",
      "id": "example",
      "invoice_id": "example",
      "invoice_number": "example",
      "invoice_pdf_link": "example",
      "invoice_pdf_link_source": "example",
      "invoice_pdf_link_updated_at": "example",
      "payments": [],
      "status": "DRAFT",
      "sub_total": 1.0,
      "total": 1.0
    },
    "object": "example",
    "url": "example"
  }
}
```

### Get organisation

Get current organisation

**Inputs**: None.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "base_currency": "example",
      "chasing": false,
      "country_code": "example",
      "id": "example",
      "last_sync_date": "example",
      "legal_name": "example",
      "name": "example",
      "organisation_id": "example",
      "timezone": "example"
    },
    "object": "example",
    "url": "example"
  }
}
```

### List contacts

Get contact persons

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### List credit notes

Get credit notes

**Inputs**

- Limit (`limit`, number): items per page - max=100. From 1 to 100. Default: `100`.
- Page (`page`, number): starts from 0. At least 0. Default: `0`.
- Credit note ID (`credit_note_id`, text): Supported operators: in, nin, eq, ne
- Credit note number (`credit_note_number`, text): Supported operators: in, nin, eq, ne
- Remaining credit (`remaining_credit`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Total (`total`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Status (`status`, text): Supported operators: in, nin, eq, ne. One of: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `VOIDED`, `DELETED`.
- Currency code (`currency_code`, text): Supported operators: in, nin, eq, ne
- Customer external ID (`customer_external_id`, text): Supported operators: in, nin, eq, ne
- Date (`date`, date and time): Supported operators: gt, lt, gte, lte, eq, ne

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### List customer notes

Get notes for a customer

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### List customers

Get customers

**Inputs**

- Limit (`limit`, number): items per page - max=100. From 1 to 100. Default: `100`.
- Page (`page`, number): starts from 0. At least 0. Default: `0`.
- External ID (`external_id`, text): Supported operators: in, nin, eq, ne
- Company name (`company_name`, text): Supported operators: in, nin, eq, ne
- Contact first name (`contact_first_name`, text): Supported operators: in, nin, eq, ne
- Contact last name (`contact_last_name`, text): Supported operators: in, nin, eq, ne
- Contact email address (`contact_email_address`, text): Supported operators: in, nin, eq, ne
- Status (`status`, text): Supported operators: in, nin, eq, ne. One of: `ACTIVE`, `ARCHIVED`.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### List invoice history

Get invoice history by id

**Inputs**

- Invoice (`invoice_id`, text, required): Invoice unique identifier. Both "id" and "invoice_id" can be used. In case of "invoice_id" please prepend "ext_" prefix (e.g. /v1/invoices/ext_1234)

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "chases": [],
      "contact_id": "example",
      "dispute": {
        "is_open": false,
        "note": "example"
      },
      "emails": [],
      "expect_payment_date": "example",
      "invoice_id": "example",
      "invoice_number": "example",
      "notes": [],
      "status_changes": []
    },
    "object": "example",
    "url": "example"
  }
}
```

### List invoices

Get invoices

**Inputs**

- Limit (`limit`, number): items per page - max=100. From 1 to 100. Default: `100`.
- Page (`page`, number): starts from 0. At least 0. Default: `0`.
- Invoice ID (`invoice_id`, text): Supported operators: in, nin, eq, ne
- Invoice number (`invoice_number`, text): Supported operators: in, nin, eq, ne
- Status (`status`, text): Supported operators: in, nin, eq, ne. One of: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `VOIDED`, `DELETED`.
- Currency code (`currency_code`, text): Supported operators: in, nin, eq, ne
- Amount due (`amount_due`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Amount paid (`amount_paid`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Total (`total`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Sub total (`sub_total`, text): Supported operators: gt, lt, gte, lte, eq, ne
- Date (`date`, date and time): Supported operators: gt, lt, gte, lte, eq, ne
- Due date (`due_date`, date and time): Supported operators: gt, lt, gte, lte, eq, ne
- Fully paid date (`fully_paid_date`, date and time): Supported operators: gt, lt, gte, lte, eq, ne
- Customer external ID (`customer_external_id`, text): Supported operators: in, nin, eq, ne

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### List tasks

Get tasks

**Inputs**

- Limit (`limit`, number): items per page - max=100. From 1 to 100. Default: `100`.
- Page (`page`, number): starts from 0. At least 0. Default: `0`.
- Type (`type`, text): Supported operators: in, nin, eq, ne
- Status (`status`, text): Supported operators: in, nin, eq, ne
- Source (`source`, text): Supported operators: in, nin, eq, ne
- Category (`category`, text): Supported operators: in, nin, eq, ne
- Due date (`due_date`, date and time): Supported operators: gt, lt, gte, lte, eq, ne

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": [],
    "object": "example",
    "page_number": 1.0,
    "page_size": 1.0,
    "total_count": 1.0,
    "url": "example"
  }
}
```

### Update contact

Update contact person.

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Contact person (`contact_person_id`, text, required): Contact person unique identifier (external_id)
- External ID (`external_id`, text): External ID.
- Contact first name (`contact_first_name`, text): Contact first name.
- Contact last name (`contact_last_name`, text): Contact last name.
- Contact email address (`contact_email_address`, text): Contact email address.
- Phone number (`phone_number`, text): Phone number.
- Mobile number (`mobile_number`, text): Mobile number.
- Status (`status`, text): Status. One of: `ACTIVE`, `ARCHIVED`. Default: `ACTIVE`.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Update customer

Update customer

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- External ID (`external_id`, text): External ID.
- Company name (`company_name`, text): Company name.
- Contact first name (`contact_first_name`, text): Contact first name.
- Contact last name (`contact_last_name`, text): Contact last name.
- Contact email address (`contact_email_address`, text): Contact email address.
- Phone number (`phone_number`, text): Phone number.
- Mobile number (`mobile_number`, text): Mobile number.
- Status (`status`, text): Status. One of: `ACTIVE`, `ARCHIVED`. Default: `ACTIVE`.
- Groups (`groups`, list): Groups.
- Addresses (`addresses`, list): Addresses.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "addresses": [],
      "chasing": false,
      "company_name": "example",
      "contact_email_address": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "external_id": "example",
      "groups": [],
      "id": "example",
      "mobile_number": "example",
      "phone_number": "example",
      "status": "ACTIVE"
    },
    "object": "example",
    "url": "example"
  }
}
```

### Update customer note

Update a note on a customer

**Inputs**

- Customer (`customer_id`, text, required): Customer unique identifier. Both "id" and "external_id" can be used. In case of "external_id" please prepend "ext_" prefix (e.g. /v1/customers/ext_1234)
- Note ID (`note_id`, text, required): Note ID: note_ + base64url-encoded note hash
- Message (`message`, text): Message.
- Reminder date (`reminder_date`, date and time): Reminder date.
- Type (`type`, text): Type.

**Outputs**

- `data` (object): Success

**Example output**

```json
{
  "data": {
    "data": {
      "date": "example",
      "id": "example",
      "message": "example",
      "reminder_date": "example",
      "type": "example"
    },
    "object": "example",
    "url": "example"
  }
}
```
