list_clients
Lecture seule
List clients with pagination, search and filters
get_client
Lecture seule
Get full details of a client by ID
create_client
Écriture
Create a new client
update_client
Écriture
Update an existing client
sync_clients
Écriture — service externe
Synchronise clients from connected platforms (Stripe, Shopify, PayPal, PrestaShop). Returns a summary of how many clients were synced per platform.
delete_client
Écriture — destructif
Delete a client by ID
get_client_stats
Lecture seule
Get revenue and invoice statistics for a specific client
get_client_invoices
Lecture seule
Get all invoices for a specific client
search_business
Lecture seule
Search the French company registry (annuaire des entreprises gouv.fr) by SIRET, SIREN or company name. Returns legal name, SIREN/SIRET, APE code, VAT number (computed), address, and director. Use this to pre-fill a B2B client before creating it, or to find a SIRET to enrich an existing client.
create_business_client
Écriture
Create a B2B (business) client. An email is required (used as unique key). Provide the business identity (legalName, siret, vatNumber…) — tip: call search_business first to get accurate data. Optionally add multiple contacts (accounting, purchasing…) and payment terms (delayDays, creditLimit).
Addresses if you already have them (e.g. extracted from a business card). If omitted AND a SIRET is provided, the billing address is auto-fetched from the registry.
enrich_client_from_siret
Écriture
Turn an existing client into a B2B client by enriching it from a SIRET via the French company registry. Fills legalName, SIREN, VAT, APE, legal form, and adds the director as primary contact (if no manual contact exists). Preserves manually-entered contacts and payment terms.