accounts

POST /{merchantId}/accounts/{accountId}/link

Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.

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

merchantIdstring required

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

accountIdstring required

The ID of the account that should be linked.

Request body

linkedAccountIdstring

The ID of the linked account.

servicesstring[]

Acceptable values are: - "shoppingAdsProductManagement" - "shoppingActionsProductManagement" - "shoppingActionsOrderManagement" - "paymentProcessing"

linkTypestring

Type of the link between the two accounts. Acceptable values are: - "channelPartner" - "eCommercePlatform" - "paymentServiceProvider"

actionstring

Action to perform for this link. The "request" action is only available to select merchants. Acceptable values are: - "approve" - "remove" - "request"

Response

Successful response

kindstring

Identifies what kind of resource this is. Value: the fixed string "content#accountsLinkResponse".

Changes

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