API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen

POST /v1/invoices/{id}/post

POST/v1/invoices/{id}/post

Post (lock) an invoice. Transitions DRAFT → POSTED, freezes the recipient address snapshot, stamps bookingDate, and computes a SHA-256 content hash. After posting only status/dunning/pdfFileId may change (GoBD revisionssicher).

Datenmodell

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

Request Body

NameTypBeschreibung
bookingDatestring<date>Buchungsdatum (defaults to today)

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

curl -X POST https://api.codemeta-os.de/v1/invoices/{id}/post \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "bookingDate": "string"
}'
const result = await cm.invoices.post({
  "bookingDate": "string"
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche