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

10 API de DLC

CódigoInformación
brand-conflict

Descripción

A conflict when a brand is being created or edited and there is an issue with a 3rd party vendor.

Resolución

Ensure all required fields have values and there are no errors in those values. If the error persists, contact support.

brand-parameters

Descripción

There are errors in the brand data submitted.

Resolución

Ensure all required fields have values included and correct any errors to values in the specified fields.

invalid-usecase-data

Descripción

There are errors in the data submitted for use case qualification.

Resolución

Ensure all required fields have values included and correct any errors to values in the specified fields.

use-case-denied

Descripción

The use case requested has been denied for this brand.

Resolución

Ensure your use case does not require additional brand vetting or pre/post Mobile Network Operator approval.

vetting-conflict

Descripción

A conflict during the brand vetting request has occurred.

Resolución

If the error persists, contact support.

invalid-vetting-data

Descripción

There are errors in the vetting request data submitted.

Resolución

Ensure all required fields have values and correct any errors to values in the specified fields.

invalid-json

Descripción

Your request cannot be parsed.

Resolución

Ensure there are no invalid characters or values in your request.

brand-not-qualified

Descripción

A conflict when a campaign is being created under a brand that hasn't qualified for the specified use case.

Resolución

Verify the brand use case qualifies before submitting the campaign.

invalid-campaign-data

Descripción

There are errors in the campaign data submitted.

Resolución

Ensure all required fields have values and correct any errors to values in the specified fields.

numbers-already-linked

Descripción

The number you are attempting to link is already linked to another campaign.

Resolución

You must link a unique number to a campaign. Link a different number to this campaign.

invalid-number-data

Descripción

There are errors in the number data submitted.

Resolución

Ensure all required fields have values and correct any errors to values in the specified fields.