APIエラー

Vonage API がエラーを返した場合、たとえばアカウントの残高がない場合など、API はRFC 7807 形式のエラーを返します。

ここでは、問題の内容、発生原因、および解決手順について基本的な説明を行います。out-of-credit の書式については、例をご覧ください。

アプリケーションでどのようなエラーに対処する必要があるかを、あらかじめ検討しておくことをお勧めします。このページでは、発生しうるすべてのエラーの一覧と、それらへの対処方法についてより詳しく説明しています。

HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
Content-Language: en
{
  "type": "https://example.com/Error#out-of-credit",
  "title": "You do not have enough credit",
  "detail": "Your current balance is 30, but that costs 50.",
  "instance": "<trace_id>"
}

WhatsAppのプロビジョニング

コード情報
number-in-use

説明

Cannot use number because it's already in use by another deployment.

決議

Use the existing deployment.

invalid-json

説明

The request body did not contain valid JSON

決議

Send a JSON request body, including a Content-Type header of application/json

unprocessable

説明

Parameters were valid JSON but something was missing or wrongly formatted

決議

Fix the incorrect request parameters and try again

unprocessable-profile-update

説明

Parameters were valid JSON but something was missing or wrongly formatted

決議

Fix the incorrect request parameters and try again

throttled

説明

Too many requests have been made on this endpoint

決議

Wait a moment and try again

verification-failed

説明

Verification step failed. Either because the provided code was incorrect or because too many attempts have been made

決議

Try again with the correct OTP, or call resend-otp

conflict-deployment-state

説明

Deployment could not be modified because it is currently in a transitional state.

決議

If the deployment is transitioning into the state you want it in no action is required. If the state is DELETING, no action is required as the deployment will be deleted. Otherwise, wait for the transition to complete and try again.

conflict-resend-otp

説明

Could not resend OTP because the current state of the deployment did not allow it

決議

The deployment has either already finished, or is in an error state (in which case you should delete it and run it again).