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

# price

The price of the in-app purchase that the system records in the transaction.

```
@backDeployed(before: iOS 17.2, macOS 14.2, tvOS 17.2, watchOS 10.2, visionOS 1.1)
var price: Decimal? { get }
```

## Discussion

This value represents the price of the in-app purchase, in units of the [`currency`](/documentation/StoreKit/Transaction/currency), that the system records in the transaction. The [`price`](/documentation/StoreKit/Transaction/price) value reflects all of the following:

- The price you configured in App Store Connect, which the system records on the purchase date ([`purchaseDate`](/documentation/StoreKit/Transaction/purchaseDate)).
- The discount from a subscription offer in the [`offer`](/documentation/StoreKit/Transaction/offer-swift.property) property, if the transaction includes an offer.
- The [`purchasedQuantity`](/documentation/StoreKit/Transaction/purchasedQuantity) of a consumable in-app purchase. The price value shows the total amount of the transaction for the quantity that the customer purchased.

> 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).

The decoded payloads of [`jwsRepresentation`](/documentation/StoreKit/VerificationResult/jwsRepresentation-21vgo) and the <doc://com.apple.documentation/documentation/AppStoreServerAPI/JWSTransaction> strings from the App Store server APIs contain <doc://com.apple.documentation/documentation/AppStoreServerAPI/price> fields specified in *milliunits* of the currency. StoreKit represents the [`price`](/documentation/StoreKit/Transaction/price) value in *units* of the currency. Take care not to confuse these two representations when working with both APIs.

You configure prices in App Store Connect. For more information, 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)