Документация Превышены ограничения на тарифеДля получения данного типа уведомления необходимо включить настройки в личном кабинете или методом SetSettings:" incomingBlockWebhook": "yes" "incomingWebhook": "yes"
Request
Body Params application/json
typeWebhook
string
required
instanceData
object
required
idInstance
integer
required
wid
string
required
typeInstance
string
required
quotaData
object
required
method
string
required
used
integer
required
total
integer
required
status
string
required
description
string
required
Example
{"typeWebhook":"quotaExceeded","instanceData":{"idInstance":1101000001,"wid":"71231234567@c.us","typeInstance":"whatsapp"},"quotaData":{"method":"correspondents","used":3,"total":3,"status":"CORRESPONDENTS_QUOTA_EXCEEDED","description":"Monthly quota has been exceeded. You can only send or receive messages from following chats: 10001234560@c.us, 10001234561@c.us, 10001234562@c.us. Please go to your personal account and change the tariff to business https://console.green-api.com"}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/' \
--header'Content-Type: application/json' \
--data-raw'{
"typeWebhook": "quotaExceeded",
"instanceData": {
"idInstance": 1101000001,
"wid": "71231234567@c.us",
"typeInstance": "whatsapp"
},
"quotaData": {
"method": "correspondents",
"used": 3,
"total": 3,
"status": "CORRESPONDENTS_QUOTA_EXCEEDED",
"description": "Monthly quota has been exceeded. You can only send or receive messages from following chats: 10001234560@c.us, 10001234561@c.us, 10001234562@c.us. Please go to your personal account and change the tariff to business https://console.green-api.com"
}
}'