---
title: "presentOfferCodeRedeemSheet(from:options:)"
framework: storekit
role: symbol
role_heading: Type Method
path: "storekit/appstore/presentoffercoderedeemsheet(from:options:)-gj8m"
---

# presentOfferCodeRedeemSheet(from:options:)

Presents a sheet that enables users to redeem subscription offer codes that you configure in App Store Connect.

## Declaration

```swift
@MainActor static func presentOfferCodeRedeemSheet(from window: NSWindow, options: Set<RedeemOption> = []) async throws -> VerificationResult<Transaction>
```

## Parameters

- `window`: The NSWindow that StoreKit uses to display the offer code redemption sheet.
- `options`: A set of doc://com.apple.storekit/documentation/StoreKit/RedeemOption values to configure the offer code redemption.

## Return Value

Return Value A VerificationResult containing the Transaction that the redemption produces.

## Discussion

Discussion note: StoreKitError if the system cannot present the sheet or the redemption fails.
