AI-generated Key Takeaways
-
This endpoint returns information about the authenticated user, such as account identifiers and kind.
-
Requires authorization with the
https://www.googleapis.com/auth/content
scope. -
The response includes account identifiers, which can vary depending on the type of account (individual, aggregator, or subaccount).
-
AccountIdentifier object provides details about the aggregator ID and merchant ID associated with the user.
Returns information about the authenticated user.
HTTP request
GET https://shoppingcontent.googleapis.com/content/v2.1/accounts/authinfo
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"accountIdentifiers": [
{
object ( |
Fields | |
---|---|
accountIdentifiers[] |
The account identifiers corresponding to the authenticated user.
|
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.
AccountIdentifier
JSON representation |
---|
{ "aggregatorId": string, "merchantId": string } |
Fields | |
---|---|
aggregatorId |
The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount). |
merchantId |
The merchant account ID, set for individual accounts and subaccounts. |