Developers
Reference · CRM

Leads

List leads #

GET/api/public/v1/quosuite/crm/leads
Scope : crm_leads:readlistCrmLeads

Filter by status, source, owner, exact email (deduplicate before creating) and text. Page or cursor pagination (limit, cursor). Allowed sort: createdAt, updatedAt, score (default -createdAt).

Parameters

  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar
  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description. A final criterion on id makes pagination stable.

  • updatedSincestringquery

    Only returns items created or updated since this instant (ISO 8601, inclusive). With sort=updatedAt, this is the recommended form of an incremental sync.

  • cursorstringquery

    Cursor pagination: nextCursor of the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • statusstring[]query

    Statuses, comma-separated (NEW,QUALIFIED).

  • sourcestringquery

    Exact source (case-insensitive).

  • ownerIdstring (uuid)query
  • emailstringquery

    Exact email (case-insensitive): deduplication.

  • searchstringquery

    Name, company, email or phone containing this text.

Response 200application/json

Success.

  • itemsCrmLeadDto[]required
    CrmLeadDto details
  • paginationPaginationDtorequired
    PaginationDto details

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/crm/leads' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
        "name": "Rania Ben Amor",
        "firstName": "Rania",
        "lastName": "Ben Amor",
        "company": "Boulangeries Ben Amor",
        "jobTitle": null,
        "email": "rania@example.tn",
        "phone": null,
        "mobile": null,
        "website": null,
        "address": null,
        "city": "Tunis",
        "country": null,
        "source": "Site web",
        "status": "NEW",
        "statusLabel": "À traiter",
        "score": 72,
        "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
        "ownerName": null,
        "tags": [
          "string"
        ],
        "notes": null,
        "estimatedAmount": 18500,
        "currency": "TND",
        "unqualifiedReason": null,
        "qualifiedAt": "2026-10-02T09:15:00.000Z",
        "conversion": {
          "convertedAt": "2026-10-02T09:15:00.000Z",
          "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
          "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
          "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
          "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
        },
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "2026-10-02T09:15:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 25,
      "totalItems": 132,
      "totalPages": 6,
      "limit": 100,
      "nextCursor": "c1.eyJzIjoiZGF0ZTpkZXNjLGlkOmFzYyIsImYiOiJ…",
      "hasMore": true
    }
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Create a lead #

POST/api/public/v1/quosuite/crm/leads
Scope : crm_leads:writeIdempotentcreateCrmLead

At least a name, a company or an email (otherwise 422). The “new lead” automations (assignment, call task) then run, as for an entry on screen; the crm_lead.created event is sent to subscribed webhooks. For a website form, first deduplicate with GET /crm/leads?email= and always send Idempotency-Key.

Parameters

  • Idempotency-Keystringheader

    Idempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • firstNamestring
    e.g.Rania
  • lastNamestring
    e.g.Ben Amor
  • companystring
    e.g.Boulangeries Ben Amor
  • jobTitleobject
  • emailstring
    e.g.rania@example.tn
  • phonestring
    e.g.+216 98 112 340
  • mobileobject
  • websiteobject
  • addressobject
  • citystring
    e.g.Tunis
  • countryobject
  • sourcestring

    Where the lead comes from (free text).

    e.g.Site web
  • scorenumber
    min.0max.100e.g.60
  • ownerIdstring (uuid) | null

    Owner: a user of the workspace (GET /crm/owners). Omitted on creation: none (a “new lead” automation may assign it); null on update: remove it.

  • tagsstring[]
  • notesobject

    Form message, context…

  • estimatedAmountnumber | null
    min.0e.g.18500
  • currencystring | null
    e.g.TND

Response 201application/json

