How do I enroll student in Thrivecart Learn course with API?

  • 22 August 2023
  • 7 replies

Userlevel 1

I want to enroll a studen in a Thrivecart Learn course when they purchase an upsell

I use the trigger Upsell purchase in Thrivecart

And the API Request (Beta) in ThriveCart

I know the URL, the course ID, I have the email. I want to enroll the student in a specific course with his email

Problem : How do I write that in the body ? I’m not a developper, I just wanted to do something that seemed simple...



This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

7 replies

Userlevel 7
Badge +14

Hi @Caterina 

Good question.

What is the link to the ThriveCart API docs you are referencing to configure the API request?

Userlevel 1

This one :

But I must admit that after putting the URL I didn't knew what to do

Userlevel 7
Badge +14


Which of the ThriveCart API endpoints are you trying to use?


Userlevel 1

"create new student" !

Userlevel 7
Badge +14


Try this...

Method: POST


Query String Parameters: (there should be none)

Header: Content-Type: application/json

Body: Replace the [VARIABLES] with the dynamic or static values.

"email": "[EMAIL]",
"course_id": "[COURSE_ID]"



Userlevel 1

You are my SAVIOR !!! Thank you so much you are so awesome and quick, I spent like 2 hours on that 😭


Thanks thanks thanks !!

Is there a way to add them to two courses at a time?