API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/material-buckets/{id}/bill

POST/v1/material-buckets/{id}/bill

Create a draft invoice from a closed material bucket, or append items to an existing draft invoice

Datamodel

Deze operatie werkt op de entiteit Material Bucket (material_bucket). Alle 17 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

Request body

NaamTypeBeschrijving
partyIdvereiststring
unitPricestringDefault unit price per item (decimal string). Omit to use 0.00.
vatRatestring
paymentTermsDaysinteger
titlestring
existingInvoiceIdstringAppend items to this existing DRAFT invoice instead of creating a new one

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

curl -X POST https://api.codemeta-os.de/v1/material-buckets/{id}/bill \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "partyId": "string",
  "unitPrice": "string",
  "vatRate": "19",
  "paymentTermsDays": 0,
  "title": "string",
  "existingInvoiceId": "string"
}'
const result = await cm.material-buckets.post({
  "partyId": "string",
  "unitPrice": "string",
  "vatRate": "19",
  "paymentTermsDays": 0,
  "title": "string",
  "existingInvoiceId": "string"
});

Antwoordcodes

HTTP Betekenis
201 Default Response

Zoeken