<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ExternalPurchaseServerAPI",
  "identifier" : "/documentation/ExternalPurchaseServerAPI/productType",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "External Purchase Server API"
    ],
    "preciseIdentifier" : "data:external_purchase_server_api:productType"
  },
  "title" : "productType"
}
-->

# productType

The type of product in the transaction, whether it’s a one-time buy, or a subscription.

```
string productType
```

## Discussion

Allowed values: `ONE_TIME_BUY`, `SUBSCRIPTION`

Use  `ONE_TIME_BUY` for in-app products that customers purchase once. Use `SUBSCRIPTION` for in-app products that have periodic renewals.

---

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)