Clients
- GET
/car-rental/customersLister les clients de location - POST
/car-rental/customersCréer ou retrouver un client de location - GET
/car-rental/customers/{id}Détail d’un client de location
Lister les clients de location #
/api/public/v1/quosuite/car-rental/customersrental_customers:readlistRentalCustomersClients ERP (clients et mixtes) avec leurs pièces de conducteur. email exact, search (nom, code, téléphone, permis, pièce), withRentals=true : seulement ceux qui ont loué ou réservé. Tri permis : name, code, createdAt, updatedAt (défaut name).
Paramètres
langstringrequêteLangue des libellés (et du PDF). Défaut :
Accept-Language, sinon la langue de l’espace.frenarpagenumberrequêteNuméro de page (à partir de 1).
pageSizenumberrequêteÉléments par page (100 au plus).
sortstringrequêteTri : 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.updatedSincestringrequêteNe 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.cursorstringrequêtePagination 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.limitnumberrequêtePagination par curseur : éléments par page (100 au plus).
?limit=100ouvre un parcours par curseur ; la réponse rendpagination.nextCursor.emailstringrequêteEmail exact (insensible à la casse).
searchstringrequêteNom, code, téléphone, permis, pièce d’identité (contient).
withRentalsbooleanrequêteSeulement ceux qui ont au moins une réservation ou un contrat.
Réponse 200application/json
Succès.
itemsRentalCustomerDto[]obligatoireDétail de RentalCustomerDto
paginationPaginationDtoobligatoireDétail de PaginationDto
Erreurs
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/car-rental/customers' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "e7229b31-e9b4-490a-897f-40583f2bff19",
"code": "CLI-0042",
"name": "Sami Ben Ali",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": null,
"currency": "TND",
"identity": {
"birthDate": "2026-10-02",
"nationality": null,
"drivingLicenseNumber": null,
"drivingLicenseIssuedAt": "2026-10-02T09:15:00.000Z",
"drivingLicenseExpiresAt": "2026-10-02T09:15:00.000Z",
"identityNumber": null,
"identityExpiresAt": "2026-10-02T09:15:00.000Z",
"passportNumber": null,
"passportExpiresAt": "2026-10-02T09:15:00.000Z"
},
"reservationCount": 3,
"contractCount": 2,
"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"
}Essayer cette requête
Créer ou retrouver un client de location #
/api/public/v1/quosuite/car-rental/customersrental_customers:writeIdempotentupsertRentalCustomerDédoublonné par email : un client portant déjà cet email (insensible à la casse) est retrouvé et complété là où sa fiche est vide (created: false) ; sinon il est créé (created: true). Rend toujours 200 : la même requête rejouée rend le même client.
Paramètres
Idempotency-Keystringen-têteClé 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.
Corps de la requête application/json
firstNamestringobligatoireex.SamilastNamestringobligatoireex.Ben AliemailstringobligatoireClé de dédoublonnage du client ERP.
ex.sami@example.tnphonestringex.+216 20 000 000birthDatestringex.1990-04-12drivingLicenseNumberstringex.TN-123456drivingLicenseIssuedAtstringex.2012-05-01drivingLicenseExpiresAtstringidentityNumberstringpassportNumberstringnationalitystringaddressstringcitystringcountrystringflightNumberstringVol ou train d’arrivée.
ex.TU 712secondDriverNamestringsecondDriverLicensestring
Réponse 200application/json
Succès.
idstring (uuid)obligatoireFiche client ERP (aussi
GET /partners/{id}).codestringobligatoireex.CLI-0042namestringobligatoireex.Sami Ben Aliemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullcurrencystringobligatoireex.TNDidentityRentalCustomerIdentityDtoobligatoireDétail de RentalCustomerIdentityDto
reservationCountnumberobligatoireRéservations du module à son nom.
ex.3contractCountnumberobligatoireContrats à son nom.
ex.2archivedbooleanobligatoirecreatedAtstringobligatoireupdatedAtstringobligatoirecreatedbooleanobligatoirefalse: un client portant cet email existait déjà (dédoublonnage) et a été complété.
Erreurs
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.
# Une clé par opération, réutilisée telle quelle à chaque nouvel essai.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/customers' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"firstName": "Sami",
"lastName": "Ben Ali",
"email": "sami@example.tn"
}'{
"success": true,
"data": {
"id": "351d526b-7f37-4bba-8b8a-de92b97da8ed",
"code": "CLI-0042",
"name": "Sami Ben Ali",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": null,
"currency": "TND",
"identity": {
"birthDate": "2026-10-02",
"nationality": null,
"drivingLicenseNumber": null,
"drivingLicenseIssuedAt": "2026-10-02T09:15:00.000Z",
"drivingLicenseExpiresAt": "2026-10-02T09:15:00.000Z",
"identityNumber": null,
"identityExpiresAt": "2026-10-02T09:15:00.000Z",
"passportNumber": null,
"passportExpiresAt": "2026-10-02T09:15:00.000Z"
},
"reservationCount": 3,
"contractCount": 2,
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z",
"created": true
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Détail d’un client de location #
/api/public/v1/quosuite/car-rental/customers/{id}rental_customers:readgetRentalCustomerParamètres
idstring (uuid)cheminobligatoirelangstringrequêteLangue des libellés (et du PDF). Défaut :
Accept-Language, sinon la langue de l’espace.frenar
Réponse 200application/json
Succès.
idstring (uuid)obligatoireFiche client ERP (aussi
GET /partners/{id}).codestringobligatoireex.CLI-0042namestringobligatoireex.Sami Ben Aliemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullcurrencystringobligatoireex.TNDidentityRentalCustomerIdentityDtoobligatoireDétail de RentalCustomerIdentityDto
reservationCountnumberobligatoireRéservations du module à son nom.
ex.3contractCountnumberobligatoireContrats à son nom.
ex.2archivedbooleanobligatoirecreatedAtstringobligatoireupdatedAtstringobligatoire
Erreurs
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/car-rental/customers/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"id": "e7229b31-e9b4-490a-897f-40583f2bff19",
"code": "CLI-0042",
"name": "Sami Ben Ali",
"email": null,
"phone": null,
"mobile": null,
"address": null,
"city": null,
"country": null,
"currency": "TND",
"identity": {
"birthDate": "2026-10-02",
"nationality": null,
"drivingLicenseNumber": null,
"drivingLicenseIssuedAt": "2026-10-02T09:15:00.000Z",
"drivingLicenseExpiresAt": "2026-10-02T09:15:00.000Z",
"identityNumber": null,
"identityExpiresAt": "2026-10-02T09:15:00.000Z",
"passportNumber": null,
"passportExpiresAt": "2026-10-02T09:15:00.000Z"
},
"reservationCount": 3,
"contractCount": 2,
"archived": true,
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Essayer cette requête
Générée depuis le contrat OpenAPI QuoSuite API v1.0.0.