Hello, We have INAPP purchase feature in our APP and we are storing the ORIGINAL TRANSACTION ID using the verifyReceipt API at the time of purchase to one of our tables.
Now we have to take this ORIGINAL TRANSACTION ID and call APPSTORE backend API to get the purchase history for this original transaction ID. To get this accomplished we found these two apis(but unsure if they are active/deprecated) -
https://api.appstoreconnect.apple.com
**https://api.storekit-sandbox.itunes.apple.com/inApps/v1/subscriptions/%7BoriginalTransactionId%7D%E2%80%9D **
The first API is working after we generated a TOKEN using KEY_ID + ISSUER_ID and a PRIVATE KEY we downloaded from our account under "App Store Connect Api"
we can get the below calls to work https://api.appstoreconnect.apple.com/v1/users https://api.appstoreconnect.apple.com/v1/devices
But using the same JWT token when we call the second api https://api.storekit-sandbox.itunes.apple.com/inApps/v1/subscriptions/%7BoriginalTransactionId%7D%E2%80%9D
we are getting { "errorCode": 4000002, "errorMessage": "Invalid request app identifier."
- Did anyone tried to call the APPSTORE CONNECT or APPLE STOREKIT backend API to get transaction history given the ORIGINAL TRANSACTION ID ?
Note: Attached the PYTHON code we run to generate the JWT token.