<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/VASRequest/Merchant/init(id:url:localizedName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader10VASRequestC8MerchantV2id3url13localizedNameAESS_10Foundation3URLVSgSSSgtcfc"
  },
  "title" : "init(id:url:localizedName:)"
}
-->

# init(id:url:localizedName:)

Creates a new merchant object with the specified information.

```
init(id: String, url: URL? = nil, localizedName: String? = nil)
```

## Parameters

`id`

The merchant’s unique identifier. Obtain this value from the merchant.

`url`

The URL to display if the customer doesn’t belong to the merchant’s loyalty program.

`localizedName`

The name of the merchant, localized for the current device.

---

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)