---
title: offer_code_ref_name
framework: appstorereceipts
role: symbol
role_heading: Type
path: appstorereceipts/offer_code_ref_name
---

# offer_code_ref_name

The offer-reference name of the subscription offer code that the customer redeems.

## Declaration

```data
string offer_code_ref_name
```

## Discussion

Discussion When a customer successfully redeems an offer code, this field is present in the receipt and contains the reference name of the offer. You establish the offer reference name in App Store Connect when you configure offers and create the offer codes. For more information about setting up offers, see Set Up Offer Codes. Use this value to: Determine whether the sale of the subscription was from an offer code campaign. Determine the specific offer the customer redeemed. Keep track of subscription-offer codes a customer has redeemed, to limit discounts you offer, according to your business model. For more information on offers and offer codes, see Implementing offer codes in your app.

## See Also

### Promotions and offers

- [promotional_offer_id](appstorereceipts/promotional_offer_id.md)
