> Connect Teachable to enrol buyers in a course when they pay and remove them from it on refund.

Source: https://plandalf.com/docs/automations/teachable

Automations

# Teachable

Connect your Teachable school so buyers from a Plandalf checkout get the course they paid for. A sequence enrols them when they pay and creates the student if Teachable doesn't have them. Another sequence removes them on refund.

**Before you start**

Teachable's API needs the Growth plan or higher. Teachable may charge usage fees for students added through its API; check Teachable's fees for your school. Teachable has no triggers in Plandalf.

## Get a Teachable API key

1.  ### Open the API settings
    
    In your Teachable school admin, go to **Settings → API**.
    
2.  ### Create a key
    
    Click **Create API Key**, name it "Plandalf" and copy the key.
    

## Connect Teachable

In Plandalf, open **Automations → Marketplace** and click **Connect** on Teachable. Paste the key into **API Key** and click **Connect**.

## Steps you can add

Step

What it does

Fields

**Enrol Student in Course**

Gives someone a course, creating the student if needed.

Email Address, Course (both required), Name

**Find or Create Student**

Finds a student by email or creates one.

Email Address (required), Name

**Remove Student from Course**

Removes their access to a course, for example on refund. Skipped when they aren't a student.

Email Address, Course (both required)

**Name** is used only for a new student, usually `{{trigger.customer_name}}`.

## Example: enrol buyers in a course

1.  ### Set the trigger
    
    Create a sequence with **Plandalf → Checkout Completed** and pick the checkout that sells the course.
    
2.  ### Enrol them
    
    Add **Teachable → Enrol Student in Course**. Set **Email Address** to `{{trigger.customer_email}}`, **Name** to `{{trigger.customer_name}}`, and pick the **Course**.
    
3.  ### Test and turn it on
    
    Testing enrols a real student, so use your own email. Then turn the sequence on.
    

To remove refunded buyers, use the [Remove access on refund](https://plandalf.com/docs/automations/templates#remove-access-on-refund) template and pick the same course.

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
