# Fetch Gift Redeemer Details

**LFS version requirement**: requires Limio for Salesforce version 11.68 or later.

When looking at a subscription that is a gift purchase, details of whether the gift might be redeemed, and redemption related details, aren't available at subscription level.

In the Limio for Salesforce Manage Subscriptions flow, there is a flow apex action that takes the subscription id as an input and, if it's a gift purchase, returns in a custom apex object the following information:

* isRedeemed
* redemptionStatus
* giftCode
* redemptionDate
* expiryDate
* subscriptionId
* accountId
* contactId

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FJSLY25zpCmQvVltQBus0%2Fimage.png?alt=media&#x26;token=1ed5a1fa-fd6c-4d2a-98ad-884a1936e29b" alt=""><figcaption></figcaption></figure>

This is implemented by the global apex class 'GiftRedeemerDetails' in the Limio for Salesforce category<br>

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FZ971SjXpzi3EcUUO3Weq%2Fimage.png?alt=media&#x26;token=7fa780d1-8732-4228-840a-02f4eb8000b2" alt=""><figcaption></figcaption></figure>

The only field that needs to be mapped as input for the selected action is the subscriptionId, that needs to contain the identifier for the gift purchaser subscription.

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FkjqW2MjSx2Vym0BLxhcj%2Fimage.png?alt=media&#x26;token=af01de01-e456-48c1-8476-4e2be3f8cd5f" alt=""><figcaption></figcaption></figure>

This class will then output an apex class of type i42as\_\_GiftRedeemer, and its parameters can be used elsewhere in the flow as variable for building custom text, or for building a custom lightning web component displaying this information in a purpose built layout.
