How to retrieve prorated refunded amount on original subscription after upgrade?

Apple automatically refunds the prorated amount on the original subscription after it is upgraded. Since upgrades happen immediately and start a new billing cycle beginning from the day of upgrade, the previous original subscription is refunded for the prorated amount. Is there any way to retrieve the amount that was refunded by Apple?

The transaction that was upgraded is marked with isUpgraded flag to true but the price field on it still shows the full amount and there is no App Store Server Notification that tells us how much was the refund.

How do I get the refunded amount?

This is not possible today with the App Store Server API, Notifications, or StoreKit. The price field represents the display price for the purchase (including offers as applicable); App Store Connect reporting is your source for all financial accounting purposes, and those reports account for prorated refunds.

If you have a feature request, I encourage you to submit it here: https://feedbackassistant.apple.com

How to retrieve prorated refunded amount on original subscription after upgrade?
 
 
Q