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

サブアカウント API

コード情報アクション
validation

説明

The request failed due to validation errors

決議

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

invalid-transfers

説明

Invalid transfer

決議

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

provisioning

説明

Maximum number of sub-accounts reached

決議

If you need more subaccounts, contact Vonage Support.

internal-error

説明

An error has occurred in the platform while processing this request

決議

If the error persists, contact Vonage Support.

invalid-number-transfer

説明

Failed to perform transfer number from source account to destination account

決議

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

missing-number-transfer

説明

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

決議

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

transfer-conflict

説明

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

決議

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