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.