Developers
Reference · Car rental

Availability

Search active vehicles and their availability #

GET/api/public/v1/quosuite/car-rental/availability
Scope : rental:readsearchRentalAvailability

Pick-up agency, category, fuel type, gearbox, seats and dates → all matching active, non-archived vehicles, each with available (free over the whole period, including the buffer) and its price computed by the module (season × duration grid, VAT, document-level taxes, deposit, included mileage), plus a summary per category. includeUnavailable=false returns only available vehicles. siteId restricts to vehicles published on that website; currency adds converted amounts (display only). Active invoice taxes and charges for the selected agencies are included; with siteId, mandatory options are included and the applicable catalog is returned. Past pick-up, inverted period or more than 365 days: 422.

QuoRent keys (qsr_): accepted — same scopes; payments:write reads as rental_payments:write.

Parameters

  • langstringquery

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

    frenar
  • returnAgencyIdstring (uuid)query

    Return agency used to calculate delivery fees.

  • startAtstringqueryrequired

    Pick-up (ISO 8601).

  • endAtstringqueryrequired

    Return (ISO 8601).

  • pickupAgencyIdstring (uuid)query

    Pick-up agency: its vehicles and the shared vehicles.

  • categorystring[]query

    Category keys, comma-separated.

  • fuelstring[]query

    Fuel types, comma-separated.

  • gearboxstringquery

    Gearbox (contained text, case-insensitive).

  • seatsMinnumberquery
  • siteIdstring (uuid)query

    Restrict to vehicles published on this rental website.

  • currencystringquery

    Display currency: amounts converted at the workspace rate in display.

  • includeUnavailablebooleanquery

    Include occupied vehicles (available: false), included by default. false returns only available vehicles.

Response 200application/json

Success.

  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • currencystringrequired
    e.g.TND
  • itemsRentalAvailableVehicleDto[]required
    RentalAvailableVehicleDto details
  • categoriesRentalCategoryAvailabilityDto[]required
    RentalCategoryAvailabilityDto details
  • noticesRentalNoticeDto[]required

    Warnings from the rental policy (minimum duration…), non-blocking.

    RentalNoticeDto 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.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

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
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/availability' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "period": {
      "startAt": "2026-12-20T09:00:00.000Z",
      "endAt": "2026-12-27T09:00:00.000Z",
      "days": 7
    },
    "currency": "TND",
    "items": [
      {
        "vehicle": {
          "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
          "plate": "245 TU 1234",
          "brand": "Peugeot",
          "model": "208",
          "category": "Citadine",
          "fuel": "DIESEL",
          "gearbox": "Manuelle",
          "seats": 5
        },
        "agencyId": "ee98c7cb-fbba-4dfe-8568-afb670e82921",
        "available": true,
        "quote": {
          "options": [
            {
              "id": "2499fb44-fd80-44ae-8a23-784dcf2695f5",
              "code": "gps",
              "kind": "INSURANCE",
              "name": "GPS",
              "perDay": true,
              "mandatory": true,
              "selected": true,
              "billedPerDay": true,
              "capped": true,
              "unitPrice": 0,
              "vatRate": 0,
              "totalExclTax": null,
              "maxQuantity": 0,
              "maxAmount": null,
              "quantity": 1,
              "totalInclTax": 41.65
            }
          ],
          "days": 7,
          "dailyRate": 92.857,
          "vatRate": 19,
          "totalExclTax": 650,
          "totalVat": 123.5,
          "taxes": [
            {
              "label": "Timbre fiscal",
              "amount": 1,
              "taxRateId": "fa39be0f-bd54-45e6-8881-f6669dd38479",
              "computation": "PERCENTAGE",
              "stage": "BEFORE_VAT",
              "rate": 0,
              "base": 0,
              "unitAmount": 0,
              "position": 0
            }
          ],
          "totalInclTax": 774.5,
          "deposit": 500,
          "includedKm": 1400,
          "extraKmRate": 0.3,
          "currency": "TND"
        },
        "display": {
          "currency": "EUR",
          "dailyRate": 27.72,
          "totalInclTax": 231.19,
          "deposit": 149.25
        },
        "publicationSlug": "peugeot-208"
      }
    ],
    "categories": [
      {
        "key": "citadine",
        "label": "Citadine",
        "available": 3,
        "fromTotalInclTax": 774.5
      }
    ],
    "notices": [
      {
        "code": "MIN_RENTAL_DAYS",
        "minRentalDays": 3
      }
    ]
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Vehicle availability over a period #

