Customers
- GET
/car-rental/customersList rental customers - POST
/car-rental/customersCreate or find a rental customer - GET
/car-rental/customers/{id}Get a rental customer
List rental customers #
/api/public/v1/quosuite/car-rental/customersrental_customers:readlistRentalCustomersERP customers (customers and mixed records) with their driver documents. Exact email, search (name, code, phone, licence, identity document), withRentals=true: only those who rented or booked. Allowed sort: name, code, createdAt, updatedAt (default name).
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.emailstringqueryExact email (case-insensitive).
searchstringqueryName, code, phone, licence, identity document (contains).
withRentalsbooleanqueryOnly those with at least one reservation or agreement.
Response 200application/json
Success.
itemsRentalCustomerDto[]requiredRentalCustomerDto 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/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"
}Try this request
Create or find a rental customer #
/api/public/v1/quosuite/car-rental/customersrental_customers:writeIdempotentupsertRentalCustomerDeduplicated by email: a customer already holding this email (case-insensitive) is found and completed where the record is empty (created: false); otherwise it is created (created: true). Always returns 200: the same request replayed returns the same customer.
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
firstNamestringrequirede.g.SamilastNamestringrequirede.g.Ben AliemailstringrequiredDeduplication key of the ERP customer.
e.g.sami@example.tnphonestringe.g.+216 20 000 000birthDatestringe.g.1990-04-12drivingLicenseNumberstringe.g.TN-123456drivingLicenseIssuedAtstringe.g.2012-05-01drivingLicenseExpiresAtstringidentityNumberstringpassportNumberstringnationalitystringaddressstringcitystringcountrystringflightNumberstringArrival flight or train.
e.g.TU 712secondDriverNamestringsecondDriverLicensestring
Response 200application/json
Success.
idstring (uuid)requiredERP customer record (also
GET /partners/{id}).codestringrequirede.g.CLI-0042namestringrequirede.g.Sami Ben Aliemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullcurrencystringrequirede.g.TNDidentityRentalCustomerIdentityDtorequiredRentalCustomerIdentityDto details
reservationCountnumberrequiredModule reservations in their name.
e.g.3contractCountnumberrequiredAgreements in their name.
e.g.2archivedbooleanrequiredcreatedAtstringrequiredupdatedAtstringrequiredcreatedbooleanrequiredfalse: a customer with this email already existed (deduplication) and was completed.
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.
# One key per operation, reused as is on every retry.
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"
}Get a rental customer #
/api/public/v1/quosuite/car-rental/customers/{id}rental_customers:readgetRentalCustomerParameters
idstring (uuid)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requiredERP customer record (also
GET /partners/{id}).codestringrequirede.g.CLI-0042namestringrequirede.g.Sami Ben Aliemailstring | nullphonestring | nullmobilestring | nulladdressstring | nullcitystring | nullcountrystring | nullcurrencystringrequirede.g.TNDidentityRentalCustomerIdentityDtorequiredRentalCustomerIdentityDto details
reservationCountnumberrequiredModule reservations in their name.
e.g.3contractCountnumberrequiredAgreements in their name.
e.g.2archivedbooleanrequiredcreatedAtstringrequiredupdatedAtstringrequired
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/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"
}Try this request
Generated from the QuoSuite API OpenAPI contract v1.0.0.