Hi everybody!
I use RecurringApplicationCharge to charge users for my app. I need to get exact amount of money that client has paid with the exact dates of charges (or at least dates when my RecurringApplicationCharge was added to client’s invoice). All the data I need is available in “Export Earnings” option in partners dashboard, but I haven’t found any way to automate the process with the Admin API. Manually downloading CSV and uploading it to my app is not the solution, because I need data to be synchronized as fast as possible.
I could go through all the charges everyday and check if RecurringApplicationCharge is still active, but it’s getting tricky with frozen/unfrozen shops, multiple active RecurringApplicationCharge in one billing period, calculating prorations etc. And the access to Billing API is revoked just after shop uninstalled an app, so it’s not possible to get any historical data for these shops.
Is there any way to get that data? I went through the Billing API and webhooks and haven’t found anything helpful. Did anybody also struggled with this?
I used Stripe and Paypal before and both of them have convenient webhooks systems that inform about all charges and have APIs that can track every single charge for the user, no matter if subscription is still active.
I will be grateful for any help.
Thanks.