- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- AccountsLinkRequest
- PaymentServiceProviderLinkInfo
- ECommercePlatformLinkInfo
- Try it!
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/{accountId}/link
Path parameters
Parameters | |
---|---|
merchant |
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 |
account |
The ID of the account that should be linked. |
Request body
The request body contains an instance of AccountsLinkRequest
.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "kind": string } |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string " |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
AccountsLinkRequest
JSON representation |
---|
{ "action": string, "linkedAccountId": string, "linkType": string, "services": [ string ], "paymentServiceProviderLinkInfo": { object ( |
Fields | |
---|---|
action |
Action to perform for this link. The Acceptable values are:
|
linked |
The ID of the linked account. |
link |
Type of the link between the two accounts. Acceptable values are:
|
services[] |
Acceptable values are:
|
payment |
Additional information required for |
e |
Additional information required for |
PaymentServiceProviderLinkInfo
Additional information required for PAYMENT_SERVICE_PROVIDER link type.
JSON representation |
---|
{ "externalAccountId": string, "externalAccountBusinessCountry": string } |
Fields | |
---|---|
external |
The id used by the third party service provider to identify the merchant. |
external |
The business country of the merchant account as identified by the third party service provider. |
ECommercePlatformLinkInfo
Additional information required for E_COMMERCE_PLATFORM link type.
JSON representation |
---|
{ "externalAccountId": string } |
Fields | |
---|---|
external |
The id used by the third party service provider to identify the merchant. |