- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- VerificationOption
- AddressVerificationData
- EmailVerificationData
Reports all eligible verification options for a location in a specific language.
HTTP request
POST https://mybusinessverifications.googleapis.com/v1/{location=locations/*}:fetchVerificationOptions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
location |
Required. The location to verify. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"languageCode": string,
"context": {
object ( |
Fields | |
---|---|
languageCode |
Required. The BCP 47 language code representing the language that is to be used for the verification process. Available options vary by language. |
context |
Optional. Extra context information for the verification of service businesses. Can only be applied to the locations whose business type is CUSTOMER_LOCATION_ONLY. Specifying an accurate address could enable more options. INVALID_ARGUMENT will be thrown if it is set for other business types of locations. |
Response body
Response message for Verifications.FetchVerificationOptions.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"options": [
{
object ( |
Fields | |
---|---|
options[] |
The available verification options. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.
VerificationOption
The verification option represents how to verify the location (indicated by verification method) and where the verification will be sent to (indicated by display data).
JSON representation |
---|
{ "verificationMethod": enum ( |
Fields | |
---|---|
verificationMethod |
Method to verify the location. |
Union field DisplayData . One of the display data. The data must match the method. Empty if the corresponding method doesn't have any display data. DisplayData can be only one of the following: |
|
phoneNumber |
Set only if the method is PHONE_CALL or SMS. Phone number that the PIN will be sent to. |
addressData |
Set only if the method is MAIL. |
emailData |
Set only if the method is EMAIL. |
announcement |
Set only if the method is VETTED_PARTNER. |
AddressVerificationData
Display data for verifications through postcard.
JSON representation |
---|
{
"business": string,
"address": {
object ( |
Fields | |
---|---|
business |
Merchant's business name. |
address |
Address that a postcard can be sent to. |
expectedDeliveryDaysRegion |
Expected number of days it takes to deliver a postcard to the address's region. |
EmailVerificationData
Display data for verifications through email.
JSON representation |
---|
{ "domain": string, "user": string, "isUserNameEditable": boolean } |
Fields | |
---|---|
domain |
Domain name in the email address. e.g. "gmail.com" in foo@gmail.com |
user |
User name in the email address. e.g. "foo" in foo@gmail.com |
isUserNameEditable |
Whether client is allowed to provide a different user name. |