API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

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

Data model

This operation works on the entity Invoice (invoice). All 51 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
bookingDatestring<date>Buchungsdatum (defaults to today)

Path parameters

NameTypeDescription
idrequiredstring

Example

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

Response codes

HTTP Meaning
200 Default Response

Search