API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la 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.

Modèle de données

Cette opération porte sur l'entité Invoice (invoice). Les 51 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

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

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche