# Barcode

- [JSON representation](https://developers.google.com/wallet/reference/rest/v1/Barcode#SCHEMA_REPRESENTATION)

| JSON representation |
|---|
| ``` { "kind": string, "type": enum (`https://developers.google.com/wallet/reference/rest/v1/BarcodeType`), "renderEncoding": enum (`https://developers.google.com/wallet/reference/rest/v1/BarcodeRenderEncoding`), "value": string, "alternateText": string, "showCodeText": { object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`) } } ``` |

| Fields ||
|---|---|
| `kind (deprecated)` | `string` > [!WARNING] > This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `"walletobjects#barcode"`. |
| `type` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/BarcodeType`)`` The type of barcode. |
| `renderEncoding` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/BarcodeRenderEncoding`)`` The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. |
| `value` | `string` The value encoded in the barcode. |
| `alternateText` | `string` An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned. |
| `showCodeText` | ``object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`)`` Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google. |