Depending on the type of report that you'd like to get via the Piano API, you may need to use different base URLs for the API calls.
For the reports available on the endpoints publisher/export/*, you need to use the base URL https://api.piano.io/api/v3. These endpoints are usually available for subscription, transaction, or other Subscription Management + Billing log reports.
For the reports available on the endpoints /export/*, you need to use the base URL https://reports-api.piano.io/rest. These endpoints are usually used for Composer reports.
If you are using the base URL https://api.piano.io to generate the report, you can use the following API calls:
-
Generation - https://api.piano.io/api/v3/publisher/export/create/subscriptionDetailsReport
-
Download - https://api.piano.io/api/v3/publisher/export/download
If you are using the base URL https://reports-api.piano.io to generate the report, you can use the following API calls:
-
Generation - https://reports-api.piano.io/rest/export/schedule/vx/subscription
-
Download - https://reports-api.piano.io/rest/export/download/url