Rechnungs-Details abrufen
Gibt Rechnungsinformationen und Zahlungsmethoden der Organisation aus deiner authentifizierten Session zurück.
GET /api/organization/billing
Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"
curl -X GET "$BASE_URL/api/organization/billing" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Hinweise:
- Die Organisation wird automatisch aus deiner authentifizierten Session bzw. deinem API-Token abgeleitet.
- Die Legacy-Route
GET /api/organizations/:organizationPublicId/billingbleibt aus Kompatibilitätsgründen weiterhin verfügbar. - Der plurale org-lose Alias
GET /api/organizations/billingwird ebenfalls unterstützt. - Global Admins brauchen für die org-lose Route einen aktiven Organisationskontext in der Session.
Antwort (Response)
{
"billingEmail": "billing@deinkunde.com",
"paymentMethod": "mollie"
}Häufige Fehler
400 Organization ID is required in the authenticated sessionwenn aus Session/Token keine Organisation abgeleitet werden kann401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keinen Zugriff auf die Organisation hast