Mengambil status verifikasi nomor telepon.
Deskripsi operasi
-
You can call this operation to retrieve the verification status of a phone number. You can also view the status on the Channel Management > Manage > WABA Management > Phone Number Management page.
-
Before calling this operation, add a phone number to your WhatsApp Business Account (WABA) and submit it for verification.
-
If you have not added a phone number to your WABA, call the GetChatappVerifyCode and ChatappVerifyAndRegister APIs to obtain a verification code and register the number.
This operation allows a maximum of 10 requests per second per account. Excess requests are throttled, which may affect your business. Stay within the specified limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:GetPhoneNumberVerificationStatus |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PhoneNumber |
string |
Yes |
Nomor telepon. Anda dapat melihat nomor telepon di halaman Channel Management > Manage > WABA Management > Phone Number Management. |
86138009**** |
| CustSpaceId |
string |
Yes |
ID Space sub-pelanggan Independent Software Vendor (ISV) atau ID instans pelanggan langsung. Anda dapat melihat ID Space di halaman Channel Management. |
cams-kei**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2D |
| Message |
string |
The error message. |
None |
| Data |
object |
The returned data. |
|
| CodeVerificationStatus |
string |
The verification status. |
VERIFIED |
| PhoneNumber |
string |
The phone number. |
861390000**** |
| Id |
string |
The ID of the phone number. |
222434**** |
| Code |
string |
The request status code.
|
OK |
Contoh
Respons sukses
JSONformat
{
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2D",
"Code": "OK",
"Message": "None",
"Data": {
"PhoneNumber": "861390000****",
"Id": "222434****",
"CodeVerificationStatus": "VERIFIED"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Product.Unsubscript | You have not subscribed to the specified product. | |
| 400 | Ram.PermissionDeny | You are not authorized to perform the operation. | |
| 400 | System.LimitControl | The system is under flow control. | |
| 400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.