<!--
{
  "availability" : [
    "iOS: 15.0.0 - 16.0.0",
    "iPadOS: 15.0.0 - 16.0.0",
    "macOS: 12.0.0 - 13.0.0",
    "tvOS: 15.0.0 - 16.0.0",
    "visionOS: 1.0.0 - 1.1.0",
    "watchOS: 8.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Transaction/currencyCode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit11TransactionV12currencyCodeSSSgvp"
  },
  "title" : "currencyCode"
}
-->

# currencyCode

The three-letter ISO 4217 currency code for the price of the product.

```
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0)
var currencyCode: String? { get }
```

## Discussion

The [`currencyCode`](/documentation/StoreKit/Transaction/currencyCode) property contains an ISO 4217 alpha-3 string that represents the currency of the price of the product. Use [`currencyCode`](/documentation/StoreKit/Product/SubscriptionInfo/RenewalInfo/currencyCode) to access the currency of the price on systems earlier than iOS 16, iPadOS 16, macOS 13, tvOS 16, and watchOS 9. Otherwise, use [`currency`](/documentation/StoreKit/Product/SubscriptionInfo/RenewalInfo/currency).

> Important:
> For financial and accounting purposes, use the App Store Connect reporting tools. For more information, see [Download financial reports](https://developer.apple.com/help/app-store-connect/getting-paid/download-financial-reports) and [Overview of reporting tools](https://developer.apple.com/help/app-store-connect/measure-app-performance/overview-of-reporting-tools).

Don’t use [`currencyCode`](/documentation/StoreKit/Transaction/currencyCode) to infer the storefront. Use the [`storefront`](/documentation/StoreKit/Transaction/storefront) value in the transaction instead.

For more information on how you set prices, see [Set a price for an in-app purchase](https://developer.apple.com/help/app-store-connect/manage-in-app-purchases/set-a-price-for-an-in-app-purchase).

---

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)