REST-API

Header: Authorization: Bearer crm_… · Antworten als JSON · Beträge in CHF

MethodePfadBeschreibung
GETcustomersKunden (Parameter: search, limit, offset)
GETcustomers/{id}Einzelner Kunde inkl. Kontaktpersonen
POSTcustomersKunde anlegen (company, first_name, last_name, email, street, zip, city, country, customer_no …)
GETdocumentsBelege (type=invoice|quote|order|delivery|credit, status, customer_id)
GETdocuments/{id}Beleg inkl. Positionen, Zahlungen, Online-Link
POSTdocumentsBeleg anlegen: {type, customer_id, title, items:[{description, qty, price, vat_rate, unit, discount}], finalize, send}
POSTpaymentsZahlung erfassen: {document_id, amount, date, method}
GETtransactionsEinnahmen/Ausgaben (from, to, type)
POSTtransactionsBuchung anlegen: {type: income|expense, date, description, category, amount, vat_rate}
GETproductsArtikel

Neu: REST-API v2 mit allen Modulen, Webhooks und vollständiger Dokumentation: https://crm.serv24-it.ch/api/v2/docs

Beispiel (v1):

curl -H "Authorization: Bearer crm_…" "https://crm.serv24-it.ch/api.php?r=documents&type=invoice&status=open"