---
title: "donationIdentifier(_:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/intentdonationmatchingpredicate/donationidentifier(_:)"
---

# donationIdentifier(_:)

Creates a predicate that matches a single, previous donation.

## Declaration

```swift
static func donationIdentifier(_ identifier: IntentDonationIdentifier) -> IntentDonationMatchingPredicate
```

## Parameters

- `identifier`: A donation identifier you received after donating an app intent.

## Return Value

Return Value A predicate that matches the specified donation.

## Discussion

Discussion When you donate an app intent using the methods of IntentDonationManager, the method returns a unique identifier for that donation. Use this method to create a predicate that matches only the donation you specified.

## See Also

### Creating a predicate

- [entityIdentifier(_:)](appintents/intentdonationmatchingpredicate/entityidentifier(_:).md)
- [intentType(_:entityIdentifier:)](appintents/intentdonationmatchingpredicate/intenttype(_:entityidentifier:).md)
