APIエラー

Vonage APIがエラーを返した場合、例えばアカウントにクレジットがない場合、APIはRFC 7807フォーマットでエラーを返します。

これは、問題が何であるか、なぜそれが発生したか、それを解決するための手順の基本的な説明を提供します。クレジット不足がどのような形式で表示されるかは、例を参照してください。

アプリケーションがどのようなエラーを処理する必要があるか、前もって考えておくといいかもしれません。このページでは、発生しうるすべてのエラーのリストと、その対処方法についてのより詳細な説明を提供しています。

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>"
}

Subaccount API

CodeInformationActions
validation

Description

The request failed due to validation errors

Resolution

See the detail (and, if present, the invalid_parameters) fields for the exact reason this request was rejected and review the documentation.

invalid-transfers

Description

Invalid transfer

Resolution

See the detail field for the reason this transfer is invalid.

provisioning

Description

Maximum number of sub-accounts reached

Resolution

If you need more subaccounts, contact Vonage Support.

internal-error

Description

An error has occurred in the platform while processing this request

Resolution

If the error persists, contact Vonage Support.

invalid-number-transfer

Description

Failed to perform transfer number from source account to destination account

Resolution

See the detail field for the reason this transfer is invalid.

missing-number-transfer

Description

Could not transfer number from source account to destination account - ShortCode not found

Resolution

See the detail field for the reason this transfer is invalid.

transfer-conflict

Description

Could not transfer number from source account to destination account - ShortCode is already owned by requesting account

Resolution

See the detail field for the reason this transfer is invalid.