電話驗證

電話驗證包含兩個 帳戶方法 可用來新增及驗證商家帳戶的電話號碼。 透過電話驗證提交的電話號碼取代電話號碼 像是透過這種方式提交的電話號碼 accounts.AccountBusinessInformation

強烈建議所有新舊機型都採用電話驗證 商家。您的帳戶也可能因帳戶而遭停權 狀態 問題 PENDING_PHONE_VERIFICATION。你必須驗證電話號碼。

以下是驗證電話號碼的必要步驟:

  1. 撥打 accounts.requestphoneverification 以提出電話驗證要求。
    輸入兩個字母組成的地區 程式碼
    ,瞭解如何調查及移除這項存取權。
    輸入你的電話號碼。
    ,瞭解如何調查及移除這項存取權。
    選擇驗證方法 (SMSPHONE_CALL)。
  2. 請撥打 accounts.verifyphonenumber 驗證電話號碼。
    輸入步驟 1 的verificationId
    ,瞭解如何調查及移除這項存取權。
    請輸入手機收到的 6 位數 verificationCode
    ,瞭解如何調查及移除這項存取權。
    輸入使用的 phoneVerificationMethod
    ,瞭解如何調查及移除這項存取權。
    這個呼叫會傳回 verifiedPhoneNumber。這組電話號碼現已 驗證。

您可以前往 AccountBusinessInformation.phoneVerificationStatus

accounts.requestphoneverification

如要開始進行電話號碼驗證程序,請傳送 phoneRegionCodephoneNumberphoneVerificationMethod已進入 accounts.requestphoneverification。 這個呼叫會傳回 verificationId

您可以選擇 languageCode敬上 欄位,使用預設語言 (美式英文) 進行驗證。

您可以嘗試每四次驗證相同的電話號碼最多 5 次 所以客戶只會在 TAM 當地的服務時間獲得回應

POST https://www.googleapis.com/content/v2.1/merchantId/accounts/accountId/requestphoneverification

以下是呼叫範例:

{
  "phoneRegionCode": "US",
  "phoneNumber": "phoneNumber",
  "phoneVerificationMethod": "SMS",
  "languageCode": "en-US"
}

回應範例如下:

{
  "verificationId": "2-47b7ef80ff494daf8079f4808e750dcb-1626331725036"
}

accounts.verifyphonenumber

傳送 verificationId,驗證帳戶的電話號碼: accounts.requestphoneverification,已傳送 6 位數的 verificationCode 到您的 和您使用的 phoneVerificationMethod (例如 SMS) 傳入 accounts.verifyphonenumber。 這個呼叫會以您所在區域的標準 FMV 傳回經過驗證的電話號碼。

您的初始驗證要求會在 15 分鐘後失效。之後 必須先提出新的電話驗證要求,才能撥打電話 accounts.verifyphonenumber

POST https://www.googleapis.com/content/v2.1/merchantId/accounts/accountId/verifyphonenumber

以下是呼叫範例:

{
  "verificationId": "verificationId",
  "verificationCode": "verificationCode",
  "phoneVerificationMethod": "SMS"
}

回應範例如下:

{
  "verifiedPhoneNumber": "(123) 456-7890"
}

AccountBusinessInformation.phoneVerificationStatus

您可以前往 AccountBusinessInformation.phoneVerificationStatus敬上 ] 欄位。

accounts.get 方法搭配 可查看帳戶的accountIdmerchantId 商家資訊

GET https://www.googleapis.com/content/v2.1/v2.1/merchantId/accounts/accountId