Errores de la API

Cuando una API de Vonage devuelve un error —por ejemplo, si tu cuenta no tiene saldo—, la API devolverá un error con el formato « RFC 7807 ».

Aquí se ofrece una explicación básica de en qué consiste el problema, por qué se ha producido y los pasos a seguir para resolverlo. Echa un vistazo al ejemplo para ver cómo se estructura un informe de « out-of-credit ».

Probablemente te interese plantearte desde el principio qué errores tendrá que gestionar tu aplicación; en esta página encontrarás una lista de todos los errores posibles que podrían producirse, junto con una explicación más detallada de cómo se pueden resolver.

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 de subcuentas

CódigoInformaciónAcciones
validation

Descripción

The request failed due to validation errors

Resolución

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

invalid-transfers

Descripción

Invalid transfer

Resolución

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

provisioning

Descripción

Maximum number of sub-accounts reached

Resolución

If you need more subaccounts, contact Vonage Support.

internal-error

Descripción

An error has occurred in the platform while processing this request

Resolución

If the error persists, contact Vonage Support.

invalid-number-transfer

Descripción

Failed to perform transfer number from source account to destination account

Resolución

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

missing-number-transfer

Descripción

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

Resolución

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

transfer-conflict

Descripción

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

Resolución

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