You need the "App Store Connect API". (Search for it.)
Beware, it's not easy to use.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: