POST /v1/invoices/sync-from-weclapp
POST/v1/invoices/sync-from-weclapp
Pull all (or modified-since-last-sync) salesInvoices from weclapp into the local invoices collection. Idempotent. Weclapp is master: imported invoices are read-only.
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 |
|---|---|---|
full | boolean | Ignore the lastSyncAt watermark and re-pull every invoice. |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/invoices/sync-from-weclapp \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"full": false
}'const result = await cm.invoices.post({
"full": false
});Antwoordcodes
| HTTP | Betekenis |
|---|---|
200 |
Default Response |