Adding Enrollment API Shopify

We offer the ability for people to purchase through a Shopify e-commerce store. I am trying to see the best way to have it atomically send to Ethos and enroll them in a the course.

Once they register on ethos, it would be in their pending activities. I know there is the API, but not sure the best way to set it up.