Created.

  • idstring (uuid)required
  • namestringrequired

    Display name (person, otherwise company, otherwise email).

    e.g.Rania Ben Amor
  • firstNamestring | null
    e.g.Rania
  • lastNamestring | null
    e.g.Ben Amor
  • companystring | null
    e.g.Boulangeries Ben Amor
  • jobTitlestring | null
  • emailstring | null
    e.g.rania@example.tn
  • phonestring | null
  • mobilestring | null
  • websitestring | null
  • addressstring | null
  • citystring | null
    e.g.Tunis
  • countrystring | null
  • sourcestring | null
    e.g.Site web
  • statusstringrequired
    valuesNEWQUALIFIEDUNQUALIFIEDCONVERTED
  • statusLabelstringrequired
    e.g.À traiter
  • scorenumberrequired

    Score 0–100.

    e.g.72
  • ownerIdstring (uuid) | null
  • ownerNamestring | null
  • tagsstring[]required
  • notesstring | null
  • estimatedAmountnumber | null
    e.g.18500
  • currencystring | null
    e.g.TND
  • unqualifiedReasonstring | null

    Reason of a disqualified lead.

  • qualifiedAtstring | null
  • conversionCrmLeadConversionDto | null

    What the lead became (CONVERTED only).

    CrmLeadConversionDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

402PLAN_QUOTA_EXCEEDEDFEATURE_NOT_INCLUDEDMODULE_NOT_INCLUDED

