التوثيق متوفّر بالفرنسية والإنجليزية. يُعرض المحتوى هنا بالفرنسية — اختر EN من القائمة العلوية لقراءته بالإنجليزية.
Comptes
- GET
/crm/accountsLister les comptes - POST
/crm/accountsCréer un compte - GET
/crm/accounts/{id}Détail d’un compte - PATCH
/crm/accounts/{id}Modifier un compte
Lister les comptes #
/api/public/v1/quosuite/crm/accountscrm:readlistCrmAccountsSociétés et organisations (prospects, clients, fournisseurs, partenaires). partnerId retrouve le compte d’une fiche ERP ; les comptes archivés sont exclus sauf archived=true. Tri permis : name, createdAt, updatedAt (défaut name).
المعاملات
langstringالاستعلامLangue des libellés (et du PDF). Défaut :
Accept-Language, sinon la langue de l’espace.frenarpagenumberالاستعلامNuméro de page (à partir de 1).
pageSizenumberالاستعلامÉléments par page (100 au plus).
sortstringالاستعلامTri : champs séparés par des virgules, préfixe
-pour l’ordre décroissant. Champs permis : voir la description de la route. Un dernier critère suridrend la pagination stable.updatedSincestringالاستعلامNe renvoie que les éléments créés ou modifiés depuis cet instant (ISO 8601, inclus). Avec
sort=updatedAt, c’est la forme recommandée d’une synchronisation incrémentale.cursorstringالاستعلامPagination par curseur :
nextCursorde la page précédente, à repasser tel quel avec les mêmes filtres et le même tri. Stable même si des éléments sont créés pendant le parcours, et de coût constant quelle que soit la profondeur. Exclusif depage.limitnumberالاستعلامPagination par curseur : éléments par page (100 au plus).
?limit=100ouvre un parcours par curseur ; la réponse rendpagination.nextCursor.typestring[]الاستعلامTypes, séparés par des virgules.
partnerIdstring (uuid)الاستعلامCompte relié à cette fiche ERP.
ownerIdstring (uuid)الاستعلامsearchstringالاستعلامNom, ville, e-mail ou matricule contenant ce texte.
archivedbooleanالاستعلامInclure les comptes archivés.
الاستجابة 200application/json
Succès.
itemsCrmAccountDto[]إلزاميتفاصيل CrmAccountDto
paginationPaginationDtoإلزاميتفاصيل PaginationDto
الأخطاء
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Paramètre ou corps invalide (champ manquant, inconnu, mal typé, tri non permis), ou curseur de pagination émis pour un autre tri ou d’autres filtres.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Jeton absent, invalide, révoqué ou expiré.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Jeton valide mais insuffisant : mauvais périmètre, scope manquant, origine refusée, abonnement inactif ou module / option non inclus dans le plan.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Quota du jeton ou de l’espace atteint (voir Retry-After), ou adresse bloquée.
500INTERNAL_ERROR
Erreur inattendue. Citez requestId au support.
503SERVICE_UNAVAILABLE
Indisponibilité temporaire (voir Retry-After). Aucun détail d’infrastructure.
curl 'https://quosuite.com/api/public/v1/quosuite/crm/accounts' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "03d0a39c-ab5f-4e02-8c91-8f758564de45",
"name": "BTP Horizon",
"type": "PROSPECT",
"typeLabel": "Client",
"partnerId": "85ebdc78-01a1-4a94-87d2-9a59f34e0575",
"industry": null,
"website": null,
"email": null,
"phone": null,
"address": null,
"city": null,
"country": null,
"taxId": "8c2b7e1b-b1ff-47ee-82af-ff889a8bcf31",
"size": "10-49",
"currency": "TND",
"source": null,
"tags": [
"string"
],
"ownerId": "89177531-665b-42c2-84c9-b10666588395",
"ownerName": null,
"notes": null,
"archived": true,
"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"
}جرّب هذا الطلب
Créer un compte #
/api/public/v1/quosuite/crm/accountscrm:writeآمن عند الإعادةcreateCrmAccountAvec partnerId, le compte est relié à cette fiche ERP (une fiche ne se relie qu’à un compte : 422 CRM_PARTNER_ALREADY_LINKED).
المعاملات
Idempotency-KeystringترويسةClé d'idempotence (1–255 caractères ASCII imprimables, UUID v4 recommandé). Un nouvel essai avec la même clé et le même corps dans les 24 h rejoue la réponse du premier appel réussi (en-tête
Idempotent-Replayed: true) au lieu de créer une seconde fois. Même clé, corps différent : 422IDEMPOTENCY_KEY_REUSED. Premier appel encore en cours : 409IDEMPOTENCY_IN_PROGRESS.
جسم الطلب application/json
namestringإلزاميمثالBTP HorizontypestringالقيمPROSPECTCUSTOMERSUPPLIERPARTNEROTHERافتراضي"PROSPECT"partnerIdstring (uuid)Fiche client / fournisseur ERP à relier.
industryobjectwebsiteobjectemailobjectphoneobjectaddressobjectcityobjectcountryobjecttaxIdobjectsizestringمثال10-49currencystring | nullمثالTNDsourceobjecttagsstring[]ownerIdstring (uuid) | nullPropriétaire : un utilisateur de l’espace (
GET /crm/owners). Omis à la création : aucun (une automatisation « nouvelle piste » peut l’attribuer) ;nullen modification : le retirer.notesobject
الاستجابة 201application/json
Créé.
idstring (uuid)إلزاميnamestringإلزاميمثالBTP HorizontypestringإلزاميالقيمPROSPECTCUSTOMERSUPPLIERPARTNEROTHERtypeLabelstringإلزاميمثالClientpartnerIdstring (uuid) | nullFiche client / fournisseur ERP reliée (
GET /partners/{id}).industrystring | nullwebsitestring | nullemailstring | nullphonestring | nulladdressstring | nullcitystring | nullcountrystring | nulltaxIdstring | nullsizestring | nullمثال10-49currencystring | nullDevise de travail.
مثالTNDsourcestring | nulltagsstring[]إلزاميownerIdstring (uuid) | nullownerNamestring | nullnotesstring | nullarchivedbooleanإلزاميArchivé (« supprimé » dans l’application).
createdAtstringإلزاميupdatedAtstringإلزامي
الأخطاء
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Paramètre ou corps invalide (champ manquant, inconnu, mal typé, tri non permis), ou curseur de pagination émis pour un autre tri ou d’autres filtres.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Jeton absent, invalide, révoqué ou expiré.
402PLAN_QUOTA_EXCEEDEDFEATURE_NOT_INCLUDEDMODULE_NOT_INCLUDED
Limite ou option du plan d’abonnement (quota mensuel de documents, multi-devise…).
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Jeton valide mais insuffisant : mauvais périmètre, scope manquant, origine refusée, abonnement inactif ou module / option non inclus dans le plan.
404NOT_FOUND
Ressource absente — ou appartenant à un autre espace, ce qui revient au même.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflit : valeur unique déjà prise, ou même clé d’idempotence encore en cours.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Requête bien formée mais refusée par une règle de gestion de l’ERP (transition de statut interdite, pièce réglée verrouillée, stock…), ou clé d’idempotence réutilisée.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Quota du jeton ou de l’espace atteint (voir Retry-After), ou adresse bloquée.
500INTERNAL_ERROR
Erreur inattendue. Citez requestId au support.
503SERVICE_UNAVAILABLE
Indisponibilité temporaire (voir Retry-After). Aucun détail d’infrastructure.
# Une clé par opération, réutilisée telle quelle à chaque nouvel essai.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/crm/accounts' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"name": "BTP Horizon"
}'{
"success": true,
"data": {
"id": "03d0a39c-ab5f-4e02-8c91-8f758564de45",
"name": "BTP Horizon",
"type": "PROSPECT",
"typeLabel": "Client",
"partnerId": "85ebdc78-01a1-4a94-87d2-9a59f34e0575",
"industry": null,
"website": null,
"email": null,
"phone": null,
"address": null,
"city": null,
"country": null,
"taxId": "8c2b7e1b-b1ff-47ee-82af-ff889a8bcf31",
"size": "10-49",
"currency": "TND",
"source": null,
"tags": [
"string"
],
"ownerId": "89177531-665b-42c2-84c9-b10666588395",
"ownerName": null,
"notes": null,
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Détail d’un compte #
/api/public/v1/quosuite/crm/accounts/{id}crm:readgetCrmAccountالمعاملات
idstring (uuid)المسارإلزاميlangstringالاستعلامLangue des libellés (et du PDF). Défaut :
Accept-Language, sinon la langue de l’espace.frenar
الاستجابة 200application/json
Succès.
idstring (uuid)إلزاميnamestringإلزاميمثالBTP HorizontypestringإلزاميالقيمPROSPECTCUSTOMERSUPPLIERPARTNEROTHERtypeLabelstringإلزاميمثالClientpartnerIdstring (uuid) | nullFiche client / fournisseur ERP reliée (
GET /partners/{id}).industrystring | nullwebsitestring | nullemailstring | nullphonestring | nulladdressstring | nullcitystring | nullcountrystring | nulltaxIdstring | nullsizestring | nullمثال10-49currencystring | nullDevise de travail.
مثالTNDsourcestring | nulltagsstring[]إلزاميownerIdstring (uuid) | nullownerNamestring | nullnotesstring | nullarchivedbooleanإلزاميArchivé (« supprimé » dans l’application).
createdAtstringإلزاميupdatedAtstringإلزامي
الأخطاء
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Paramètre ou corps invalide (champ manquant, inconnu, mal typé, tri non permis), ou curseur de pagination émis pour un autre tri ou d’autres filtres.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Jeton absent, invalide, révoqué ou expiré.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Jeton valide mais insuffisant : mauvais périmètre, scope manquant, origine refusée, abonnement inactif ou module / option non inclus dans le plan.
404NOT_FOUND
Ressource absente — ou appartenant à un autre espace, ce qui revient au même.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Quota du jeton ou de l’espace atteint (voir Retry-After), ou adresse bloquée.
500INTERNAL_ERROR
Erreur inattendue. Citez requestId au support.
503SERVICE_UNAVAILABLE
Indisponibilité temporaire (voir Retry-After). Aucun détail d’infrastructure.
curl 'https://quosuite.com/api/public/v1/quosuite/crm/accounts/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"id": "03d0a39c-ab5f-4e02-8c91-8f758564de45",
"name": "BTP Horizon",
"type": "PROSPECT",
"typeLabel": "Client",
"partnerId": "85ebdc78-01a1-4a94-87d2-9a59f34e0575",
"industry": null,
"website": null,
"email": null,
"phone": null,
"address": null,
"city": null,
"country": null,
"taxId": "8c2b7e1b-b1ff-47ee-82af-ff889a8bcf31",
"size": "10-49",
"currency": "TND",
"source": null,
"tags": [
"string"
],
"ownerId": "89177531-665b-42c2-84c9-b10666588395",
"ownerName": null,
"notes": null,
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}جرّب هذا الطلب
Modifier un compte #
/api/public/v1/quosuite/crm/accounts/{id}crm:writeupdateCrmAccountالمعاملات
idstring (uuid)المسارإلزامي
جسم الطلب application/json
namestringمثالBTP HorizontypestringالقيمPROSPECTCUSTOMERSUPPLIERPARTNEROTHERافتراضي"PROSPECT"partnerIdstring (uuid)Fiche client / fournisseur ERP à relier.
industryobjectwebsiteobjectemailobjectphoneobjectaddressobjectcityobjectcountryobjecttaxIdobjectsizestringمثال10-49currencystring | nullمثالTNDsourceobjecttagsstring[]ownerIdstring (uuid) | nullPropriétaire : un utilisateur de l’espace (
GET /crm/owners). Omis à la création : aucun (une automatisation « nouvelle piste » peut l’attribuer) ;nullen modification : le retirer.notesobject
الاستجابة 200application/json
Succès.
idstring (uuid)إلزاميnamestringإلزاميمثالBTP HorizontypestringإلزاميالقيمPROSPECTCUSTOMERSUPPLIERPARTNEROTHERtypeLabelstringإلزاميمثالClientpartnerIdstring (uuid) | nullFiche client / fournisseur ERP reliée (
GET /partners/{id}).industrystring | nullwebsitestring | nullemailstring | nullphonestring | nulladdressstring | nullcitystring | nullcountrystring | nulltaxIdstring | nullsizestring | nullمثال10-49currencystring | nullDevise de travail.
مثالTNDsourcestring | nulltagsstring[]إلزاميownerIdstring (uuid) | nullownerNamestring | nullnotesstring | nullarchivedbooleanإلزاميArchivé (« supprimé » dans l’application).
createdAtstringإلزاميupdatedAtstringإلزامي
الأخطاء
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Paramètre ou corps invalide (champ manquant, inconnu, mal typé, tri non permis), ou curseur de pagination émis pour un autre tri ou d’autres filtres.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Jeton absent, invalide, révoqué ou expiré.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Jeton valide mais insuffisant : mauvais périmètre, scope manquant, origine refusée, abonnement inactif ou module / option non inclus dans le plan.
404NOT_FOUND
Ressource absente — ou appartenant à un autre espace, ce qui revient au même.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflit : valeur unique déjà prise, ou même clé d’idempotence encore en cours.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Requête bien formée mais refusée par une règle de gestion de l’ERP (transition de statut interdite, pièce réglée verrouillée, stock…), ou clé d’idempotence réutilisée.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Quota du jeton ou de l’espace atteint (voir Retry-After), ou adresse bloquée.
500INTERNAL_ERROR
Erreur inattendue. Citez requestId au support.
503SERVICE_UNAVAILABLE
Indisponibilité temporaire (voir Retry-After). Aucun détail d’infrastructure.
curl -X PATCH 'https://quosuite.com/api/public/v1/quosuite/crm/accounts/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "BTP Horizon",
"size": "10-49",
"currency": "TND"
}'{
"success": true,
"data": {
"id": "03d0a39c-ab5f-4e02-8c91-8f758564de45",
"name": "BTP Horizon",
"type": "PROSPECT",
"typeLabel": "Client",
"partnerId": "85ebdc78-01a1-4a94-87d2-9a59f34e0575",
"industry": null,
"website": null,
"email": null,
"phone": null,
"address": null,
"city": null,
"country": null,
"taxId": "8c2b7e1b-b1ff-47ee-82af-ff889a8bcf31",
"size": "10-49",
"currency": "TND",
"source": null,
"tags": [
"string"
],
"ownerId": "89177531-665b-42c2-84c9-b10666588395",
"ownerName": null,
"notes": null,
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}مولَّدة من عقد OpenAPI لـ QuoSuite API الإصدار 1.0.0.