<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/AppTransaction/refresh()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit14AppTransactionV7refreshAA18VerificationResultOyACGyYaKFZ"
  },
  "title" : "refresh()"
}
-->

# refresh()

Gets the App Store-signed app transaction information from the App Store server.

```
static func refresh() async throws -> VerificationResult<AppTransaction>
```

## Return Value

Returns a [`VerificationResult`](/documentation/StoreKit/VerificationResult) with a single [`AppTransaction`](/documentation/StoreKit/AppTransaction).

## Discussion

This method queries the App Store server to refresh the app transaction information. This method returns a [`VerificationResult`](/documentation/StoreKit/VerificationResult) that contains the App Store-signed app transaction information for your app.

> Important:
> Calling ``doc://com.apple.storekit/documentation/StoreKit/AppTransaction/refresh()`` displays a system prompt that asks users to authenticate with their App Store credentials. Call this function only in response to an explicit user action, like tapping or clicking a button.

Use this method to get an [`AppTransaction`](/documentation/StoreKit/AppTransaction) in the following cases:

- The [`shared`](/documentation/StoreKit/AppTransaction/shared) property throws an error.
- The [`shared`](/documentation/StoreKit/AppTransaction/shared) property returns an unverified ([`VerificationResult.unverified(_:_:)`](/documentation/StoreKit/VerificationResult/unverified(_:_:)) ) result.

This method throws an error if the user cancels the authentication prompt, if there’s no network connectivity, or if the call fails to update the app transaction.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)