Generates a token for the provided location data as a vetted partner.
Throws PERMISSION_DENIED if the caller is not a vetted partner account. Throws FAILED_PRECONDITION if the caller's VettedStatus is INVALID.
HTTP request
POST https://mybusinessverifications.googleapis.com/v1/verificationTokens:generate
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"location": {
object ( |
Fields | |
---|---|
location |
Required. The target location. Note: The location information should exactly match the target Location, otherwise the generated verification token won't be able to verify the target Location. |
Response body
If successful, the response body contains data with the following structure:
Response message for Verifications.GenerateVerificationToken.
JSON representation |
---|
{
"token": {
object ( |
Fields | |
---|---|
token |
The generated token to verify the location. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.
Location
A subset of location info. See the help center article for a detailed description of these fields, or the category endpoint for a list of valid business categories.
JSON representation |
---|
{
"name": string,
"primaryPhone": string,
"address": {
object ( |
Fields | |
---|---|
name |
Required. Location name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers. Any additional information, when relevant, can be included in other fields of the resource (for example, |
primaryPhone |
Optional. A phone number that connects to your individual business location as directly as possible. Use a local phone number instead of a central, call center helpline number whenever possible. |
address |
Required. A precise, accurate address to describe your business location. PO boxes or mailboxes located at remote locations are not acceptable. At this time, you can specify a maximum of five |
primaryCategoryId |
Required. Id of the category that best describes the core business this location engages in. e.g. gcid:bakery. |
websiteUri |
Optional. A URL for this business. If possible, use a URL that represents this individual business location instead of a generic website/URL that represents all locations, or the brand. |