We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to get term purchase data on the front-end

If you would like to get data about the term that the user has purchased on your front-end, you can add the following code to your front-end integration script:

tp.api.callApi('/conversion/list', {}, function(res){
 console.log(res)
})

The response will contain the Term ID, which you then can use in other JavaScript calls.

Last updated: