<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FinanceKit",
  "identifier" : "/documentation/FinanceKit/TransactionQuery/predicate(forMerchantCategoryCodes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "FinanceKit"
    ],
    "preciseIdentifier" : "s:10FinanceKit16TransactionQueryV9predicate24forMerchantCategoryCodes10Foundation9PredicateVyAA0C0V_QPGSayAA0gH4CodeVG_tFZ"
  },
  "title" : "predicate(forMerchantCategoryCodes:)"
}
-->

# predicate(forMerchantCategoryCodes:)

A predicate that returns transactions that match any of the provided merchant category codes.

```
static func predicate(forMerchantCategoryCodes merchantCategoryCodes: [MerchantCategoryCode]) -> Predicate<Transaction>
```

## Parameters

`merchantCategoryCodes`

Merchant category codes to match against.

---

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)