---
title: productType
framework: externalpurchaseserverapi
role: symbol
role_heading: Type
path: externalpurchaseserverapi/producttype
---

# productType

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

## Declaration

```data
string productType
```

## Possible Values

ONE_TIME_BUY: SUBSCRIPTION:

## Discussion

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.

## See Also

### Providing product info

- [productIdentifier](externalpurchaseserverapi/productidentifier.md)
- [quantity](externalpurchaseserverapi/quantity.md)
