# REST Resource: accounts.icons

- [Resource: Icon](https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#Icon)
  - [JSON representation](https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#Icon.SCHEMA_REPRESENTATION)
- [State](https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#State)
- [Methods](https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#METHODS_SUMMARY)

## Resource: Icon

Information about a partner's icon.

| JSON representation |
|---|
| ``` { "name": string, "imageData": string, "state": enum (`https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#State`), "iconUri": string, "reference": string, "disapprovalReasons": [ enum (`https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/ImageDisapprovalReason`) ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Output only. The resource name for the icon in the format `accounts/{account_id}/icons/{icon_id}`. Google generates the `icon_id` during the `create` operation. Use the `icon_id` to associate the icon with a brand using the [accounts.brands](https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.brands#resource:-brand) API. |
| `imageData` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. Input only. The icon contents, which must be in PNG format, or convertible to PNG. A base64-encoded string. |
| `state` | ``enum (`https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons#State`)`` Output only. The icon's current state. |
| `iconUri` | `string` Output only. The approved icon's Google-hosted URI. Only applies to icons with `APPROVED` state. |
| `reference` | `string` Optional. Value for tracking the icon. It could be the primary key to your icon in your system, or the icon's filename. Google does not use this value. |
| `disapprovalReasons[]` | ``enum (`https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/ImageDisapprovalReason`)`` Output only. The icon's disapproval reason(s). Only applies to icons with `REJECTED` state. |

## State

Possible icon states.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. |
| `NEW` | Google has received the icon and is reviewing its contents. |
| `APPROVED` | The icon is approved and is ready for public display. You can link APPROVED icons to brands. |
| `REJECTED` | The icon is rejected. Google won't display this icon. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/create` | Uploads a new icon and starts its review process. |
| ### `https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/get` | Returns the `Icon` instance associated with an icon resource name specified in the request URI. |
| ### `https://developers.google.com/hotels/hotel-prices/api-reference/rest/v3/accounts.icons/list` | Returns the `Icon`s for a partner account. |