Rechnungs-Details aktualisieren
Aktualisiert Rechnungsinformationen der Organisation aus deiner authentifizierten Session.
PATCH /api/organization/billing
Anfrage (Request Body)
{
"billingEmail": "billing@example.com"
}Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"
curl -X PATCH "$BASE_URL/api/organization/billing" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"billingEmail": "billing@example.com"
}'Hinweise
- Dieses Endpoint akzeptiert aktuell nur
billingEmail. - Die Organisation wird automatisch aus deiner authentifizierten Session bzw. deinem API-Token abgeleitet.
- Die Legacy-Route
PATCH /api/organizations/:organizationPublicId/billingbleibt aus Kompatibilitätsgründen weiterhin verfügbar. - Der plurale org-lose Alias
PATCH /api/organizations/billingwird ebenfalls unterstützt. - Global Admins brauchen für die org-lose Route einen aktiven Organisationskontext in der Session.
Häufige Fehler
400 Invalid request bodywenn der Payload nicht zum Schema passt400 Organization ID is required in the authenticated sessionwenn aus Session/Token keine Organisation abgeleitet werden kann401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keine Admin-Berechtigung zum Aktualisieren der Rechnungsinformationen hast
Antwort (Response)
Gibt die aktualisierten Rechnungsdetails zurück. Siehe Fehlerliste für Fehlerantworten.