# REST Resource: accounts.invitations

- [Resource: Invitation](https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#Invitation)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#Invitation.SCHEMA_REPRESENTATION)
- [TargetLocation](https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#TargetLocation)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#TargetLocation.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#METHODS_SUMMARY)

## Resource: Invitation

Output only. Represents a pending invitation.

| JSON representation ||
|---|---|
| ``` { "name": string, "role": enum (`https://developers.google.com/my-business/reference/rest/v4/AdminRole`), // Union field `target` can be only one of the following: "targetAccount": { object (`https://developers.google.com/my-business/reference/rest/v4/accounts#Account`) }, "targetLocation": { object (`https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#TargetLocation`) } // End of list of possible types for union field `target`. } ``` |

| Fields ||
|---|---|---|
| `name` | `string` The resource name for the invitation. |
| `role` | ``enum (`https://developers.google.com/my-business/reference/rest/v4/AdminRole`)`` The invited role on the account. |
| Union field `target`. Indicates the target this invitation is for. `target` can be only one of the following: |||
| `targetAccount` | ``object (`https://developers.google.com/my-business/reference/rest/v4/accounts#Account`)`` The sparsely populated account this invitation is for. |
| `targetLocation` | ``object (`https://developers.google.com/my-business/reference/rest/v4/accounts.invitations#TargetLocation`)`` The target location this invitation is for. |

## TargetLocation

Represents a target location for a pending invitation.

| JSON representation ||
|---|---|
| ``` { "locationName": string, "locationAddress": string } ``` |

| Fields ||
|---|---|
| `locationName` | `string` The name of the location to which the user is invited. |
| `locationAddress` | `string` The address of the location to which the user is invited. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.invitations/accept (deprecated)` | Accepts the specified invitation. |
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.invitations/decline (deprecated)` | Declines the specified invitation. |
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.invitations/list (deprecated)` | Lists pending invitations for the specified account. |