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

How to get the latest conversion data from the /publisher/conversion/get API endpoint?

If you'd like to get the most recent conversion data from the /publisher/conversion/get API endpoint detailed here, you can add the parameter is_last_term_conversion with the value true to the API call.

For example:

https://api.piano.io/api/v3/publisher/conversion/get?api_token=<API_token>&amp;aid=AID&amp;access_id=MQggggfkq&amp;is_last_term_conversion=true

In case your application's dashboard has another locale, the available base URLs are listed here.

This will result in returning only the most recent payment conversion, including the response parameters create_date(date of the payment) and the amount (the price the user paid).

Please note, that if the status of the payment is verified, the user hasn't actually been charged the amount, but only their payment method has been validated for a future subscription payment.

You can also identify trials by the parameter is_in_trial, which would have the value true for subscriptions in the trial period.

If the payment's status is completed, then the user's been also actually charged the value in the parameter amount.

Last updated: