[iOS 26 presentOfferCodeRedeemSheet] Custom Offer Code fails with "The code entered is not valid"

Hello everyone,

I'm having trouble testing custom offer codes for my auto-renewable subscription in the Sandbox environment.

I am using the modern StoreKit 2 API to display the redemption sheet: try await StoreKit.AppStore.presentOfferCodeRedeemSheet(in: windowScene)

When I enter a valid custom code that I created in App Store Connect, the system sheet immediately returns the following error:

"Cannot Redeem Code. The code entered is not valid. [environment: sandbox]"

To be clear, I am manually typing the custom code string itself into the redemption sheet's text field, not using a one-time code link or URL.

I believe my configuration is correct, and I've already spent a significant amount of time troubleshooting. Here is a list of everything I have checked and tried so far:

  • App Store Connect Configuration:

    • The Offer Code is marked as "Active".
    • The parent subscription product is approved and its status is "Ready for Sale".
    • The offer's eligibility is set correctly
    • The start and end dates for the offer are valid.

Despite all these steps, the error persists. At this point, I suspect this might be a temporary issue with the Sandbox environment itself, but I want to make sure I haven't missed any crucial configuration steps.

Has anyone else encountered this issue recently? Is there anything else I should be checking?

Any help would be greatly appreciated.

Thank you.

[iOS 26 presentOfferCodeRedeemSheet] Custom Offer Code fails with "The code entered is not valid"
 
 
Q