Leads
- GET
/crm/leadsList leads - POST
/crm/leadsCreate a lead - GET
/crm/leads/{id}Get a lead - PATCH
/crm/leads/{id}Update a lead - POST
/crm/leads/{id}/convertConvert a lead - POST
/crm/leads/{id}/qualifyQualify or disqualify a lead
List leads #
/api/public/v1/quosuite/crm/leadscrm_leads:readlistCrmLeadsFilter 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
langstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenarpagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description. A final criterion onidmakes pagination stable.updatedSincestringqueryOnly returns items created or updated since this instant (ISO 8601, inclusive). With
sort=updatedAt, this is the recommended form of an incremental sync.cursorstringqueryCursor pagination:
nextCursorof 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 withpage.limitnumberqueryCursor pagination: items per page (100 at most).
?limit=100starts a cursor walk; the response returnspagination.nextCursor.statusstring[]queryStatuses, comma-separated (
NEW,QUALIFIED).sourcestringqueryExact source (case-insensitive).
ownerIdstring (uuid)queryemailstringqueryExact email (case-insensitive): deduplication.
searchstringqueryName, company, email or phone containing this text.
Response 200application/json
Success.
itemsCrmLeadDto[]requiredCrmLeadDto details
paginationPaginationDtorequiredPaginationDto 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.
curl 'https://quosuite.com/api/public/v1/quosuite/crm/leads' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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 #
/api/public/v1/quosuite/crm/leadscrm_leads:writeIdempotentcreateCrmLeadAt 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-KeystringheaderIdempotency 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: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
firstNamestringe.g.RanialastNamestringe.g.Ben Amorcompanystringe.g.Boulangeries Ben AmorjobTitleobjectemailstringe.g.rania@example.tnphonestringe.g.+216 98 112 340mobileobjectwebsiteobjectaddressobjectcitystringe.g.TuniscountryobjectsourcestringWhere the lead comes from (free text).
e.g.Site webscorenumbermin.0max.100e.g.60ownerIdstring (uuid) | nullOwner: a user of the workspace (
GET /crm/owners). Omitted on creation: none (a “new lead” automation may assign it);nullon update: remove it.tagsstring[]notesobjectForm message, context…
estimatedAmountnumber | nullmin.0e.g.18500currencystring | nulle.g.TND
Response 201application/json
Created.
idstring (uuid)requirednamestringrequiredDisplay name (person, otherwise company, otherwise email).
e.g.Rania Ben AmorfirstNamestring | nulle.g.RanialastNamestring | nulle.g.Ben Amorcompanystring | nulle.g.Boulangeries Ben AmorjobTitlestring | nullemailstring | nulle.g.rania@example.tnphonestring | nullmobilestring | nullwebsitestring | nulladdressstring | nullcitystring | nulle.g.Tuniscountrystring | nullsourcestring | nulle.g.Site webstatusstringrequiredvaluesNEWQUALIFIEDUNQUALIFIEDCONVERTEDstatusLabelstringrequirede.g.À traiterscorenumberrequiredScore 0–100.
e.g.72ownerIdstring (uuid) | nullownerNamestring | nulltagsstring[]requirednotesstring | nullestimatedAmountnumber | nulle.g.18500currencystring | nulle.g.TNDunqualifiedReasonstring | nullReason of a disqualified lead.
qualifiedAtstring | nullconversionCrmLeadConversionDto | nullWhat the lead became (
CONVERTEDonly).CrmLeadConversionDto details
createdAtstringrequiredupdatedAtstringrequired
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.
# 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"
}'{
"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 #
/api/public/v1/quosuite/crm/leads/{id}crm_leads:readgetCrmLeadA converted lead carries conversion: account, contact, ERP customer record, deal.
Parameters
idstring (uuid)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednamestringrequiredDisplay name (person, otherwise company, otherwise email).
e.g.Rania Ben AmorfirstNamestring | nulle.g.RanialastNamestring | nulle.g.Ben Amorcompanystring | nulle.g.Boulangeries Ben AmorjobTitlestring | nullemailstring | nulle.g.rania@example.tnphonestring | nullmobilestring | nullwebsitestring | nulladdressstring | nullcitystring | nulle.g.Tuniscountrystring | nullsourcestring | nulle.g.Site webstatusstringrequiredvaluesNEWQUALIFIEDUNQUALIFIEDCONVERTEDstatusLabelstringrequirede.g.À traiterscorenumberrequiredScore 0–100.
e.g.72ownerIdstring (uuid) | nullownerNamestring | nulltagsstring[]requirednotesstring | nullestimatedAmountnumber | nulle.g.18500currencystring | nulle.g.TNDunqualifiedReasonstring | nullReason of a disqualified lead.
qualifiedAtstring | nullconversionCrmLeadConversionDto | nullWhat the lead became (
CONVERTEDonly).CrmLeadConversionDto details
createdAtstringrequiredupdatedAtstringrequired
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.
curl 'https://quosuite.com/api/public/v1/quosuite/crm/leads/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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 #
/api/public/v1/quosuite/crm/leads/{id}crm_leads:writeupdateCrmLeadOnly the fields sent change. A converted lead is frozen (422).
Parameters
idstring (uuid)pathrequired
Request body application/json
firstNamestringe.g.RanialastNamestringe.g.Ben Amorcompanystringe.g.Boulangeries Ben AmorjobTitleobjectemailstringe.g.rania@example.tnphonestringe.g.+216 98 112 340mobileobjectwebsiteobjectaddressobjectcitystringe.g.TuniscountryobjectsourcestringWhere the lead comes from (free text).
e.g.Site webscorenumbermin.0max.100e.g.60ownerIdstring (uuid) | nullOwner: a user of the workspace (
GET /crm/owners). Omitted on creation: none (a “new lead” automation may assign it);nullon update: remove it.tagsstring[]notesobjectForm message, context…
estimatedAmountnumber | nullmin.0e.g.18500currencystring | nulle.g.TND
Response 200application/json
Success.
idstring (uuid)requirednamestringrequiredDisplay name (person, otherwise company, otherwise email).
e.g.Rania Ben AmorfirstNamestring | nulle.g.RanialastNamestring | nulle.g.Ben Amorcompanystring | nulle.g.Boulangeries Ben AmorjobTitlestring | nullemailstring | nulle.g.rania@example.tnphonestring | nullmobilestring | nullwebsitestring | nulladdressstring | nullcitystring | nulle.g.Tuniscountrystring | nullsourcestring | nulle.g.Site webstatusstringrequiredvaluesNEWQUALIFIEDUNQUALIFIEDCONVERTEDstatusLabelstringrequirede.g.À traiterscorenumberrequiredScore 0–100.
e.g.72ownerIdstring (uuid) | nullownerNamestring | nulltagsstring[]requirednotesstring | nullestimatedAmountnumber | nulle.g.18500currencystring | nulle.g.TNDunqualifiedReasonstring | nullReason of a disqualified lead.
qualifiedAtstring | nullconversionCrmLeadConversionDto | nullWhat the lead became (
CONVERTEDonly).CrmLeadConversionDto details
createdAtstringrequiredupdatedAtstringrequired
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.
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"
}'{
"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 #
/api/public/v1/quosuite/crm/leads/{id}/convertcrm_leads:writeIdempotentconvertCrmLeadCreates (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)pathrequiredIdempotency-KeystringheaderIdempotency 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: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
accountCrmConvertAccountInputrequiredCrmConvertAccountInput details
contactCrmConvertTargetInputrequiredCrmConvertTargetInput details
erpClientCrmConvertTargetInputrequiredERP customer record: created (customer series), existing (linked to the account) or none.
CrmConvertTargetInput details
dealCrmConvertDealInputDeal to create (omitted: none).
CrmConvertDealInput details
ownerIdstring (uuid)Owner of the created records (default: the lead’s).
Response 201application/json
Created.
idstring (uuid)requirednamestringrequiredDisplay name (person, otherwise company, otherwise email).
e.g.Rania Ben AmorfirstNamestring | nulle.g.RanialastNamestring | nulle.g.Ben Amorcompanystring | nulle.g.Boulangeries Ben AmorjobTitlestring | nullemailstring | nulle.g.rania@example.tnphonestring | nullmobilestring | nullwebsitestring | nulladdressstring | nullcitystring | nulle.g.Tuniscountrystring | nullsourcestring | nulle.g.Site webstatusstringrequiredvaluesNEWQUALIFIEDUNQUALIFIEDCONVERTEDstatusLabelstringrequirede.g.À traiterscorenumberrequiredScore 0–100.
e.g.72ownerIdstring (uuid) | nullownerNamestring | nulltagsstring[]requirednotesstring | nullestimatedAmountnumber | nulle.g.18500currencystring | nulle.g.TNDunqualifiedReasonstring | nullReason of a disqualified lead.
qualifiedAtstring | nullconversionCrmLeadConversionDto | nullWhat the lead became (
CONVERTEDonly).CrmLeadConversionDto details
createdAtstringrequiredupdatedAtstringrequired
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.
# 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"
}
}'{
"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 #
/api/public/v1/quosuite/crm/leads/{id}/qualifycrm_leads:writequalifyCrmLeadQUALIFIED, UNQUALIFIED (with reason) or NEW (back to new). A converted lead no longer changes status.
Parameters
idstring (uuid)pathrequired
Request body application/json
statusstringrequiredQUALIFIED,UNQUALIFIED(reason required) orNEW(back to new).valuesQUALIFIEDUNQUALIFIEDNEWreasonstringe.g.Hors zone de livraison
Response 200application/json
Success.
idstring (uuid)requirednamestringrequiredDisplay name (person, otherwise company, otherwise email).
e.g.Rania Ben AmorfirstNamestring | nulle.g.RanialastNamestring | nulle.g.Ben Amorcompanystring | nulle.g.Boulangeries Ben AmorjobTitlestring | nullemailstring | nulle.g.rania@example.tnphonestring | nullmobilestring | nullwebsitestring | nulladdressstring | nullcitystring | nulle.g.Tuniscountrystring | nullsourcestring | nulle.g.Site webstatusstringrequiredvaluesNEWQUALIFIEDUNQUALIFIEDCONVERTEDstatusLabelstringrequirede.g.À traiterscorenumberrequiredScore 0–100.
e.g.72ownerIdstring (uuid) | nullownerNamestring | nulltagsstring[]requirednotesstring | nullestimatedAmountnumber | nulle.g.18500currencystring | nulle.g.TNDunqualifiedReasonstring | nullReason of a disqualified lead.
qualifiedAtstring | nullconversionCrmLeadConversionDto | nullWhat the lead became (
CONVERTEDonly).CrmLeadConversionDto details
createdAtstringrequiredupdatedAtstringrequired
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.
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"
}'{
"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.