Version v2 of the Content API is scheduled for sunset on September 30th, 2021. Onboarding to v2 will stop on April 30, 2021. To avoid disruptions with your integration, please migrate to v2.1 as soon as possible.

For more information, see Migrating to v2.1 and this blog post.

REST Resource: accounts.credentials

Resource: AccountCredentials

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

JSON representation
{
  "purpose": enum (AccountCredentialsPurpose),
  "accessToken": string,
  "expiresIn": string
}
Fields
purpose

enum (AccountCredentialsPurpose)

Indicates to Google how Google should use these OAuth tokens.

accessToken

string

An OAuth access token.

expiresIn

string (int64 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.

Methods

create

Uploads credentials for the Merchant Center account.