GET/api/public/v1/quosuite/car-rental/vehicles/{id}/availability
Scope : rental:readgetRentalVehicleAvailability

Occupations du véhicule sur la fenêtre (réservations, contrats, retards, immobilisations) — nature, statut et dates seulement, sans client ni numéro de pièce. Défaut : 30 jours à partir de maintenant ; 366 jours au plus. QuoRent: vehicleId, from, to, free and rentable describe the searched window; busy lists future pending or confirmed reservations starting at or after to (startAt, endAt only).

QuoRent keys (qsr_): accepted — same scopes; payments:write reads as rental_payments:write.

Parameters

  • idstring (uuid)pathrequired
  • langstringquery

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

    frenar
  • fromstringquery

    Start of the window (default: now).

  • tostringquery

    End of the window (default: 30 days; 366 days at most).

Response 200application/json

Success.

  • vehicleIdstring (uuid)required
  • statusstringrequired
    valuesACTIVEMAINTENANCEOUT_OF_SERVICE
  • rentablebooleanrequired

    In service and not archived.

  • fromstringrequired
  • tostringrequired
  • freebooleanrequired

    Rentable and with no occupation over the whole window.

  • bufferHoursnumberrequired

    Buffer between two rentals (hours).

    e.g.2
  • busyRentalBusyPeriodDto[]required

    Occupations in the window — with no customer name and no document number.

    RentalBusyPeriodDto 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.

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/vehicles/aac39e3a-0c40-44b2-8697-b597f357c5a9/availability' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "vehicleId": "a6e5dfc2-3035-4baa-8f17-e19f9a46de89",
    "status": "ACTIVE",
    "rentable": true,
    "from": "string",
    "to": "string",
    "free": true,
    "bufferHours": 2,
    "busy": [
      {
        "kind": "RESERVATION",
        "status": "CONFIRMED",
        "startAt": "2026-10-02T09:15:00.000Z",
        "endAt": "2026-10-02T09:15:00.000Z",
        "overdue": true
      }
    ]
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Quote a booking (without booking) #

POST/api/public/v1/quosuite/car-rental/quotes
Scope : rental:readquoteRentalBooking

Le chiffrage exact d’une future réservation, par le même calcul que la création : véhicule (publié sur le site si siteId, sinon de la flotte), période, agences, options (site seulement) → disponibilité, lignes (frais de livraison inter-agences compris), taxes de pied de la facture, total TTC (celui qui sera facturé), caution, kilométrage, règles du canal API dont la politique de paiement et le montant à payer en réservant (rules.dueOnBooking). N’écrit rien et ne retient rien. Les frais sont ponctuels et directionnels : agence du véhicule → départ, puis retour → agence du véhicule ; sans tarif configuré, aucun frais. La recherche GET /car-rental/availability chiffre aussi les trajets des agences choisies ; ce chiffrage permet en plus de choisir les options avant de réserver. Les réglages du site requireAvailability, allAgencyVehicles et showDeliveryFees ne modifient pas le canal API.

QuoRent keys (qsr_): accepted — same scopes; payments:write reads as rental_payments:write.

Request body application/json

  • siteIdstring (uuid)

    Rental site whose catalogue applies (vehicle published on this site, paid options; Website module). Without a site: any active vehicle of the fleet, without options. In both cases the API channel settings apply (open or closed, payment policy, lead times, branches, emails).

  • vehicleIdstring (uuid)required

    Fleet vehicle (published on the site if siteId is given).

  • startAtstringrequired
    e.g.2026-12-20T09:00:00Z
  • endAtstringrequired
    e.g.2026-12-27T09:00:00Z
  • pickupAgencyIdstring (uuid)
  • returnAgencyIdstring (uuid)
  • optionsRentalOptionChoiceInput[]
    RentalOptionChoiceInput details
  • langstring
    valuesfrenar

Response 200application/json