Subscription plan limit or option (monthly document quota, multi-currency…).

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/crm/leads' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "firstName": "Rania",
  "lastName": "Ben Amor",
  "company": "Boulangeries Ben Amor",
  "email": "rania@example.tn",
  "phone": "+216 98 112 340",
  "city": "Tunis",
  "source": "Site web",
  "score": 60,
  "estimatedAmount": 18500,
  "currency": "TND"
}'
Response example
{
  "success": true,
  "data": {
    "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
    "name": "Rania Ben Amor",
    "firstName": "Rania",
    "lastName": "Ben Amor",
    "company": "Boulangeries Ben Amor",
    "jobTitle": null,
    "email": "rania@example.tn",
    "phone": null,
    "mobile": null,
    "website": null,
    "address": null,
    "city": "Tunis",
    "country": null,
    "source": "Site web",
    "status": "NEW",
    "statusLabel": "À traiter",
    "score": 72,
    "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
    "ownerName": null,
    "tags": [
      "string"
    ],
    "notes": null,
    "estimatedAmount": 18500,
    "currency": "TND",
    "unqualifiedReason": null,
    "qualifiedAt": "2026-10-02T09:15:00.000Z",
    "conversion": {
      "convertedAt": "2026-10-02T09:15:00.000Z",
      "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
      "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
      "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
      "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
    },
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Get a lead #

GET/api/public/v1/quosuite/crm/leads/{id}
Scope : crm_leads:readgetCrmLead

A converted lead carries conversion: account, contact, ERP customer record, deal.

Parameters

  • idstring (uuid)pathrequired
  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar

Response 200application/json

Success.

  • idstring (uuid)required
  • namestringrequired

    Display name (person, otherwise company, otherwise email).

    e.g.Rania Ben Amor
  • firstNamestring | null
    e.g.Rania
  • lastNamestring | null
    e.g.Ben Amor
  • companystring | null
    e.g.Boulangeries Ben Amor
  • jobTitlestring | null
  • emailstring | null
    e.g.rania@example.tn
  • phonestring | null
  • mobilestring | null
  • websitestring | null
  • addressstring | null
  • citystring | null
    e.g.Tunis
  • countrystring | null
  • sourcestring | null
    e.g.Site web
  • statusstringrequired
    valuesNEWQUALIFIEDUNQUALIFIEDCONVERTED
  • statusLabelstringrequired
    e.g.À traiter
  • scorenumberrequired

    Score 0–100.

    e.g.72
  • ownerIdstring (uuid) | null
  • ownerNamestring | null
  • tagsstring[]required
  • notesstring | null
  • estimatedAmountnumber | null
    e.g.18500
  • currencystring | null
    e.g.TND
  • unqualifiedReasonstring | null

    Reason of a disqualified lead.

  • qualifiedAtstring | null
  • conversionCrmLeadConversionDto | null

    What the lead became (CONVERTED only).

    CrmLeadConversionDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/crm/leads/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
    "name": "Rania Ben Amor",
    "firstName": "Rania",
    "lastName": "Ben Amor",
    "company": "Boulangeries Ben Amor",
    "jobTitle": null,
    "email": "rania@example.tn",
    "phone": null,
    "mobile": null,
    "website": null,
    "address": null,
    "city": "Tunis",
    "country": null,
    "source": "Site web",
    "status": "NEW",
    "statusLabel": "À traiter",
    "score": 72,
    "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
    "ownerName": null,
    "tags": [
      "string"
    ],
    "notes": null,
    "estimatedAmount": 18500,
    "currency": "TND",
    "unqualifiedReason": null,
    "qualifiedAt": "2026-10-02T09:15:00.000Z",
    "conversion": {
      "convertedAt": "2026-10-02T09:15:00.000Z",
      "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
      "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
      "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
      "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
    },
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Update a lead #

PATCH/api/public/v1/quosuite/crm/leads/{id}
Scope : crm_leads:writeupdateCrmLead

Only the fields sent change. A converted lead is frozen (422).

Parameters

  • idstring (uuid)pathrequired

Request body application/json

  • firstNamestring
    e.g.Rania
  • lastNamestring
    e.g.Ben Amor
  • companystring
    e.g.Boulangeries Ben Amor
  • jobTitleobject
  • emailstring
    e.g.rania@example.tn
  • phonestring
    e.g.+216 98 112 340
  • mobileobject
  • websiteobject
  • addressobject
  • citystring
    e.g.Tunis
  • countryobject
  • sourcestring

    Where the lead comes from (free text).

    e.g.Site web
  • scorenumber
    min.0max.100e.g.60
  • ownerIdstring (uuid) | null

    Owner: a user of the workspace (GET /crm/owners). Omitted on creation: none (a “new lead” automation may assign it); null on update: remove it.

  • tagsstring[]
  • notesobject

    Form message, context…

  • estimatedAmountnumber | null
    min.0e.g.18500
  • currencystring | null
    e.g.TND

Response 200application/json

Success.

  • idstring (uuid)required
  • namestringrequired

    Display name (person, otherwise company, otherwise email).

    e.g.Rania Ben Amor
  • firstNamestring | null
    e.g.Rania
  • lastNamestring | null
    e.g.Ben Amor
  • companystring | null
    e.g.Boulangeries Ben Amor
  • jobTitlestring | null
  • emailstring | null
    e.g.rania@example.tn
  • phonestring | null
  • mobilestring | null
  • websitestring | null
  • addressstring | null
  • citystring | null
    e.g.Tunis
  • countrystring | null
  • sourcestring | null
    e.g.Site web
  • statusstringrequired
    valuesNEWQUALIFIEDUNQUALIFIEDCONVERTED
  • statusLabelstringrequired
    e.g.À traiter
  • scorenumberrequired

    Score 0–100.

    e.g.72
  • ownerIdstring (uuid) | null
  • ownerNamestring | null
  • tagsstring[]required
  • notesstring | null
  • estimatedAmountnumber | null
    e.g.18500
  • currencystring | null
    e.g.TND
  • unqualifiedReasonstring | null

    Reason of a disqualified lead.

  • qualifiedAtstring | null
  • conversionCrmLeadConversionDto | null

    What the lead became (CONVERTED only).

    CrmLeadConversionDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X PATCH 'https://quosuite.com/api/public/v1/quosuite/crm/leads/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "firstName": "Rania",
  "lastName": "Ben Amor",
  "company": "Boulangeries Ben Amor",
  "email": "rania@example.tn",
  "phone": "+216 98 112 340",
  "city": "Tunis",
  "source": "Site web",
  "score": 60,
  "estimatedAmount": 18500,
  "currency": "TND"
}'
Response example
{
  "success": true,
  "data": {
    "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
    "name": "Rania Ben Amor",
    "firstName": "Rania",
    "lastName": "Ben Amor",
    "company": "Boulangeries Ben Amor",
    "jobTitle": null,
    "email": "rania@example.tn",
    "phone": null,
    "mobile": null,
    "website": null,
    "address": null,
    "city": "Tunis",
    "country": null,
    "source": "Site web",
    "status": "NEW",
    "statusLabel": "À traiter",
    "score": 72,
    "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
    "ownerName": null,
    "tags": [
      "string"
    ],
    "notes": null,
    "estimatedAmount": 18500,
    "currency": "TND",
    "unqualifiedReason": null,
    "qualifiedAt": "2026-10-02T09:15:00.000Z",
    "conversion": {
      "convertedAt": "2026-10-02T09:15:00.000Z",
      "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
      "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
      "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
      "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
    },
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Convert a lead #

POST/api/public/v1/quosuite/crm/leads/{id}/convert
Scope : crm_leads:writeIdempotentconvertCrmLead

Creates (or reuses) in one go the account, the contact, the ERP customer record (customer series code, plan quota) and the deal, carries over the lead’s activities and freezes it. Two simultaneous conversions: only one goes through (409). Rules: ERP record must be a customer and not linked to another account (CRM_ACCOUNT_NOT_CLIENT, CRM_PARTNER_ALREADY_LINKED), stage of the chosen pipeline (CRM_STAGE_PIPELINE_MISMATCH).

Additional required scopes: crm:write.

Parameters

  • idstring (uuid)pathrequired
  • Idempotency-Keystringheader

    Idempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • accountCrmConvertAccountInputrequired
    CrmConvertAccountInput details
  • contactCrmConvertTargetInputrequired
    CrmConvertTargetInput details
  • erpClientCrmConvertTargetInputrequired

    ERP customer record: created (customer series), existing (linked to the account) or none.

    CrmConvertTargetInput details
  • dealCrmConvertDealInput

    Deal to create (omitted: none).

    CrmConvertDealInput details
  • ownerIdstring (uuid)

    Owner of the created records (default: the lead’s).

Response 201application/json

Created.

  • idstring (uuid)required
  • namestringrequired

    Display name (person, otherwise company, otherwise email).

    e.g.Rania Ben Amor
  • firstNamestring | null
    e.g.Rania
  • lastNamestring | null
    e.g.Ben Amor
  • companystring | null
    e.g.Boulangeries Ben Amor
  • jobTitlestring | null
  • emailstring | null
    e.g.rania@example.tn
  • phonestring | null
  • mobilestring | null
  • websitestring | null
  • addressstring | null
  • citystring | null
    e.g.Tunis
  • countrystring | null
  • sourcestring | null
    e.g.Site web
  • statusstringrequired
    valuesNEWQUALIFIEDUNQUALIFIEDCONVERTED
  • statusLabelstringrequired
    e.g.À traiter
  • scorenumberrequired

    Score 0–100.

    e.g.72
  • ownerIdstring (uuid) | null
  • ownerNamestring | null
  • tagsstring[]required
  • notesstring | null
  • estimatedAmountnumber | null
    e.g.18500
  • currencystring | null
    e.g.TND
  • unqualifiedReasonstring | null

    Reason of a disqualified lead.

  • qualifiedAtstring | null
  • conversionCrmLeadConversionDto | null

    What the lead became (CONVERTED only).

    CrmLeadConversionDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

402PLAN_QUOTA_EXCEEDEDFEATURE_NOT_INCLUDEDMODULE_NOT_INCLUDED

Subscription plan limit or option (monthly document quota, multi-currency…).

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/crm/leads/aac39e3a-0c40-44b2-8697-b597f357c5a9/convert' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "account": {
    "mode": "create"
  },
  "contact": {
    "mode": "create"
  },
  "erpClient": {
    "mode": "create"
  }
}'
Response example
{
  "success": true,
  "data": {
    "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
    "name": "Rania Ben Amor",
    "firstName": "Rania",
    "lastName": "Ben Amor",
    "company": "Boulangeries Ben Amor",
    "jobTitle": null,
    "email": "rania@example.tn",
    "phone": null,
    "mobile": null,
    "website": null,
    "address": null,
    "city": "Tunis",
    "country": null,
    "source": "Site web",
    "status": "NEW",
    "statusLabel": "À traiter",
    "score": 72,
    "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
    "ownerName": null,
    "tags": [
      "string"
    ],
    "notes": null,
    "estimatedAmount": 18500,
    "currency": "TND",
    "unqualifiedReason": null,
    "qualifiedAt": "2026-10-02T09:15:00.000Z",
    "conversion": {
      "convertedAt": "2026-10-02T09:15:00.000Z",
      "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
      "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
      "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
      "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
    },
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Qualify or disqualify a lead #

POST/api/public/v1/quosuite/crm/leads/{id}/qualify
Scope : crm_leads:writequalifyCrmLead

QUALIFIED, UNQUALIFIED (with reason) or NEW (back to new). A converted lead no longer changes status.

Parameters

  • idstring (uuid)pathrequired

Request body application/json

  • statusstringrequired

    QUALIFIED, UNQUALIFIED (reason required) or NEW (back to new).

    valuesQUALIFIEDUNQUALIFIEDNEW
  • reasonstring
    e.g.Hors zone de livraison

Response 200application/json

Success.

  • idstring (uuid)required
  • namestringrequired

    Display name (person, otherwise company, otherwise email).

    e.g.Rania Ben Amor
  • firstNamestring | null
    e.g.Rania
  • lastNamestring | null
    e.g.Ben Amor
  • companystring | null
    e.g.Boulangeries Ben Amor
  • jobTitlestring | null
  • emailstring | null
    e.g.rania@example.tn
  • phonestring | null
  • mobilestring | null
  • websitestring | null
  • addressstring | null
  • citystring | null
    e.g.Tunis
  • countrystring | null
  • sourcestring | null
    e.g.Site web
  • statusstringrequired
    valuesNEWQUALIFIEDUNQUALIFIEDCONVERTED
  • statusLabelstringrequired
    e.g.À traiter
  • scorenumberrequired

    Score 0–100.

    e.g.72
  • ownerIdstring (uuid) | null
  • ownerNamestring | null
  • tagsstring[]required
  • notesstring | null
  • estimatedAmountnumber | null
    e.g.18500
  • currencystring | null
    e.g.TND
  • unqualifiedReasonstring | null

    Reason of a disqualified lead.

  • qualifiedAtstring | null
  • conversionCrmLeadConversionDto | null

    What the lead became (CONVERTED only).

    CrmLeadConversionDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

409CONFLICTIDEMPOTENCY_IN_PROGRESS

Conflict: unique value already taken, or same idempotency key still in progress.

422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED

Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/crm/leads/aac39e3a-0c40-44b2-8697-b597f357c5a9/qualify' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "QUALIFIED"
}'
Response example
{
  "success": true,
  "data": {
    "id": "30a99a3b-ba47-4646-8e0c-59b41b4ed559",
    "name": "Rania Ben Amor",
    "firstName": "Rania",
    "lastName": "Ben Amor",
    "company": "Boulangeries Ben Amor",
    "jobTitle": null,
    "email": "rania@example.tn",
    "phone": null,
    "mobile": null,
    "website": null,
    "address": null,
    "city": "Tunis",
    "country": null,
    "source": "Site web",
    "status": "NEW",
    "statusLabel": "À traiter",
    "score": 72,
    "ownerId": "e1a6bde4-2346-43ca-8ae9-6c5d3b6890d5",
    "ownerName": null,
    "tags": [
      "string"
    ],
    "notes": null,
    "estimatedAmount": 18500,
    "currency": "TND",
    "unqualifiedReason": null,
    "qualifiedAt": "2026-10-02T09:15:00.000Z",
    "conversion": {
      "convertedAt": "2026-10-02T09:15:00.000Z",
      "accountId": "ce5c9afc-18a2-42c2-8d11-2b25ee9c0455",
      "contactId": "92209577-0aad-4b7a-8489-3f5eb09f3b4d",
      "partnerId": "ba777e51-050f-4cfa-8eb4-524c813e618d",
      "dealId": "87f5465d-3f5d-4a52-8d74-460a2d893c45"
    },
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Generated from the QuoSuite API OpenAPI contract v1.0.0.