API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · fuel_cards

Fuel Card Schema

ID du schéma
fuel_card
Collection
fuel_cards
Autorisations
  • Lirefuel_card_view
  • Créerfuel_card_create
  • Modifierfuel_card_edit
  • Supprimerfuel_card_delete

Champs

Fuel Card Schema

fuel_cards4 autorisations

Schema for validating fuel card / Tankkarte entities

cardNumberstringobligatoire

Card number / Kartennummer

1–50 caractères
providerstringobligatoire

Card provider (e.g. Aral, Shell, DKV, UTA)

1–200 caractères
assignedVehicleIduuidfacultatif

Assigned vehicle ID

nullable
assignedDriverIduuidfacultatif

Assigned fleet driver ID

nullable
statusstringfacultatif

Card status

ACTIVEBLOCKEDEXPIREDCANCELLED
Par défaut : "ACTIVE"
monthlyLimitstringfacultatif

Monthly spending limit in EUR

Motifnullable
expiryDatedatefacultatif

Card expiry date

nullable
cardTypestringfacultatif

Card type classification

FLEETDRIVERPOOL
Par défaut : "FLEET"
cardNamestringfacultatif

Card name / Kartenname

max. 100 caractèresnullable
pinstringfacultatif

Card PIN (stored for fleet manager reference)

max. 20 caractèresnullable
internalCommentstringfacultatif

Internal comment / Interner Kommentar

max. 2000 caractèresnullable
notesstringfacultatif

Additional notes

max. 2000 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/fuel_cards — Liste, paginée et filtrable
  • GET /api/v1/fuel_cards/<id> — Une entité
  • POST /api/v1/fuel_cards — Créer
  • PATCH /api/v1/fuel_cards/<id> — Mise à jour partielle
  • DELETE /api/v1/fuel_cards/<id> — Suppression logique
  • GET /api/v1/fuel_cards/<id>/timeline — Audit et activités

Recherche