Erreurs de l'API

Lorsqu'une API de Vonage renvoie une erreur, par exemple si votre Account n'a pas de crédit, l'API renvoie une erreur au format RFC 7807.

Il s'agit d'une explication de base du problème, de sa cause et des mesures à prendre pour le résoudre. Consultez l'exemple pour voir comment un out-of-credit est formaté.

Cette page fournit une liste de toutes les erreurs possibles qui peuvent se produire, ainsi qu'une explication plus détaillée de la manière dont elles peuvent être traitées.

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 Subaccounts

CodeInformationsActions
validation

Description

The request failed due to validation errors

Résolution

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

Résolution

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

provisioning

Description

Maximum number of sub-accounts reached

Résolution

If you need more subaccounts, contact Vonage Support.

internal-error

Description

An error has occurred in the platform while processing this request

Résolution

If the error persists, contact Vonage Support.

invalid-number-transfer

Description

Failed to perform transfer number from source account to destination account

Résolution

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

Résolution

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

Résolution

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