<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/VASRequest/Merchant",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader10VASRequestC8MerchantV"
  },
  "title" : "VASRequest.Merchant"
}
-->

# VASRequest.Merchant

The identity of a merchant that offers a loyalty program.

```
struct Merchant
```

## Overview

Create `Merchant` objects to identify merchants whose loyalty programs
you support. When placing a request for loyalty card information, or
Value Added Services (VAS) information, specify the associated merchant
details. The system uses the merchant information to return details only for those
merchants.

## Topics

### Creating a merchant structure

[`init(id: String, url: URL?, shouldSendURLOnly: Bool, localizedName: String?)`](/documentation/ProximityReader/VASRequest/Merchant/init(id:url:shouldSendURLOnly:localizedName:))

Creates a new merchant object with the specified information.

### Getting the merchant name

[`var localizedName: String`](/documentation/ProximityReader/VASRequest/Merchant/localizedName)

The localized name of the merchant or corresponding loyalty program.

### Getting the merchant URL details

[`let url: URL?`](/documentation/ProximityReader/VASRequest/Merchant/url)

The URL to display to the customer if the matching loyalty or reward ID isn’t found.

[`let shouldSendURLOnly: Bool`](/documentation/ProximityReader/VASRequest/Merchant/shouldSendURLOnly)

A Boolean value that indicates whether to send only the merchant URL to the customer’s device without requesting data.

### Getting the merchant ID

[`let id: String`](/documentation/ProximityReader/VASRequest/Merchant/id)

A unique identifier for the merchant.

### Initializers

[`init(id: String, url: URL?, localizedName: String?)`](/documentation/ProximityReader/VASRequest/Merchant/init(id:url:localizedName:))

Creates a new merchant object with the specified information.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)