Success.

  • siteIdstring (uuid) | null
  • vehicleIdstring (uuid)required
  • availablebooleanrequired

    Free over the period — checked again at booking time.

  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • pickupAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • returnAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • linesRentalQuoteLineDto[]required
    RentalQuoteLineDto details
  • optionsRentalQuotedOptionDto[]required

    Applicable catalogue, chosen options ticked.

    RentalQuotedOptionDto details
  • taxesRentalTaxAmountDto[]required
    RentalTaxAmountDto details
  • totalExclTaxnumberrequired
    e.g.805
  • totalVatnumberrequired
    e.g.152.95
  • totalInclTaxnumberrequired

    Amount of the booking and of the invoice.

    e.g.958.95
  • depositnumberrequired
    e.g.500
  • mileageRentalMileagePolicyDtorequired
    RentalMileagePolicyDto details
  • currencystringrequired
    e.g.TND
  • displayRentalDisplayAmountsDtorequired

    In the website currency if siteId is provided, otherwise the workspace currency.

    RentalDisplayAmountsDto details
  • noticesRentalNoticeDto[]required
    RentalNoticeDto details
  • rulesRentalBookingRulesDtorequired
    RentalBookingRulesDto 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.

404NOT_FOUND

Resource not found — or belonging to another workspace, which amounts to the same.

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
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/quotes' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "vehicleId": "1d6ae066-9e3b-43fa-864e-4333ae79e225",
  "startAt": "2026-12-20T09:00:00Z",
  "endAt": "2026-12-27T09:00:00Z"
}'
Response example
{
  "success": true,
  "data": {
    "siteId": "a2ca6570-98e2-4c2c-8b96-6561cdb5a1f5",
    "vehicleId": "707c138b-b96c-4eee-8a0f-e7629b9b2011",
    "available": true,
    "period": {
      "startAt": "2026-12-20T09:00:00.000Z",
      "endAt": "2026-12-27T09:00:00.000Z",
      "days": 7
    },
    "pickupAgency": {
      "id": "b91c3927-1f63-45da-8d9c-9f48a57b7481",
      "code": "TUN",
      "name": "Tunis Centre"
    },
    "returnAgency": {
      "id": "b91c3927-1f63-45da-8d9c-9f48a57b7481",
      "code": "TUN",
      "name": "Tunis Centre"
    },
    "lines": [
      {
        "kind": "RENTAL",
        "label": "Location Peugeot 208",
        "quantity": 7,
        "unitPrice": 100,
        "vatRate": 19,
        "totalExclTax": 700,
        "totalInclTax": 833
      }
    ],
    "options": [
      {
        "id": "2499fb44-fd80-44ae-8a23-784dcf2695f5",
        "code": "gps",
        "kind": "INSURANCE",
        "name": "GPS",
        "perDay": true,
        "mandatory": true,
        "selected": true,
        "billedPerDay": true,
        "capped": true,
        "unitPrice": 0,
        "vatRate": 0,
        "totalExclTax": null,
        "maxQuantity": 0,
        "maxAmount": null,
        "quantity": 1,
        "totalInclTax": 41.65
      }
    ],
    "taxes": [
      {
        "label": "Timbre fiscal",
        "amount": 1,
        "taxRateId": "fa39be0f-bd54-45e6-8881-f6669dd38479",
        "computation": "PERCENTAGE",
        "stage": "BEFORE_VAT",
        "rate": 0,
        "base": 0,
        "unitAmount": 0,
        "position": 0
      }
    ],
    "totalExclTax": 805,
    "totalVat": 152.95,
    "totalInclTax": 958.95,
    "deposit": 500,
    "mileage": {
      "includedKmPerDay": 200,
      "extraKmRate": 0.3
    },
    "currency": "TND",
    "display": {
      "currency": "EUR",
      "dailyRate": 27.72,
      "totalInclTax": 231.19,
      "deposit": 149.25
    },
    "notices": [
      {
        "code": "MIN_RENTAL_DAYS",
        "minRentalDays": 3
      }
    ],
    "rules": {
      "holdMinutes": 30,
      "minLeadHours": 2,
      "payAtAgency": true,
      "payment": {
        "flow": "PAY_ON_BOOKING",
        "onBooking": {
          "type": "FULL",
          "value": 30
        },
        "onAcceptance": {
          "type": "FULL",
          "value": 30
        },
        "requestTtlHours": 24,
        "paymentDeadlineHours": 48
      },
      "dueOnBooking": 287.69,
      "freeCancellationHours": 48,
      "cancellationFeePercent": 20
    }
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Generated from the QuoSuite API OpenAPI contract v1.0.0.