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
| Naam | Type | Beschrijving |
|---|
reason | string | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
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 |