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

10 DLC API

CodeInformations
brand-conflict

Description

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

Résolution

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

brand-parameters

Description

There are errors in the brand data submitted.

Résolution

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

invalid-usecase-data

Description

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

Résolution

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

use-case-denied

Description

The use case requested has been denied for this brand.

Résolution

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

vetting-conflict

Description

A conflict during the brand vetting request has occurred.

Résolution

If the error persists, contact support.

invalid-vetting-data

Description

There are errors in the vetting request data submitted.

Résolution

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

invalid-json

Description

Your request cannot be parsed.

Résolution

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

brand-not-qualified

Description

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

Résolution

Verify the brand use case qualifies before submitting the campaign.

invalid-campaign-data

Description

There are errors in the campaign data submitted.

Résolution

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

numbers-already-linked

Description

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

Résolution

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

invalid-number-data

Description

There are errors in the number data submitted.

Résolution

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