GetAccountPhoneList
To get a list of all phone numbers associated with a WhatsApp Business account.
Request Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | string | Value: GetAccountPhoneList. | YES |
AccountId | int | Account ID. | YES |
Request Example
{
"Action": "GetAccountPhoneList",
"AccountId": 8899
}
Response Parameters
Name | Type | Description |
---|---|---|
Action | string | GetAccountPhoneListResponse. |
RetCode | int | 0 for success. Error Codes |
Message | string | Return message. |
RequestId | string | Request id. |
Data | object | Return data. |
Data Parameters
Name | Type | Description |
---|---|---|
PhoneList | array | Phones of account. |
PhoneList Parameters
Name | Type | Description |
---|---|---|
Number | string | Phone number. |
Country | string | Phone belong country. |
Status | string | Status |
QualityRating | string | Quality |
DisplayName | string | Display name. |
MessagingLimit | string | MessagingLimit |
Response Example
{
"Action": "GetAccountPhoneListResponse",
"Data": {
"PhoneList": [
{
"Number": "447864xxxx86",
"Country": "UK",
"Status": "",
"QualityRating": "",
"DisplayName": "",
"MessagingLimit": ""
},
{
"Number": "447743xxxx87",
"Country": "UK",
"Status": "CONNECTED",
"QualityRating": "GREEN",
"DisplayName": "UCloud Information Technology (HK) Limited",
"MessagingLimit": "TIER_250"
}
]
},
"Message": "",
"RequestId": "702f7f18-c242-4612-97fd-4e41fc161fa7",
"RetCode": 0
}