# Churnkey

> Read cancellation sessions and measure retention outcomes.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/churnkey

## Actions

### Get session aggregation

Get cancellation totals grouped by time, offers or survey responses.

**Inputs**

- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.
- Breakdown (`breakdown`, text): Grouping such as month, month-offerType or month-surveyResponse.

**Outputs**

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

**Example output**

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

### List sessions

List cancellation sessions with customer, offer and outcome filters.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 10000.
- Skip (`skip`, number): Skip. At least 0.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.
- Customer ID (`customer_id`, text): Customer ID.
- Billing interval (`billing_interval`, text): Billing interval. One of: `WEEK`, `MONTH`, `YEAR`.
- Offer type (`offer_type`, text): Offer type. One of: `PAUSE`, `DISCOUNT`, `CONTACT`, `PLAN_CHANGE` (Plan change), `REDIRECT`, `TRIAL_EXTENSION` (Trial extension).
- Save type (`save_type`, text): Save type. One of: `PAUSE`, `DISCOUNT`, `CONTACT`, `PLAN_CHANGE` (Plan change), `REDIRECT`, `TRIAL_EXTENSION` (Trial extension), `ABANDON`.
- Trial (`trial`, true/false): Trial.
- Aborted (`aborted`, true/false): Aborted.
- Canceled (`canceled`, true/false): Canceled.
- Bounced (`bounced`, true/false): Bounced.

**Outputs**

- `data` (list): The response from Churnkey.

**Example output**

```json
{
  "data": [
    {
      "_id": "example",
      "aborted": true,
      "canceled": true,
      "customerId": "example",
      "id": "example",
      "offerType": "example"
    }
  ]
}
```
