# REST Resource: accounts.credentials

- [Resource: AccountCredentials](https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#AccountCredentials)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#AccountCredentials.SCHEMA_REPRESENTATION)
- [AccountCredentialsPurpose](https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#AccountCredentialsPurpose)
- [Methods](https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#METHODS_SUMMARY)

## Resource: AccountCredentials

Credentials allowing Google to call a partner's API on behalf of a merchant.

| JSON representation |
|---|
| ``` { "purpose": enum (`https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#AccountCredentialsPurpose`), "accessToken": string, "expiresIn": string } ``` |

| Fields ||
|---|---|
| `purpose` | ``enum (`https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials#AccountCredentialsPurpose`)`` Indicates to Google how Google should use these OAuth tokens. |
| `accessToken` | `string` An OAuth access token. |
| `expiresIn` | `string (https://developers.google.com/discovery/v1/type-format format)` The amount of time, in seconds, after which the access token is no longer valid. |

## AccountCredentialsPurpose

The purpose of a set of credentials.

| Enums ||
|---|---|
| `ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED` | Unknown purpose. |
| `SHOPIFY_ORDER_MANAGEMENT` | The credentials allow Google to manage Shopify orders on behalf of the merchant (deprecated). > [!WARNING] > This item is deprecated! |
| `SHOPIFY_INTEGRATION` | The credentials allow Google to manage Shopify integration on behalf of the merchant. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/accounts.credentials/create` | Uploads credentials for the Merchant Center account. |