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

POST /v1/invoices/{id}/credit

POST/v1/invoices/{id}/credit

Create a credit note (Gutschrift) for an invoice

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
reasonstring

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

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

Antwortcodes

HTTP Bedeutung
201 Default Response

Suche