Hi, We are currently looking to implement some basic reporting on the server for our apps in app purchases but we are struggling to find the necessary information in the App Store Server API [1] Currently our flow works like this:
- on the app we are successfully buying a subscription
- our server is configured to receive App Store Server Notifications for StoreKit 2
- server receives callbacks correctly for the transactions we are performing on the app side
What we would like to achieve is to be able to know on the server how much money we would earn from the subscription bought by the user.
Can you please help us out with the following?
- Is there an api that can tell us that a given in app purchase product is linked to a certain price tier ?
- If a user payed for a subscription, how can we tell on the server if the 1.99$ price tier will have a 30% or 15% fee from AppStore depending on the subscription duration ? Is there a way to tell if that subscription is in the second year or not ?
[1] https://developer.apple.com/documentation/appstoreserverapi