Skip to content

lead-sync

← All modules

2 endpoints.

POST /api/v1/lead-sync/sync

Sync Leads

Push every not-yet-synced qualified marketing deal to its tenant's ERP as a Lead. Reads the qualified deals from the marketing site's DB; uses this site's stored ERP credentials + tenant→ERP map.

200 — Successful Response

json
{
  "additionalProperties": true,
  "type": "object",
  "title": "Response Sync Leads Api V1 Lead Sync Sync Post"
}

GET /api/v1/lead-sync/counts

Lead Sync Counts

Counts for the marketing→ERP lead sync — qualified marketing deals vs. how many are already pushed to an ERP as Leads.

200 — Successful Response

json
{
  "additionalProperties": true,
  "type": "object",
  "title": "Response Lead Sync Counts Api V1 Lead Sync Counts Get"
}

Lubb ERP Documentation