Handle subscription refund notification

Hello,

I would like to ask about how to handle subscription refund notifications.

Here’s what I’ve done.

Environment: Sandbox
Steps to reproduce
1.Subscribe.
2.Request a refund using beginRefundRequest.
3.Receives App store server notifications.

I expected to receive the EXPIRED notification immediately after receiving the REFUND notification, but I have confirmed that the EXPIRED notification is received on the renewal date.

We plan to restrict access to premium content when receiving the EXPIRED notification.
If a user starts an annual subscription in January and requests a refund after 3 months, will the EXPIRED notification be received in January of the following year?
If so, what is the optimal time to restrict access to premium content? Additionally, is there a possibility of a partial refund?

Thank you in advance for your support!

Answered by BigBalli in 825071022

The notificationType from Apple you are looking for is "REFUND".

Expired will only be true after the time frame of theninapp/subscription.

In your example REFUND is notified immediately (after the 3 months), EXPIRED occurs after the full term (1y).

Accepted Answer

The notificationType from Apple you are looking for is "REFUND".

Expired will only be true after the time frame of theninapp/subscription.

In your example REFUND is notified immediately (after the 3 months), EXPIRED occurs after the full term (1y).

Handle subscription refund notification
 
 
Q