Method: accounts.developerRegistration.registerGcp

Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developerEmail" as a contact with "API notifications" email preference on.

HTTP request

POST https://merchantapi.googleapis.com/accounts/v1/{name=accounts/*/developerRegistration}:registerGcp

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

Request body

The request body contains data with the following structure:

JSON representation
{
  "developerEmail": string
}
Fields
developerEmail

string

Immutable. If the developer email provided is associated with a user in the merchant account provided, the user will be updated to have "API developer" access type and the email preference corresponding to that user will be updated to have the new "API notifications" preference. If the developer email provided is not associated with any user we will just add it as a contact. The email preference corresponding to that contact will have the new "API notifications" preference. Make sure the email used is associated with a Google Account (Google Workspace account or Gmail account) and is not a service account as service accounts can't receive emails.

Response body

If successful, the response body contains an instance of DeveloperRegistration.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.