Developers
Reference · Car rental

Customers

List rental customers #

GET/api/public/v1/quosuite/car-rental/customers
Scope : rental_customers:readlistRentalCustomers

ERP 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

  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar
  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description. A final criterion on id makes pagination stable.

  • updatedSincestringquery

    Only returns items created or updated since this instant (ISO 8601, inclusive). With sort=updatedAt, this is the recommended form of an incremental sync.

  • cursorstringquery

    Cursor pagination: nextCursor of 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 with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • emailstringquery

    Exact email (case-insensitive).

  • searchstringquery

    Name, code, phone, licence, identity document (contains).

  • withRentalsbooleanquery

    Only those with at least one reservation or agreement.

Response 200application/json

Success.

  • itemsRentalCustomerDto[]required
    RentalCustomerDto details
  • paginationPaginationDtorequired
    PaginationDto 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.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/customers' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "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 #

POST/api/public/v1/quosuite/car-rental/customers
Scope : rental_customers:writeIdempotentupsertRentalCustomer

Deduplicated 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-Keystringheader

    Idempotency 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: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • firstNamestringrequired
    e.g.Sami
  • lastNamestringrequired
    e.g.Ben Ali
  • emailstringrequired

    Deduplication key of the ERP customer.

    e.g.sami@example.tn
  • phonestring
    e.g.+216 20 000 000
  • birthDatestring
    e.g.1990-04-12
  • drivingLicenseNumberstring
    e.g.TN-123456
  • drivingLicenseIssuedAtstring
    e.g.2012-05-01
  • drivingLicenseExpiresAtstring
  • identityNumberstring
  • passportNumberstring
  • nationalitystring
  • addressstring
  • citystring
  • countrystring
  • flightNumberstring

    Arrival flight or train.

    e.g.TU 712
  • secondDriverNamestring
  • secondDriverLicensestring

Response 200application/json

Success.

  • idstring (uuid)required

    ERP customer record (also GET /partners/{id}).

  • codestringrequired
    e.g.CLI-0042
  • namestringrequired
    e.g.Sami Ben Ali
  • emailstring | null
  • phonestring | null
  • mobilestring | null
  • addressstring | null
  • citystring | null
  • countrystring | null
  • currencystringrequired
    e.g.TND
  • identityRentalCustomerIdentityDtorequired
    RentalCustomerIdentityDto details
  • reservationCountnumberrequired

    Module reservations in their name.

    e.g.3
  • contractCountnumberrequired

    Agreements in their name.

    e.g.2
  • archivedbooleanrequired
  • createdAtstringrequired
  • updatedAtstringrequired
  • createdbooleanrequired

    false: 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.

Request example
# 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"
}'
Response example
{
  "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 #

GET/api/public/v1/quosuite/car-rental/customers/{id}
Scope : rental_customers:readgetRentalCustomer

Parameters

  • idstring (uuid)pathrequired
  • langstringquery

    Language of the labels (and of the PDF). Default: Accept-Language, otherwise the workspace language.

    frenar

Response 200application/json

Success.

  • idstring (uuid)required

    ERP customer record (also GET /partners/{id}).

  • codestringrequired
    e.g.CLI-0042
  • namestringrequired
    e.g.Sami Ben Ali
  • emailstring | null
  • phonestring | null
  • mobilestring | null
  • addressstring | null
  • citystring | null
  • countrystring | null
  • currencystringrequired
    e.g.TND
  • identityRentalCustomerIdentityDtorequired
    RentalCustomerIdentityDto details
  • reservationCountnumberrequired

    Module reservations in their name.

    e.g.3
  • contractCountnumberrequired

    Agreements in their name.

    e.g.2
  • archivedbooleanrequired
  • createdAtstringrequired
  • updatedAtstringrequired

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.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/customers/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "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.