accounts

POST /{merchantId}/accounts/{accountId}/verifyphonenumber

Validates verification code to verify phone number for the account. If successful this will overwrite the value of accounts.businessinformation.phoneNumber. Only verified phone number will replace an existing verified phone number.

Request

  • Base URL
    https://shoppingcontent.googleapis.com/content/v2.1
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/content
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/content
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

merchantIdstring required

Required. The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

accountIdstring required

Required. The ID of the account.

Request body

verificationIdstring

The verification ID returned by requestphoneverification.

verificationCodestring

The verification code that was sent to the phone number for validation.

phoneVerificationMethod'PHONE_VERIFICATION_METHOD_UNSPECIFIED' | 'SMS' | 'PHONE_CALL'

Verification method used to receive verification code.

Response

Successful response

verifiedPhoneNumberstring

Verified phone number if verification is successful. This phone number can only be replaced by another verified phone number.

Changes

No recorded changes to this operation across all 1 revision of this API.