API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

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).

Datamodel

Deze operatie werkt op de entiteit Invoice (invoice). Alle 51 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

Request body

NaamTypeBeschrijving
bookingDatestring<date>Buchungsdatum (defaults to today)

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

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"
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken