Rechnungsprofil abrufen

Rechnungsprofil der Organisation und Mollie-Konfiguration für Testrechnungen abrufen

GET https://tokenlane.de/api/credits/billing

Authentifizierung

[ [ { "name": "Authorization", "description": "Management-Key der Organisation: Authorization: Bearer sk-tl-v1-…. Bestehende sk-eu--Keys bleiben gültig. Erforderliche Scopes stehen in x-scopes; Inferenz-Keys berechtigen nicht zu Verwaltungsoperationen.", "type": "http bearer", "location": "", "scopes": [] } ] ]

curl

curl --request GET \
  --url 'https://tokenlane.de/api/credits/billing' \
  --header 'Authorization: Bearer YOUR_API_KEY'

node

const response = await fetch("https://tokenlane.de/api/credits/billing", {
  method: "GET",
  headers: {
    "Authorization": "Bearer " + process.env.TOKENLANE_API_KEY,
  },
});
console.log(await response.text());

python

import os
import urllib.request

request = urllib.request.Request(
    "https://tokenlane.de/api/credits/billing",
    method="GET",
    headers={
        "Authorization": "Bearer " + os.environ["TOKENLANE_API_KEY"],
    },
)

with urllib.request.urlopen(request) as response:
    print(response.read().decode("utf-8"))

vercel

// This operation uses HTTP directly.
const response = await fetch("https://tokenlane.de/api/credits/billing", {
  method: "GET",
  headers: {
    "Authorization": "Bearer " + process.env.TOKENLANE_API_KEY,
  },
});
console.log(await response.text());

Antwort 200: application/json

Anfrage erfolgreich

{
  "profile": {
    "name": "YOUR_NAME",
    "street": "YOUR_STREET",
    "zip": "YOUR_ZIP",
    "city": "YOUR_CITY",
    "countryCode": "YOUR_COUNTRYCODE",
    "email": "YOUR_EMAIL",
    "vatNumber": "YOUR_VATNUMBER"
  },
  "invoicingAvailable": false
}

s29: object

{}

  • profile (Pflichtfeld): s92

s92: object | null

{}

  • name (Pflichtfeld): s159

s159: string

{"minLength":"1","maxLength":"200"}

  • street (Pflichtfeld): s159
  • zip (Pflichtfeld): s35

s35: string

{}

  • city (Pflichtfeld): s160

s160: string

{"minLength":"1","maxLength":"100"}

  • countryCode (Pflichtfeld): s35
  • email (Pflichtfeld): s87

s87: string | null

{}

  • vatNumber (Pflichtfeld): s87
  • invoicingAvailable (Pflichtfeld): s89

s89: boolean

{}

Antwort 400: application/json

Ungültige Anfrage: Validierungsfehler oder ungültige Eingabe.

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

s11: object

{}

  • requestId (optional): s56

s56: string

Serverseitige Zuordnungs-ID für einen internen Fehler. Auch in X-Request-Id enthalten.

uuid

{}

  • status (Pflichtfeld): s57

s57: number

HTTP-Statuscode

{}

400
  • code (Pflichtfeld): s58

s58: string

Fehlercode

{}

"VALIDATION_ERROR"
  • message (Pflichtfeld): s59

s59: string

Fehlermeldung

{}

"Request validation failed"
  • remedy_hint (optional): s60

s60: string

Sichere, ausführbare Abhilfe aus dem Fehlerkatalog.

{}

  • details (optional): s61

s61: array

Detaillierte Validierungsfehler

{}

s154: object

{}

  • path (Pflichtfeld): s179

s179: string

Feldpfad

{}

"title"
  • message (Pflichtfeld): s180

s180: string

Fehlermeldung zum Feld

{}

"Required"

Antwort 401: application/json

Authentifizierung erforderlich: Zugangsdaten fehlen oder sind ungültig.

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 403: application/json

Unzureichender Scope (authentifiziert, aber nicht berechtigt) | Diese Sitzung darf nur die Sicherheitseinrichtung aufrufen, bis der erforderliche Faktor verifiziert ist

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 404: application/json

Ressource nicht gefunden

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 409: application/json

Konflikt mit dem aktuellen Zustand, beispielsweise ein bereits vorhandener Name.

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 429: application/json

Nach der angegebenen Wartezeit erneut versuchen

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 500: application/json

Interner Serverfehler

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}

Antwort 503: application/json

Konfigurierter Upstream hat das Zeitlimit überschritten, ist fehlgeschlagen oder hat eine ungültige Antwort geliefert.

{
  "status": 400,
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}