# REST Resource: categories

- [Resource: Category](https://developers.google.com/my-business/reference/rest/v4/categories#Category)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/categories#Category.SCHEMA_REPRESENTATION)
  - [ServiceType](https://developers.google.com/my-business/reference/rest/v4/categories#Category.ServiceType)
    - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/categories#Category.ServiceType.SCHEMA_REPRESENTATION)
  - [MoreHoursType](https://developers.google.com/my-business/reference/rest/v4/categories#Category.MoreHoursType)
    - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/categories#Category.MoreHoursType.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/my-business/reference/rest/v4/categories#METHODS_SUMMARY)

## Resource: Category

A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see [categories.list](https://developers.google.com/my-business/reference/rest/v4/categories/list).

| JSON representation ||
|---|---|
| ``` { "displayName": string, "categoryId": string, "serviceTypes": [ { object (`https://developers.google.com/my-business/reference/rest/v4/categories#Category.ServiceType`) } ], "moreHoursTypes": [ { object (`https://developers.google.com/my-business/reference/rest/v4/categories#Category.MoreHoursType`) } ] } ``` |

| Fields ||
|---|---|
| `displayName` | `string` . The human-readable name of the category. This is set when reading the location. When modifying the location, `categoryId` must be set. Note: This field is used in responses only. Any value specified here in a request is ignored. |
| `categoryId` | `string` . A stable ID (provided by Google) for this category. The `categoryId` must be specified when modifying the category (when creating or updating a location). Note: This field is used in responses only. Any value specified here in a request is ignored. |
| `serviceTypes[]` | ``object (`https://developers.google.com/my-business/reference/rest/v4/categories#Category.ServiceType`)`` . A list of all the service types that are available for this business category. Note: This field is used in responses only. Any value specified here in a request is ignored. |
| `moreHoursTypes[]` | ``object (`https://developers.google.com/my-business/reference/rest/v4/categories#Category.MoreHoursType`)`` Output only. More hours types that are available for this business category. |

### ServiceType

A message describing a service type that the business offers.

| JSON representation ||
|---|---|
| ``` { "serviceTypeId": string, "displayName": string } ``` |

| Fields ||
|---|---|
| `serviceTypeId` | `string` Output only. A stable ID (provided by Google) for this service type. |
| `displayName` | `string` Output only. The human-readable display name for the service type. |

### MoreHoursType

More hours types that a business can offers, in addition to its regular hours.

| JSON representation ||
|---|---|
| ``` { "hoursTypeId": string, "displayName": string, "localizedDisplayName": string } ``` |

| Fields ||
|---|---|
| `hoursTypeId` | `string` Output only. A stable ID provided by Google for this hours type. |
| `displayName` | `string` Output only. The human-readable English display name for the hours type. |
| `localizedDisplayName` | `string` Output only. The human-readable localized display name for the hours type. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/my-business/reference/rest/v4/categories/batchGet` | Returns a list of business categories for the provided language and GConcept ids. |
| ### `https://developers.google.com/my-business/reference/rest/v4/categories/list` | Returns a list of business categories. |