API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/invoices/{id}/credit

POST/v1/invoices/{id}/credit

Create a credit note (Gutschrift) for an invoice

Datamodel

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

Request body

NaamTypeBeschrijving
reasonstring

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

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

Antwoordcodes

HTTP Betekenis
201 Default Response

Zoeken