Integrations

Custom Provider Integration

Build a custom integration to connect your billing system with Churnkey's retention tools.

Overview

Churnkey helps reduce churn by offering targeted retention experiences when customers try to cancel. This guide walks you through building a custom integration that connects your billing system to Churnkey, enabling features like pause offers, targeted discounts, and plan changes during cancellation flows.

Core Models

Models map your billing system's data to Churnkey's format. Each model represents a key billing concept that Churnkey needs to understand your customers and their subscriptions.

Customer

A user who owns subscriptions.

Required

Price

Billing cycle and price of a subscription (a.k.a. Plan)

Required

Subscription

Subscription to a product or service.

Required

Coupon

A discount code for a subscription.

OptionalCoupon Offer

Product

A product or service.

OptionalBetter UX

Family

A group of products or services.

OptionalBetter UX

Invoice

An invoice for a subscription.

Coming soon

Data Access Controllers

Controllers provide secure, standardized access to your billing data. Each controller exposes two essential methods:

  • retrieve(): Fetch a single record by ID
  • list(): Fetch multiple records with pagination support

Customers

List, retrieve and find Customer models.

Required

Prices

List and retrieve Price models.

Required

Subscriptions

List and retrieve Subscription models.

Required

Coupons

List and retrieve Coupon models.

OptionalCoupon Offer

Products

List and retrieve Product models.

OptionalBetter UX

Families

List and retrieve Family models.

OptionalBetter UX

Invoices

List and retrieve Invoice models for advanced analytics.

Coming soon

Subscription Actions

Actions enable Churnkey to modify subscriptions based on customer choices during the cancellation flow. Each action handles a specific type of subscription change, like applying a discount or pausing service.

Cancel

Cancels a subscription.

OptionalCancel Flow - Required

Pause

Pauses a subscription.

OptionalPause Offer

Extend Trial

Extends a trial period for a subscription.

OptionalTrial Offer

Apply Coupon

Applies a coupon to a subscription.

OptionalDiscount Offer

Change Price

Changes the price and/or product of a subscription.

OptionalPrice Offer

Deploy Your Integration

Finally, you need to make sure that all your Controllers and Actions are accessible from an Internet, have proper authentication and provide Features manifest.

Follow the publishing guide for detailed deployment instructions and troubleshooting tips.