# REST Resource: smarttap

- [Resource: SmartTap](https://developers.google.com/wallet/reference/rest/v1/smarttap#SmartTap)
  - [JSON representation](https://developers.google.com/wallet/reference/rest/v1/smarttap#SmartTap.SCHEMA_REPRESENTATION)
- [IssuerToUserInfo](https://developers.google.com/wallet/reference/rest/v1/smarttap#IssuerToUserInfo)
  - [JSON representation](https://developers.google.com/wallet/reference/rest/v1/smarttap#IssuerToUserInfo.SCHEMA_REPRESENTATION)
- [Action](https://developers.google.com/wallet/reference/rest/v1/smarttap#Action)
- [SignUpInfo](https://developers.google.com/wallet/reference/rest/v1/smarttap#SignUpInfo)
  - [JSON representation](https://developers.google.com/wallet/reference/rest/v1/smarttap#SignUpInfo.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/wallet/reference/rest/v1/smarttap#METHODS_SUMMARY)

## Resource: SmartTap

| JSON representation |
|---|
| ``` { "kind": string, "id": string, "merchantId": string, "infos": [ { object (`https://developers.google.com/wallet/reference/rest/v1/smarttap#IssuerToUserInfo`) } ] } ``` |

| Fields ||
|---|---|
| `kind (deprecated)` | `string` > [!WARNING] > This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `"walletobjects#smartTap"`. |
| `id` | `string` The unique identifier for a smart tap. This value should follow the format <var translate="no">issuer ID</var>.<var translate="no">identifier</var> where the former is issued by Google and latter is the Smart Tap id. The Smart Tap id is a Base64 encoded string which represents the id which was generated by the Google Pay app. |
| `merchantId` | `string (https://developers.google.com/discovery/v1/type-format format)` Smart Tap merchant ID of who engaged in the Smart Tap interaction. |
| `infos[]` | ``object (`https://developers.google.com/wallet/reference/rest/v1/smarttap#IssuerToUserInfo`)`` Communication from merchant to user. |

## IssuerToUserInfo

| JSON representation |
|---|
| ``` { "action": enum (`https://developers.google.com/wallet/reference/rest/v1/smarttap#Action`), "url": string, "value": string, "signUpInfo": { object (`https://developers.google.com/wallet/reference/rest/v1/smarttap#SignUpInfo`) } } ``` |

| Fields ||
|---|---|
| `action` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/smarttap#Action`)`` |
| `url` | `string` Currently not used, consider deprecating. |
| `value` | `string` JSON web token for action S2AP. |
| `signUpInfo` | ``object (`https://developers.google.com/wallet/reference/rest/v1/smarttap#SignUpInfo`)`` |

## Action

| Enums ||
|---|---|
| `ACTION_UNSPECIFIED` |   |
| `S2AP` |   |
| `s2ap` | Legacy alias for `S2AP`. Deprecated. > [!WARNING] > This item is deprecated! |
| `SIGN_UP` |   |
| `signUp` | Legacy alias for `SIGN_UP`. Deprecated. > [!WARNING] > This item is deprecated! |

## SignUpInfo

| JSON representation |
|---|
| ``` { "classId": string } ``` |

| Fields ||
|---|---|
| `classId` | `string` ID of the class the user can sign up for. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/wallet/reference/rest/v1/smarttap/insert` | Inserts the smart tap. |