<!--
{
  "availability" : [

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

# eventType

The type of transaction the line item reports, whether it’s a buy or refund.

```
string eventType
```

## Discussion

Allowed values: `BUY`, `REFUND`

The `eventType` field describes the type of transaction of the line item. Specify an `eventType` in the line item objects [`OneTimeBuyLineItem`](/documentation/ExternalPurchaseServerAPI/OneTimeBuyLineItem), [`SubscriptionBuyLineItem`](/documentation/ExternalPurchaseServerAPI/SubscriptionBuyLineItem), and [`RefundLineItem`](/documentation/ExternalPurchaseServerAPI/RefundLineItem).

Use the `eventType` values as follows:

- `BUY`: The line item describes a product purchase, such as a one-time buy, or a subscription event, including when there’s no charge, such as with a free trial. Use this value in the [`OneTimeBuyLineItem`](/documentation/ExternalPurchaseServerAPI/OneTimeBuyLineItem) and [`SubscriptionBuyLineItem`](/documentation/ExternalPurchaseServerAPI/SubscriptionBuyLineItem) objects.
- `REFUND`: The line item describes a refund or chargeback, up to the full amount of the `BUY` transaction in the [`referenceLineItemId`](/documentation/ExternalPurchaseServerAPI/referenceLineItemId). Use this value in a [`RefundLineItem`](/documentation/ExternalPurchaseServerAPI/RefundLineItem) object.

---

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)