API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

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.

Data model

This operation works on the entity Invoice (invoice). All 51 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
fullbooleanIgnore the lastSyncAt watermark and re-pull every invoice.

Example

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

Response codes

HTTP Meaning
200 Default Response

Search