API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

Replace platform_invoice

PUT/v1/platform_invoices/{id}

Full replace with optimistic locking.

Datenmodell

Diese Operation arbeitet auf der Entität Platform Invoice (platform_invoice). Alle 29 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

  • Pflichtfelder: kind, periodFrom, periodTo, status, currency
  • Server-verwaltet: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, stripeInvoiceId, weclappId, invoiceNumber, pdfFileId, kind, periodFrom, periodTo, netCents, vatCents, grossCents, items, status, issuedAt, paidAt, sendAttempts — diese Felder vergibt die Plattform; im Request werden sie verworfen.

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

curl -X PUT https://api.codemeta-os.de/v1/platform_invoices/{id} \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.platform_invoices.put();

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche