التوثيق متوفّر بالفرنسية والإنجليزية. يُعرض المحتوى هنا بالفرنسية — اختر EN من القائمة العلوية لقراءته بالإنجليزية.
Clients & fournisseurs
- GET
/partnersLister les clients et fournisseurs - POST
/partnersCréer un client ou fournisseur - GET
/partners/{id}Détail d’un tiers - PATCH
/partners/{id}Modifier un tiers - GET
/partners/{id}/contactsContacts d’un tiers - POST
/partners/{id}/contactsAjouter un contact à un tiers
Lister les clients et fournisseurs #
/api/public/v1/quosuite/partnerspartners:readlistPartnersFiltrable par rôle (role=CLIENT inclut les fiches mixtes), type, nature, recherche, catégorie, étiquettes, email ou matricule fiscal. Tri permis : code, 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.rolestringالاستعلامRôle joué :
CLIENTrend les clients et les fichesBOTH, idem pourSUPPLIER.CLIENTSUPPLIERtypestringالاستعلامType exact de la fiche.
CLIENTSUPPLIERBOTHkindstringالاستعلامINDIVIDUALCOMPANYqstringالاستعلامRecherche dans le code, le nom, l’email et le matricule fiscal.
categorystringالاستعلامtagsstring[]الاستعلامÉtiquettes (au moins une), séparées par des virgules.
emailstringالاستعلامEmail exact (insensible à la casse).
taxIdstringالاستعلامMatricule fiscal exact.
includeArchivedbooleanالاستعلام
الاستجابة 200application/json
Succès.
itemsPartnerDto[]إلزاميتفاصيل PartnerDto
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/partners' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "fffa9e0b-33d4-4332-8d8a-b58c9c1af631",
"code": "CLI-0042",
"type": "CLIENT",
"typeLabel": "Client",
"kind": "INDIVIDUAL",
"name": "Société Exemple SARL",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": "TN",
"taxId": "b62e3b7e-b4d6-4ffe-884c-16ebafa5e5a5",
"legalForm": null,
"tradeRegister": null,
"tradeName": null,
"managerName": null,
"category": null,
"tags": [
"string"
],
"currency": "TND",
"paymentTermsDays": 30,
"creditLimit": 10000,
"defaultDiscountPercent": 0,
"preferredPaymentMethod": "CASH",
"accountBalance": 0,
"bank": {
"bankName": null,
"iban": "TN5904018104003691234567",
"bic": null,
"accountHolder": 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 client ou fournisseur #
/api/public/v1/quosuite/partnerspartners:writeآمن عند الإعادةcreatePartnerLe code est attribué par la série du type s’il est omis ; fourni, il doit être libre (422). Compte dans le quota de fiches du plan (402).
المعاملات
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
typestringإلزاميالقيمCLIENTSUPPLIERBOTHnamestringإلزاميمثالSociété Exemple SARLcodestringOmis : prochain code de la série du type.
مثالCLI-0042kindstringالقيمINDIVIDUALCOMPANYافتراضي"COMPANY"emailstringمثالcontact@exemple.tnphonestringmobilestringaddressstringcitystringcountrystringمثالTNtaxIdstringMatricule fiscal / n° de TVA.
legalFormstringtradeRegisterstringtradeNamestringDénomination commerciale (enseigne).
managerNamestringNom du responsable (gérant, dirigeant).
categorystringtagsstring[]currencystringمثالTNDpaymentTermsDaysnumberأدنى0أقصى365مثال30creditLimitnumberأدنى0مثال10000defaultDiscountPercentnumberأدنى0أقصى100مثال5preferredPaymentMethodstringالقيمCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERbankNamestringbankIbanstringbankBicstringbankAccountHolderstring
الاستجابة 201application/json
Créé.
idstring (uuid)إلزاميcodestringإلزاميCode unique, attribué par l’ERP s’il n’est pas fourni.
مثالCLI-0042typestringإلزاميCLIENT,SUPPLIERouBOTH.القيمCLIENTSUPPLIERBOTHtypeLabelstringإلزاميمثالClientkindstringإلزاميالقيمINDIVIDUALCOMPANYnamestringإلزاميمثالSociété Exemple SARLemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullمثالTNtaxIdstring | nullMatricule fiscal / n° de TVA.
legalFormstring | nulltradeRegisterstring | nulltradeNamestring | nullDénomination commerciale (enseigne).
managerNamestring | nullNom du responsable (gérant, dirigeant).
categorystring | nulltagsstring[]إلزاميcurrencystringإلزاميDevise habituelle du tiers.
مثالTNDpaymentTermsDaysnumberإلزاميDélai de paiement (jours).
مثال30creditLimitnumberإلزاميPlafond d’encours (0 = illimité), devise du tiers.
مثال10000defaultDiscountPercentnumberإلزاميRemise par défaut (%).
مثال0preferredPaymentMethodstring | nullالقيمCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERaccountBalancenumberإلزاميSolde du compte du tiers (acomptes versés, avoirs portés au crédit), devise du tiers.
مثال0bankBankDetailsDtoإلزاميتفاصيل BankDetailsDto
archivedbooleanإلزاميArchivé (suppression logique).
createdAtstringإلزاميupdatedAtstringإلزاميcontactsPartnerContactDto[]إلزاميتفاصيل PartnerContactDto
addressesPartnerAddressDto[]إلزاميتفاصيل PartnerAddressDto
financialsPartnerFinancialsDtoإلزاميتفاصيل PartnerFinancialsDto
الأخطاء
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/partners' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"type": "CLIENT",
"name": "Société Exemple SARL"
}'{
"success": true,
"data": {
"id": "006ce7c6-d389-43c0-8435-59136cb6ead1",
"code": "CLI-0042",
"type": "CLIENT",
"typeLabel": "Client",
"kind": "INDIVIDUAL",
"name": "Société Exemple SARL",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": "TN",
"taxId": "ce4ef841-d41d-4f12-8237-fcd48e819555",
"legalForm": null,
"tradeRegister": null,
"tradeName": null,
"managerName": null,
"category": null,
"tags": [
"string"
],
"currency": "TND",
"paymentTermsDays": 30,
"creditLimit": 10000,
"defaultDiscountPercent": 0,
"preferredPaymentMethod": "CASH",
"accountBalance": 0,
"bank": {
"bankName": null,
"iban": "TN5904018104003691234567",
"bic": null,
"accountHolder": null
},
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z",
"contacts": [
{
"id": "ebe7b025-2fbf-41b2-8983-ddb8b77c8d3d",
"name": "Sarra Ben Ali",
"role": "Comptabilité",
"email": null,
"phone": null,
"mobile": null,
"notes": null,
"isPrimary": true,
"updatedAt": "2026-10-02T09:15:00.000Z"
}
],
"addresses": [
{
"id": "0f77a31d-3027-4892-8542-16dc3f280949",
"kind": "BILLING",
"label": null,
"address": "string",
"city": null,
"postalCode": null,
"country": null,
"isDefault": true
}
],
"financials": {
"unpaidTotal": 1191,
"overdueTotal": 0,
"creditExceeded": false,
"aging": {
"d0_30": 0,
"d30_60": 0,
"d60_90": 0,
"d90plus": 0
}
}
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Détail d’un tiers #
/api/public/v1/quosuite/partners/{id}partners:readgetPartnerFiche, contacts, adresses et situation financière (encours, échu, ancienneté, plafond).
المعاملات
idstring (uuid)المسارإلزاميIdentifiant du tiers.
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)إلزاميcodestringإلزاميCode unique, attribué par l’ERP s’il n’est pas fourni.
مثالCLI-0042typestringإلزاميCLIENT,SUPPLIERouBOTH.القيمCLIENTSUPPLIERBOTHtypeLabelstringإلزاميمثالClientkindstringإلزاميالقيمINDIVIDUALCOMPANYnamestringإلزاميمثالSociété Exemple SARLemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullمثالTNtaxIdstring | nullMatricule fiscal / n° de TVA.
legalFormstring | nulltradeRegisterstring | nulltradeNamestring | nullDénomination commerciale (enseigne).
managerNamestring | nullNom du responsable (gérant, dirigeant).
categorystring | nulltagsstring[]إلزاميcurrencystringإلزاميDevise habituelle du tiers.
مثالTNDpaymentTermsDaysnumberإلزاميDélai de paiement (jours).
مثال30creditLimitnumberإلزاميPlafond d’encours (0 = illimité), devise du tiers.
مثال10000defaultDiscountPercentnumberإلزاميRemise par défaut (%).
مثال0preferredPaymentMethodstring | nullالقيمCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERaccountBalancenumberإلزاميSolde du compte du tiers (acomptes versés, avoirs portés au crédit), devise du tiers.
مثال0bankBankDetailsDtoإلزاميتفاصيل BankDetailsDto
archivedbooleanإلزاميArchivé (suppression logique).
createdAtstringإلزاميupdatedAtstringإلزاميcontactsPartnerContactDto[]إلزاميتفاصيل PartnerContactDto
addressesPartnerAddressDto[]إلزاميتفاصيل PartnerAddressDto
financialsPartnerFinancialsDtoإلزاميتفاصيل PartnerFinancialsDto
الأخطاء
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/partners/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"id": "006ce7c6-d389-43c0-8435-59136cb6ead1",
"code": "CLI-0042",
"type": "CLIENT",
"typeLabel": "Client",
"kind": "INDIVIDUAL",
"name": "Société Exemple SARL",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": "TN",
"taxId": "ce4ef841-d41d-4f12-8237-fcd48e819555",
"legalForm": null,
"tradeRegister": null,
"tradeName": null,
"managerName": null,
"category": null,
"tags": [
"string"
],
"currency": "TND",
"paymentTermsDays": 30,
"creditLimit": 10000,
"defaultDiscountPercent": 0,
"preferredPaymentMethod": "CASH",
"accountBalance": 0,
"bank": {
"bankName": null,
"iban": "TN5904018104003691234567",
"bic": null,
"accountHolder": null
},
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z",
"contacts": [
{
"id": "ebe7b025-2fbf-41b2-8983-ddb8b77c8d3d",
"name": "Sarra Ben Ali",
"role": "Comptabilité",
"email": null,
"phone": null,
"mobile": null,
"notes": null,
"isPrimary": true,
"updatedAt": "2026-10-02T09:15:00.000Z"
}
],
"addresses": [
{
"id": "0f77a31d-3027-4892-8542-16dc3f280949",
"kind": "BILLING",
"label": null,
"address": "string",
"city": null,
"postalCode": null,
"country": null,
"isDefault": true
}
],
"financials": {
"unpaidTotal": 1191,
"overdueTotal": 0,
"creditExceeded": false,
"aging": {
"d0_30": 0,
"d30_60": 0,
"d60_90": 0,
"d90plus": 0
}
}
},
"timestamp": "2026-10-02T09:15:00.000Z"
}جرّب هذا الطلب
Modifier un tiers #
/api/public/v1/quosuite/partners/{id}partners:writeupdatePartnerModification partielle ; le code ne change pas.
المعاملات
idstring (uuid)المسارإلزاميIdentifiant du tiers.
جسم الطلب application/json
typestringالقيمCLIENTSUPPLIERBOTHnamestringمثالSociété Exemple SARLkindstringالقيمINDIVIDUALCOMPANYافتراضي"COMPANY"emailstringمثالcontact@exemple.tnphonestringmobilestringaddressstringcitystringcountrystringمثالTNtaxIdstringMatricule fiscal / n° de TVA.
legalFormstringtradeRegisterstringtradeNamestringDénomination commerciale (enseigne).
managerNamestringNom du responsable (gérant, dirigeant).
categorystringtagsstring[]currencystringمثالTNDpaymentTermsDaysnumberأدنى0أقصى365مثال30creditLimitnumberأدنى0مثال10000defaultDiscountPercentnumberأدنى0أقصى100مثال5preferredPaymentMethodstringالقيمCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERbankNamestringbankIbanstringbankBicstringbankAccountHolderstring
الاستجابة 200application/json
Succès.
idstring (uuid)إلزاميcodestringإلزاميCode unique, attribué par l’ERP s’il n’est pas fourni.
مثالCLI-0042typestringإلزاميCLIENT,SUPPLIERouBOTH.القيمCLIENTSUPPLIERBOTHtypeLabelstringإلزاميمثالClientkindstringإلزاميالقيمINDIVIDUALCOMPANYnamestringإلزاميمثالSociété Exemple SARLemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullمثالTNtaxIdstring | nullMatricule fiscal / n° de TVA.
legalFormstring | nulltradeRegisterstring | nulltradeNamestring | nullDénomination commerciale (enseigne).
managerNamestring | nullNom du responsable (gérant, dirigeant).
categorystring | nulltagsstring[]إلزاميcurrencystringإلزاميDevise habituelle du tiers.
مثالTNDpaymentTermsDaysnumberإلزاميDélai de paiement (jours).
مثال30creditLimitnumberإلزاميPlafond d’encours (0 = illimité), devise du tiers.
مثال10000defaultDiscountPercentnumberإلزاميRemise par défaut (%).
مثال0preferredPaymentMethodstring | nullالقيمCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERaccountBalancenumberإلزاميSolde du compte du tiers (acomptes versés, avoirs portés au crédit), devise du tiers.
مثال0bankBankDetailsDtoإلزاميتفاصيل BankDetailsDto
archivedbooleanإلزاميArchivé (suppression logique).
createdAtstringإلزاميupdatedAtstringإلزاميcontactsPartnerContactDto[]إلزاميتفاصيل PartnerContactDto
addressesPartnerAddressDto[]إلزاميتفاصيل PartnerAddressDto
financialsPartnerFinancialsDtoإلزاميتفاصيل PartnerFinancialsDto
الأخطاء
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/partners/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "Société Exemple SARL",
"email": "contact@exemple.tn",
"country": "TN",
"currency": "TND",
"paymentTermsDays": 30,
"creditLimit": 10000,
"defaultDiscountPercent": 5
}'{
"success": true,
"data": {
"id": "006ce7c6-d389-43c0-8435-59136cb6ead1",
"code": "CLI-0042",
"type": "CLIENT",
"typeLabel": "Client",
"kind": "INDIVIDUAL",
"name": "Société Exemple SARL",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": "TN",
"taxId": "ce4ef841-d41d-4f12-8237-fcd48e819555",
"legalForm": null,
"tradeRegister": null,
"tradeName": null,
"managerName": null,
"category": null,
"tags": [
"string"
],
"currency": "TND",
"paymentTermsDays": 30,
"creditLimit": 10000,
"defaultDiscountPercent": 0,
"preferredPaymentMethod": "CASH",
"accountBalance": 0,
"bank": {
"bankName": null,
"iban": "TN5904018104003691234567",
"bic": null,
"accountHolder": null
},
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z",
"contacts": [
{
"id": "ebe7b025-2fbf-41b2-8983-ddb8b77c8d3d",
"name": "Sarra Ben Ali",
"role": "Comptabilité",
"email": null,
"phone": null,
"mobile": null,
"notes": null,
"isPrimary": true,
"updatedAt": "2026-10-02T09:15:00.000Z"
}
],
"addresses": [
{
"id": "0f77a31d-3027-4892-8542-16dc3f280949",
"kind": "BILLING",
"label": null,
"address": "string",
"city": null,
"postalCode": null,
"country": null,
"isDefault": true
}
],
"financials": {
"unpaidTotal": 1191,
"overdueTotal": 0,
"creditExceeded": false,
"aging": {
"d0_30": 0,
"d30_60": 0,
"d60_90": 0,
"d90plus": 0
}
}
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Contacts d’un tiers #
/api/public/v1/quosuite/partners/{id}/contactspartners:readlistPartnerContactsالمعاملات
idstring (uuid)المسارإلزاميIdentifiant du tiers.
langstringالاستعلامLangue des libellés (et du PDF). Défaut :
Accept-Language, sinon la langue de l’espace.frenar
الاستجابة 200application/json
Succès.
itemsPartnerContactDto[]إلزاميتفاصيل PartnerContactDto
الأخطاء
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/partners/aac39e3a-0c40-44b2-8697-b597f357c5a9/contacts' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "ebe7b025-2fbf-41b2-8983-ddb8b77c8d3d",
"name": "Sarra Ben Ali",
"role": "Comptabilité",
"email": null,
"phone": null,
"mobile": null,
"notes": null,
"isPrimary": true,
"updatedAt": "2026-10-02T09:15:00.000Z"
}
]
},
"timestamp": "2026-10-02T09:15:00.000Z"
}جرّب هذا الطلب
Ajouter un contact à un tiers #
/api/public/v1/quosuite/partners/{id}/contactspartners:writeآمن عند الإعادةcreatePartnerContactالمعاملات
idstring (uuid)المسارإلزاميIdentifiant du tiers.
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إلزاميمثالSarra Ben AlirolestringمثالComptabilitéemailstringphonestringmobilestringnotesstringisPrimarybooleanContact principal (remplace le précédent).
افتراضيfalse
الاستجابة 201application/json
Créé.
idstring (uuid)إلزاميnamestringإلزاميمثالSarra Ben Alirolestring | nullمثالComptabilitéemailstring | nullphonestring | nullmobilestring | nullnotesstring | nullisPrimarybooleanإلزامي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/partners/aac39e3a-0c40-44b2-8697-b597f357c5a9/contacts' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"name": "Sarra Ben Ali"
}'{
"success": true,
"data": {
"id": "ebe7b025-2fbf-41b2-8983-ddb8b77c8d3d",
"name": "Sarra Ben Ali",
"role": "Comptabilité",
"email": null,
"phone": null,
"mobile": null,
"notes": null,
"isPrimary": true,
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}مولَّدة من عقد OpenAPI لـ QuoSuite API الإصدار 1.0.0.