accounts

POST /accounts/{accountId}/credentials

Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.

Request

  • Base URL
    https://shoppingcontent.googleapis.com/content/v2.1
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/content
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/content
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

accountIdstring required

Required. The merchant id of the account these credentials belong to.

Request body

purpose'ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED' | 'SHOPIFY_ORDER_MANAGEMENT' | 'SHOPIFY_INTEGRATION'

Indicates to Google how Google should use these OAuth tokens.

expiresInstring int64

The amount of time, in seconds, after which the access token is no longer valid.

accessTokenstring

An OAuth access token.

Response

Successful response

purpose'ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED' | 'SHOPIFY_ORDER_MANAGEMENT' | 'SHOPIFY_INTEGRATION'

Indicates to Google how Google should use these OAuth tokens.

expiresInstring int64

The amount of time, in seconds, after which the access token is no longer valid.

accessTokenstring

An OAuth access token.

Changes

No recorded changes to this operation across all 1 revision of this API.