Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Subscriptions
English French
English French

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: