API-Fehler

Wenn eine Vonage-API einen Fehler zurückgibt – beispielsweise, wenn Ihr Konto kein Guthaben mehr aufweist –, gibt die API einen Fehler im Format „ RFC 7807 “ zurück.

Hier finden Sie eine grundlegende Erläuterung des Problems, der Ursachen und der Schritte zu dessen Behebung. Sehen Sie sich das Beispiel an, um zu erfahren, wie ein „ out-of-credit “ aufgebaut ist.

Sie sollten sich wahrscheinlich schon im Vorfeld überlegen, welche Fehler Ihre Anwendung behandeln muss. Auf dieser Seite finden Sie eine Liste aller möglichen Fehler, die auftreten können, sowie eine detaillierte Erläuterung, wie diese behoben werden können.

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

Unterkonto-API

CodeInformationenMaßnahmen
validation

Beschreibung

The request failed due to validation errors

Beschluss

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

invalid-transfers

Beschreibung

Invalid transfer

Beschluss

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

provisioning

Beschreibung

Maximum number of sub-accounts reached

Beschluss

If you need more subaccounts, contact Vonage Support.

internal-error

Beschreibung

An error has occurred in the platform while processing this request

Beschluss

If the error persists, contact Vonage Support.

invalid-number-transfer

Beschreibung

Failed to perform transfer number from source account to destination account

Beschluss

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

missing-number-transfer

Beschreibung

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

Beschluss

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

transfer-conflict

Beschreibung

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

Beschluss

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