Accounts: authinfo

Requires authorization

Returns information about the authenticated user. Try it now.

Request

HTTP request

GET https://www.googleapis.com/content/v2/accounts/authinfo

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

JSON

{
  "kind": "content#accountsAuthInfoResponse",
  "accountIdentifiers": [
    {
      "aggregatorId": unsigned long,
      "merchantId": unsigned long
    }
  ]
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#accountsAuthInfoResponse".
accountIdentifiers[] list The account identifiers corresponding to the authenticated user.
  • For an individual account: only the merchant ID is defined
  • For an aggregator: only the aggregator ID is defined
  • For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.
accountIdentifiers[].aggregatorId unsigned long The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount).
accountIdentifiers[].merchantId unsigned long The merchant account ID, set for individual accounts and subaccounts.

XML

<auth_info>
  (foreach)
    <account_identifier>
      <aggregator_id>
        unsigned long
      </aggregator_id>
      <merchant_id>
        unsigned long
      </merchant_id>
    </account_identifier>
  (/foreach)
</auth_info>
Property name Value Description Notes
auth_info object
auth_info/account_identifier object The account identifiers corresponding to the authenticated user.
  • For an individual account: only the merchant ID is defined
  • For an aggregator: only the aggregator ID is defined
  • For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.
auth_info/account_identifier/aggregator_id unsigned long The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount).
auth_info/account_identifier/merchant_id unsigned long The merchant account ID, set for individual accounts and subaccounts.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Content API for Shopping