Developers
Reference · Car rental

Customer accounts

Sign a customer in #

POST/api/public/v1/quosuite/car-rental/accounts/login
Scope : rental_accounts:writeloginRentalAccount

Email and password → session, valid for 30 days and extended on each use. Failure (unknown email, wrong password, disabled account): 401 CUSTOMER_AUTH_FAILED, without saying which. Limit attempts on your side (per visitor IP address).

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

Request body application/json

  • siteIdstring (uuid)

    Rental site the account belongs to — its accounts are those of the site’s customer area (Website module). Without siteId: an API channel account, specific to your integrations. One email can have an account in each; they are kept separate.

  • emailstringrequired
    max.length 200e.g.sami@example.tn
  • passwordstringrequired
    max.length 200
  • localestring
    valuesfrenar

Response 200application/json

Success.

  • accountRentalAccountDtorequired
    RentalAccountDto details
  • sessionstringrequired

    Customer session, to send back in the X-Rental-Session header of the /car-rental/accounts/me… routes. Secret: keep it server-side or in an HttpOnly cookie of your site. Extended on each use.

    e.g.mJ4w7c2Vt0b…
  • expiresAtstringrequired

    Session expiry.

    e.g.2026-12-21T09:15:00.000Z

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.

401CUSTOMER_AUTH_FAILED

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or customer sign-in refused: wrong email or password, without saying which.

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/accounts/login' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "sami@example.tn",
  "password": "string"
}'
Response example
{
  "success": true,
  "data": {
    "account": {
      "id": "3107a26c-e555-4d0c-8dec-74a54fb19e45",
      "siteId": "6207262f-df38-452a-8101-4368ca632fc1",
      "customerId": "16d8b5c8-95d5-4528-8155-fcc18a945bd5",
      "email": "sami@example.tn",
      "firstName": "Sami",
      "lastName": "Ben Ali",
      "phone": "+216 22 000 000",
      "locale": "fr",
      "acceptsMarketing": true,
      "driverProfile": {
        "birthDate": "1990-04-12",
        "drivingLicenseNumber": {},
        "drivingLicenseIssuedAt": {},
        "drivingLicenseExpiresAt": {},
        "identityNumber": {},
        "passportNumber": {},
        "nationality": {},
        "address": {},
        "city": {},
        "country": {}
      },
      "createdAt": "2026-11-21T09:15:00.000Z"
    },
    "session": "mJ4w7c2Vt0b…",
    "expiresAt": "2026-12-21T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Sign a customer out #

POST/api/public/v1/quosuite/car-rental/accounts/logout
Scope : rental_accounts:writelogoutRentalAccount

Closes the session sent; the account’s other sessions stay open.

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

Parameters

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • okbooleanrequired
    e.g.true

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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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.

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/accounts/logout' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "ok": true
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Signed-in customer’s account #

GET/api/public/v1/quosuite/car-rental/accounts/me
Scope : rental_accounts:readgetRentalAccount

Contact details and driver documents (they prefill a booking’s driver), ERP customer record (customerId).

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

Parameters

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • idstring (uuid)required
  • siteIdstring (uuid) | nullrequired

    Rental site of the account; null: API channel account.

  • customerIdstring (uuid)required

    ERP customer record of the account (customerId of bookings, GET /car-rental/customers/{id}).

  • emailstringrequired
    e.g.sami@example.tn
  • firstNamestring | nullrequired
    e.g.Sami
  • lastNamestring | nullrequired
    e.g.Ben Ali
  • phonestring | nullrequired
    e.g.+216 22 000 000
  • localestring | nullrequired
    e.g.fr
  • acceptsMarketingbooleanrequired
  • driverProfileRentalDriverProfileDtorequired

    Driver documents entered by the customer: they prefill driver.

    RentalDriverProfileDto details
  • createdAtstringrequired
    e.g.2026-11-21T09:15:00.000Z

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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "3107a26c-e555-4d0c-8dec-74a54fb19e45",
    "siteId": "6207262f-df38-452a-8101-4368ca632fc1",
    "customerId": "16d8b5c8-95d5-4528-8155-fcc18a945bd5",
    "email": "sami@example.tn",
    "firstName": "Sami",
    "lastName": "Ben Ali",
    "phone": "+216 22 000 000",
    "locale": "fr",
    "acceptsMarketing": true,
    "driverProfile": {
      "birthDate": "1990-04-12",
      "drivingLicenseNumber": {},
      "drivingLicenseIssuedAt": {},
      "drivingLicenseExpiresAt": {},
      "identityNumber": {},
      "passportNumber": {},
      "nationality": {},
      "address": {},
      "city": {},
      "country": {}
    },
    "createdAt": "2026-11-21T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Update the signed-in customer’s account #

PATCH/api/public/v1/quosuite/car-rental/accounts/me
Scope : rental_accounts:writeupdateRentalAccount

Name, phone, language, consent, driver documents. The ERP customer record follows the name and phone; its documents are only filled where empty (the branch stays in charge of what it has checked). The email does not change: it identifies the account.

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

Parameters

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Request body application/json

  • firstNamestring
    max.length 120
  • lastNamestring
    max.length 120
  • phonestring
    max.length 40
  • acceptsMarketingboolean
  • localestring
    valuesfrenar
  • birthDatestring
    e.g.1990-04-12
  • drivingLicenseNumberstring
    max.length 60
  • drivingLicenseIssuedAtstring
    e.g.2012-06-01
  • drivingLicenseExpiresAtstring
    e.g.2032-06-01
  • identityNumberstring
    max.length 60
  • passportNumberstring
    max.length 60
  • nationalitystring
    max.length 80
  • addressstring
    max.length 300
  • citystring
    max.length 120
  • countrystring
    max.length 80

Response 200application/json

Success.

  • idstring (uuid)required
  • siteIdstring (uuid) | nullrequired

    Rental site of the account; null: API channel account.

  • customerIdstring (uuid)required

    ERP customer record of the account (customerId of bookings, GET /car-rental/customers/{id}).

  • emailstringrequired
    e.g.sami@example.tn
  • firstNamestring | nullrequired
    e.g.Sami
  • lastNamestring | nullrequired
    e.g.Ben Ali
  • phonestring | nullrequired
    e.g.+216 22 000 000
  • localestring | nullrequired
    e.g.fr
  • acceptsMarketingbooleanrequired
  • driverProfileRentalDriverProfileDtorequired

    Driver documents entered by the customer: they prefill driver.

    RentalDriverProfileDto details
  • createdAtstringrequired
    e.g.2026-11-21T09:15:00.000Z

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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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 -X PATCH 'https://quosuite.com/api/public/v1/quosuite/car-rental/accounts/me' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "birthDate": "1990-04-12",
  "drivingLicenseIssuedAt": "2012-06-01",
  "drivingLicenseExpiresAt": "2032-06-01"
}'
Response example
{
  "success": true,
  "data": {
    "id": "3107a26c-e555-4d0c-8dec-74a54fb19e45",
    "siteId": "6207262f-df38-452a-8101-4368ca632fc1",
    "customerId": "16d8b5c8-95d5-4528-8155-fcc18a945bd5",
    "email": "sami@example.tn",
    "firstName": "Sami",
    "lastName": "Ben Ali",
    "phone": "+216 22 000 000",
    "locale": "fr",
    "acceptsMarketing": true,
    "driverProfile": {
      "birthDate": "1990-04-12",
      "drivingLicenseNumber": {},
      "drivingLicenseIssuedAt": {},
      "drivingLicenseExpiresAt": {},
      "identityNumber": {},
      "passportNumber": {},
      "nationality": {},
      "address": {},
      "city": {},
      "country": {}
    },
    "createdAt": "2026-11-21T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Signed-in customer’s bookings #

GET/api/public/v1/quosuite/car-rental/accounts/me/bookings
Scope : rental_accounts:readlistRentalAccountBookings

Their bookings — those made while signed in, on the account’s site or through the API —, from the furthest to the oldest (200 at most), in the shape of GET /car-rental/bookings.

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
  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • itemsRentalAccountBookingDto[]required
    RentalAccountBookingDto 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/bookings' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "e57a9f43-9182-40aa-8f83-6e46456d347d",
        "number": "RES-2026-0042",
        "source": "WEBSITE",
        "status": "PENDING_PAYMENT",
        "statusLabel": "Confirmée",
        "paymentMode": "ONLINE",
        "paymentStatus": "NONE",
        "holdExpiresAt": "2026-10-02T09:15:00.000Z",
        "requestExpiresAt": "2026-10-02T09:15:00.000Z",
        "acceptedAt": "2026-10-02T09:15:00.000Z",
        "paymentTerm": {
          "type": "FULL",
          "value": 30
        },
        "paymentLink": {
          "id": "83ffc5fd-bdc9-4062-8087-a7ae7c56738d",
          "url": "https://portail.quosuite.com/pay/…",
          "amount": 287.69,
          "paidAmount": 0,
          "currency": "TND",
          "status": "ACTIVE",
          "expiresAt": "2026-10-02T09:15:00.000Z"
        },
        "siteId": "522e1530-4168-4d3e-8218-3f95e4ab94d9",
        "vehicle": {
          "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
          "plate": "245 TU 1234",
          "brand": "Peugeot",
          "model": "208",
          "category": "Citadine",
          "fuel": "DIESEL",
          "gearbox": "Manuelle",
          "seats": 5
        },
        "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"
        },
        "options": [
          {
            "optionId": "e966bb34-017e-440c-8e00-473dd1ccd625",
            "code": "gps",
            "label": "GPS",
            "quantity": 1,
            "perDay": true,
            "totalExclTax": 35,
            "totalInclTax": 41.65
          }
        ],
        "amounts": {
          "currency": "TND",
          "totalExclTax": 805,
          "totalVat": 152.95,
          "totalInclTax": 958.95,
          "deposit": 500,
          "due": 287.69,
          "paid": 958.95,
          "refunded": 0,
          "balanceDue": 0,
          "displayCurrency": "EUR",
          "displayTotalInclTax": 286.25
        },
        "deposit": {
          "status": "NONE",
          "statusLabel": "Détenue",
          "amount": 500,
          "method": "CASH",
          "returned": 0,
          "retained": 0
        },
        "customer": {
          "partnerId": "e85b60de-77d7-4856-8804-216b603b1c25",
          "name": "Sami Ben Ali",
          "email": "sami@example.tn",
          "phone": null
        },
        "driver": {
          "firstName": null,
          "lastName": null,
          "phone": null,
          "flightNumber": "TU 712",
          "secondDriverName": null
        },
        "reservation": {
          "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
          "number": "CTR-2026-0042",
          "status": "OPEN",
          "statusLabel": "En cours"
        },
        "contract": {
          "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
          "number": "CTR-2026-0042",
          "status": "OPEN",
          "statusLabel": "En cours"
        },
        "invoice": {
          "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
          "number": "CTR-2026-0042",
          "status": "OPEN",
          "statusLabel": "En cours"
        },
        "documents": {
          "voucher": true,
          "contract": true,
          "invoice": true
        },
        "trackingUrl": "https://location.exemple.tn/booking/track/…",
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "2026-10-02T09:15:00.000Z"
      }
    ]
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Book for the signed-in customer #

POST/api/public/v1/quosuite/car-rental/accounts/me/bookings
Scope : rental_accounts:writeIdempotentcreateRentalAccountBooking

Same body, same rules and same responses as POST /car-rental/bookings, the booking being attached to the account: the account’s customer record (customerId refused if it names another one), the account’s site — or none for an API channel account (siteId refused if it names another one). It then appears in GET /car-rental/accounts/me/bookings. PREPAID also requires the payments scope.

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

Parameters

  • Idempotency-Keystringheaderrequired

    Mandatory on this route. Idempotency key (1–255 printable ASCII characters, UUID v4 recommended). A new attempt 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 running: 409 IDEMPOTENCY_IN_PROGRESS. As for POST /car-rental/bookings: the key is kept with no expiry on the booking.

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

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
  • customerIdstring (uuid)

    Existing ERP customer; without it, the customer is found by the driver’s email, or created.

  • driverRentalDriverInputrequired
    RentalDriverInput details
  • paymentRentalBookingPaymentInputrequired
    RentalBookingPaymentInput details
  • acceptTermsbooleanrequired

    The customer accepted the website’s rental terms (mandatory, true) — the fingerprint of the accepted text is kept on the booking.

  • notesstring
    max.length 1000

Response 201application/json

Created.

  • idstring (uuid)required
  • numberstringrequired

    Number of the module reservation.

    e.g.RES-2026-0042
  • sourcestringrequired

    WEBSITE (rental website) or API.

    valuesWEBSITEAPI
  • statusstringrequired

    Displayed status, derived from the module.

    valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIRED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentModestringrequired
    valuesONLINEAGENCY
  • paymentStatusstringrequired
    valuesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAID
  • holdExpiresAtstring | null

    Online payment expected until this instant; after that the vehicle is released.

  • requestExpiresAtstring | null

    Request: the agency answers before this time, otherwise it expires (vehicle released).

  • acceptedAtstring | null

    Request accepted on…

  • paymentTermRentalPaymentTermDto | null

    Payment term applied (at booking, or chosen on acceptance).

    RentalPaymentTermDto details
  • paymentLinkRentalPaymentLinkDto | null

    Current payment link (/pay/… page): pass it to the customer if they are not notified by email (API channel notifyCustomer setting).

    RentalPaymentLinkDto details
  • siteIdstring (uuid) | null

    Site whose catalogue was used; null for an API booking without a site.

  • vehicleRentalVehicleSummaryDtorequired
    RentalVehicleSummaryDto details
  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • pickupAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • returnAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • optionsRentalBookingOptionDto[]required
    RentalBookingOptionDto details
  • amountsRentalBookingAmountsDtorequired
    RentalBookingAmountsDto details
  • depositRentalDepositStateDto | null

    Deposit of the agreement (collected at pick-up); null while there is no agreement.

    RentalDepositStateDto details
  • customerRentalCustomerRefDtorequired
    RentalCustomerRefDto details
  • driverRentalBookingDriverDtorequired

    Driver — identity documents and licence: GET /car-rental/customers/{id}.

    RentalBookingDriverDto details
  • reservationRentalDocumentRefDto | null

    Module reservation.

    RentalDocumentRefDto details
  • contractRentalDocumentRefDto | null

    Rental agreement.

    RentalDocumentRefDto details
  • invoiceRentalDocumentRefDto | null

    ERP invoice (also readable through GET /sales/invoices/{id}).

    RentalDocumentRefDto details
  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • trackingUrlstring | null

    Customer tracking page on the website (secret link: share it with the customer only).

    e.g.https://location.exemple.tn/booking/track/…
  • 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

402PLAN_QUOTA_EXCEEDEDFEATURE_NOT_INCLUDEDMODULE_NOT_INCLUDED

Subscription plan limit or option (monthly document quota, multi-currency…).

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/accounts/me/bookings' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "vehicleId": "1ceeeeaf-de4f-4482-89e9-619e1015a25d",
  "startAt": "2026-12-20T09:00:00Z",
  "endAt": "2026-12-27T09:00:00Z",
  "driver": {
    "firstName": "Sami",
    "lastName": "Ben Ali",
    "email": "sami@example.tn"
  },
  "payment": {
    "mode": "AGENCY"
  },
  "acceptTerms": true
}'
Response example
{
  "success": true,
  "data": {
    "id": "e57a9f43-9182-40aa-8f83-6e46456d347d",
    "number": "RES-2026-0042",
    "source": "WEBSITE",
    "status": "PENDING_PAYMENT",
    "statusLabel": "Confirmée",
    "paymentMode": "ONLINE",
    "paymentStatus": "NONE",
    "holdExpiresAt": "2026-10-02T09:15:00.000Z",
    "requestExpiresAt": "2026-10-02T09:15:00.000Z",
    "acceptedAt": "2026-10-02T09:15:00.000Z",
    "paymentTerm": {
      "type": "FULL",
      "value": 30
    },
    "paymentLink": {
      "id": "83ffc5fd-bdc9-4062-8087-a7ae7c56738d",
      "url": "https://portail.quosuite.com/pay/…",
      "amount": 287.69,
      "paidAmount": 0,
      "currency": "TND",
      "status": "ACTIVE",
      "expiresAt": "2026-10-02T09:15:00.000Z"
    },
    "siteId": "522e1530-4168-4d3e-8218-3f95e4ab94d9",
    "vehicle": {
      "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
      "plate": "245 TU 1234",
      "brand": "Peugeot",
      "model": "208",
      "category": "Citadine",
      "fuel": "DIESEL",
      "gearbox": "Manuelle",
      "seats": 5
    },
    "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"
    },
    "options": [
      {
        "optionId": "e966bb34-017e-440c-8e00-473dd1ccd625",
        "code": "gps",
        "label": "GPS",
        "quantity": 1,
        "perDay": true,
        "totalExclTax": 35,
        "totalInclTax": 41.65
      }
    ],
    "amounts": {
      "currency": "TND",
      "totalExclTax": 805,
      "totalVat": 152.95,
      "totalInclTax": 958.95,
      "deposit": 500,
      "due": 287.69,
      "paid": 958.95,
      "refunded": 0,
      "balanceDue": 0,
      "displayCurrency": "EUR",
      "displayTotalInclTax": 286.25
    },
    "deposit": {
      "status": "NONE",
      "statusLabel": "Détenue",
      "amount": 500,
      "method": "CASH",
      "returned": 0,
      "retained": 0
    },
    "customer": {
      "partnerId": "e85b60de-77d7-4856-8804-216b603b1c25",
      "name": "Sami Ben Ali",
      "email": "sami@example.tn",
      "phone": null
    },
    "driver": {
      "firstName": null,
      "lastName": null,
      "phone": null,
      "flightNumber": "TU 712",
      "secondDriverName": null
    },
    "reservation": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "contract": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "invoice": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "trackingUrl": "https://location.exemple.tn/booking/track/…",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

One of the signed-in customer’s bookings #

GET/api/public/v1/quosuite/car-rental/accounts/me/bookings/{id}
Scope : rental_accounts:readgetRentalAccountBooking

Another customer’s booking: 404, like a missing booking.

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
  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • idstring (uuid)required
  • numberstringrequired

    Number of the module reservation.

    e.g.RES-2026-0042
  • sourcestringrequired

    WEBSITE (rental website) or API.

    valuesWEBSITEAPI
  • statusstringrequired

    Displayed status, derived from the module.

    valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIRED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentModestringrequired
    valuesONLINEAGENCY
  • paymentStatusstringrequired
    valuesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAID
  • holdExpiresAtstring | null

    Online payment expected until this instant; after that the vehicle is released.

  • requestExpiresAtstring | null

    Request: the agency answers before this time, otherwise it expires (vehicle released).

  • acceptedAtstring | null

    Request accepted on…

  • paymentTermRentalPaymentTermDto | null

    Payment term applied (at booking, or chosen on acceptance).

    RentalPaymentTermDto details
  • paymentLinkRentalPaymentLinkDto | null

    Current payment link (/pay/… page): pass it to the customer if they are not notified by email (API channel notifyCustomer setting).

    RentalPaymentLinkDto details
  • siteIdstring (uuid) | null

    Site whose catalogue was used; null for an API booking without a site.

  • vehicleRentalVehicleSummaryDtorequired
    RentalVehicleSummaryDto details
  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • pickupAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • returnAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • optionsRentalBookingOptionDto[]required
    RentalBookingOptionDto details
  • amountsRentalBookingAmountsDtorequired
    RentalBookingAmountsDto details
  • depositRentalDepositStateDto | null

    Deposit of the agreement (collected at pick-up); null while there is no agreement.

    RentalDepositStateDto details
  • customerRentalCustomerRefDtorequired
    RentalCustomerRefDto details
  • driverRentalBookingDriverDtorequired

    Driver — identity documents and licence: GET /car-rental/customers/{id}.

    RentalBookingDriverDto details
  • reservationRentalDocumentRefDto | null

    Module reservation.

    RentalDocumentRefDto details
  • contractRentalDocumentRefDto | null

    Rental agreement.

    RentalDocumentRefDto details
  • invoiceRentalDocumentRefDto | null

    ERP invoice (also readable through GET /sales/invoices/{id}).

    RentalDocumentRefDto details
  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • trackingUrlstring | null

    Customer tracking page on the website (secret link: share it with the customer only).

    e.g.https://location.exemple.tn/booking/track/…
  • 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "e57a9f43-9182-40aa-8f83-6e46456d347d",
    "number": "RES-2026-0042",
    "source": "WEBSITE",
    "status": "PENDING_PAYMENT",
    "statusLabel": "Confirmée",
    "paymentMode": "ONLINE",
    "paymentStatus": "NONE",
    "holdExpiresAt": "2026-10-02T09:15:00.000Z",
    "requestExpiresAt": "2026-10-02T09:15:00.000Z",
    "acceptedAt": "2026-10-02T09:15:00.000Z",
    "paymentTerm": {
      "type": "FULL",
      "value": 30
    },
    "paymentLink": {
      "id": "83ffc5fd-bdc9-4062-8087-a7ae7c56738d",
      "url": "https://portail.quosuite.com/pay/…",
      "amount": 287.69,
      "paidAmount": 0,
      "currency": "TND",
      "status": "ACTIVE",
      "expiresAt": "2026-10-02T09:15:00.000Z"
    },
    "siteId": "522e1530-4168-4d3e-8218-3f95e4ab94d9",
    "vehicle": {
      "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
      "plate": "245 TU 1234",
      "brand": "Peugeot",
      "model": "208",
      "category": "Citadine",
      "fuel": "DIESEL",
      "gearbox": "Manuelle",
      "seats": 5
    },
    "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"
    },
    "options": [
      {
        "optionId": "e966bb34-017e-440c-8e00-473dd1ccd625",
        "code": "gps",
        "label": "GPS",
        "quantity": 1,
        "perDay": true,
        "totalExclTax": 35,
        "totalInclTax": 41.65
      }
    ],
    "amounts": {
      "currency": "TND",
      "totalExclTax": 805,
      "totalVat": 152.95,
      "totalInclTax": 958.95,
      "deposit": 500,
      "due": 287.69,
      "paid": 958.95,
      "refunded": 0,
      "balanceDue": 0,
      "displayCurrency": "EUR",
      "displayTotalInclTax": 286.25
    },
    "deposit": {
      "status": "NONE",
      "statusLabel": "Détenue",
      "amount": 500,
      "method": "CASH",
      "returned": 0,
      "retained": 0
    },
    "customer": {
      "partnerId": "e85b60de-77d7-4856-8804-216b603b1c25",
      "name": "Sami Ben Ali",
      "email": "sami@example.tn",
      "phone": null
    },
    "driver": {
      "firstName": null,
      "lastName": null,
      "phone": null,
      "flightNumber": "TU 712",
      "secondDriverName": null
    },
    "reservation": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "contract": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "invoice": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "trackingUrl": "https://location.exemple.tn/booking/track/…",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Cancel one of the signed-in customer’s bookings #

POST/api/public/v1/quosuite/car-rental/accounts/me/bookings/{id}/cancel
Scope : rental_accounts:writeIdempotentcancelRentalAccountBooking

Cancellation by the customer, under the cancellation policy of the booking’s channel (deadline, fees): vehicle released, refund of what the policy returns. Past the deadline, already started or returned: 422 BUSINESS_RULE_VIOLATION (detail.rule).

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

Parameters

  • idstring (uuid)pathrequired
  • 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.

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Request body application/json

  • reasonstring
    max.length 500e.g.Vol annulé

Response 200application/json

Success.

  • idstring (uuid)required
  • numberstringrequired

    Number of the module reservation.

    e.g.RES-2026-0042
  • sourcestringrequired

    WEBSITE (rental website) or API.

    valuesWEBSITEAPI
  • statusstringrequired

    Displayed status, derived from the module.

    valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIRED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentModestringrequired
    valuesONLINEAGENCY
  • paymentStatusstringrequired
    valuesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAID
  • holdExpiresAtstring | null

    Online payment expected until this instant; after that the vehicle is released.

  • requestExpiresAtstring | null

    Request: the agency answers before this time, otherwise it expires (vehicle released).

  • acceptedAtstring | null

    Request accepted on…

  • paymentTermRentalPaymentTermDto | null

    Payment term applied (at booking, or chosen on acceptance).

    RentalPaymentTermDto details
  • paymentLinkRentalPaymentLinkDto | null

    Current payment link (/pay/… page): pass it to the customer if they are not notified by email (API channel notifyCustomer setting).

    RentalPaymentLinkDto details
  • siteIdstring (uuid) | null

    Site whose catalogue was used; null for an API booking without a site.

  • vehicleRentalVehicleSummaryDtorequired
    RentalVehicleSummaryDto details
  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • pickupAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • returnAgencyRentalAgencyRefDto | null
    RentalAgencyRefDto details
  • optionsRentalBookingOptionDto[]required
    RentalBookingOptionDto details
  • amountsRentalBookingAmountsDtorequired
    RentalBookingAmountsDto details
  • depositRentalDepositStateDto | null

    Deposit of the agreement (collected at pick-up); null while there is no agreement.

    RentalDepositStateDto details
  • customerRentalCustomerRefDtorequired
    RentalCustomerRefDto details
  • driverRentalBookingDriverDtorequired

    Driver — identity documents and licence: GET /car-rental/customers/{id}.

    RentalBookingDriverDto details
  • reservationRentalDocumentRefDto | null

    Module reservation.

    RentalDocumentRefDto details
  • contractRentalDocumentRefDto | null

    Rental agreement.

    RentalDocumentRefDto details
  • invoiceRentalDocumentRefDto | null

    ERP invoice (also readable through GET /sales/invoices/{id}).

    RentalDocumentRefDto details
  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • trackingUrlstring | null

    Customer tracking page on the website (secret link: share it with the customer only).

    e.g.https://location.exemple.tn/booking/track/…
  • 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/cancel' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "Vol annulé"
}'
Response example
{
  "success": true,
  "data": {
    "id": "e57a9f43-9182-40aa-8f83-6e46456d347d",
    "number": "RES-2026-0042",
    "source": "WEBSITE",
    "status": "PENDING_PAYMENT",
    "statusLabel": "Confirmée",
    "paymentMode": "ONLINE",
    "paymentStatus": "NONE",
    "holdExpiresAt": "2026-10-02T09:15:00.000Z",
    "requestExpiresAt": "2026-10-02T09:15:00.000Z",
    "acceptedAt": "2026-10-02T09:15:00.000Z",
    "paymentTerm": {
      "type": "FULL",
      "value": 30
    },
    "paymentLink": {
      "id": "83ffc5fd-bdc9-4062-8087-a7ae7c56738d",
      "url": "https://portail.quosuite.com/pay/…",
      "amount": 287.69,
      "paidAmount": 0,
      "currency": "TND",
      "status": "ACTIVE",
      "expiresAt": "2026-10-02T09:15:00.000Z"
    },
    "siteId": "522e1530-4168-4d3e-8218-3f95e4ab94d9",
    "vehicle": {
      "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
      "plate": "245 TU 1234",
      "brand": "Peugeot",
      "model": "208",
      "category": "Citadine",
      "fuel": "DIESEL",
      "gearbox": "Manuelle",
      "seats": 5
    },
    "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"
    },
    "options": [
      {
        "optionId": "e966bb34-017e-440c-8e00-473dd1ccd625",
        "code": "gps",
        "label": "GPS",
        "quantity": 1,
        "perDay": true,
        "totalExclTax": 35,
        "totalInclTax": 41.65
      }
    ],
    "amounts": {
      "currency": "TND",
      "totalExclTax": 805,
      "totalVat": 152.95,
      "totalInclTax": 958.95,
      "deposit": 500,
      "due": 287.69,
      "paid": 958.95,
      "refunded": 0,
      "balanceDue": 0,
      "displayCurrency": "EUR",
      "displayTotalInclTax": 286.25
    },
    "deposit": {
      "status": "NONE",
      "statusLabel": "Détenue",
      "amount": 500,
      "method": "CASH",
      "returned": 0,
      "retained": 0
    },
    "customer": {
      "partnerId": "e85b60de-77d7-4856-8804-216b603b1c25",
      "name": "Sami Ben Ali",
      "email": "sami@example.tn",
      "phone": null
    },
    "driver": {
      "firstName": null,
      "lastName": null,
      "phone": null,
      "flightNumber": "TU 712",
      "secondDriverName": null
    },
    "reservation": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "contract": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "invoice": {
      "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
      "number": "CTR-2026-0042",
      "status": "OPEN",
      "statusLabel": "En cours"
    },
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "trackingUrl": "https://location.exemple.tn/booking/track/…",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

PDF of one of the signed-in customer’s bookings #

GET/api/public/v1/quosuite/car-rental/accounts/me/bookings/{id}/documents/{kind}
Scope : rental_accounts:readgetRentalAccountBookingDocument

voucher (booking voucher), contract (rental agreement), invoice (invoice) — same rules as GET /car-rental/bookings/{id}/documents/{kind}. Not available yet: 404.

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

Parameters

  • idstring (uuid)pathrequired
  • kindstringpathrequired
    vouchercontractinvoice
  • langstringquery

    Language of the PDF.

    frenar
  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/pdf

The PDF.

Binary file (application/pdf).

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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/documents/0e074211-2c4c-429a-8fcc-60007699d381' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Try this request

Change the password #

POST/api/public/v1/quosuite/car-rental/accounts/me/password
Scope : rental_accounts:writechangeRentalAccountPassword

Current and new password. All the account’s sessions are closed, this one included: sign the customer in again. Wrong current password: 422 (detail.rule: CURRENT_PASSWORD_INVALID).

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

Parameters

  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Request body application/json

  • currentPasswordstringrequired
    max.length 200
  • newPasswordstringrequired
    max.length 200

Response 200application/json

Success.

  • okbooleanrequired
    e.g.true

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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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.

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/accounts/me/password' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "currentPassword": "string",
  "newPassword": "string"
}'
Response example
{
  "success": true,
  "data": {
    "ok": true
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Rentals of the logged-in customer #

GET/api/public/v1/quosuite/car-rental/accounts/me/rentals
Scope : rental_accounts:readlistRentalAccountRentals

Contracts linked to this customer account and its site only. Agency-wide contracts are never included.

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
  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • itemsRentalAccountRentalDto[]required
    RentalAccountRentalDto 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/rentals' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "6196e5de-7e36-4b64-823c-30df0600fea1",
        "number": "CTR-2026-0042",
        "kind": "RENTAL",
        "status": "DRAFT",
        "statusLabel": "En cours",
        "reservationId": "117574a2-39a9-4eea-8299-19af7a4c9fa9",
        "bookingId": "9142490b-b4a1-471a-84f8-032efe133aed",
        "vehicle": {
          "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
          "plate": "245 TU 1234",
          "brand": "Peugeot",
          "model": "208",
          "category": "Citadine",
          "fuel": "DIESEL",
          "gearbox": "Manuelle",
          "seats": 5
        },
        "period": {
          "startAt": "2026-12-20T09:00:00.000Z",
          "endAt": "2026-12-27T09:00:00.000Z",
          "days": 7
        },
        "returnedAt": "2026-10-02T09:15:00.000Z",
        "pickupAgencyId": "f1d53061-2a64-4cea-8cfc-7946e7dd1915",
        "returnAgencyId": "8b5c7a53-3c1c-4a4e-8df4-1eb05c490f31",
        "dailyRate": 100,
        "vatRate": 19,
        "currency": "TND",
        "lines": [
          {
            "kind": "RENTAL",
            "label": "Location 7 jours",
            "quantity": 7,
            "unitPrice": 100,
            "vatRate": 19,
            "totalExclTax": 700,
            "totalInclTax": 833
          }
        ],
        "totals": {
          "totalExclTax": 805,
          "totalVat": 152.95,
          "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": 958.95
        },
        "mileage": {
          "out": null,
          "in": null,
          "includedKm": null,
          "extraKmRate": null,
          "extraKm": null,
          "extraKmAmount": null
        },
        "deposit": {
          "status": "NONE",
          "statusLabel": "Détenue",
          "amount": 500,
          "method": "CASH",
          "returned": 0,
          "retained": 0
        },
        "invoices": [
          {
            "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
            "number": "CTR-2026-0042",
            "status": "OPEN",
            "statusLabel": "En cours"
          }
        ],
        "createdAt": "2026-10-02T09:15:00.000Z",
        "updatedAt": "2026-10-02T09:15:00.000Z"
      }
    ]
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

A rental of the logged-in customer #

GET/api/public/v1/quosuite/car-rental/accounts/me/rentals/{id}
Scope : rental_accounts:readgetRentalAccountRental

Another customer’s rental, or a rental in another account realm: 404.

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
  • X-Rental-Sessionstringheaderrequired

    Customer session, returned by POST /car-rental/accounts/login or …/register. Missing, expired or closed: 401 CUSTOMER_SESSION_INVALID.

Response 200application/json

Success.

  • idstring (uuid)required
  • numberstringrequired
    e.g.CTR-2026-0042
  • kindstringrequired
    valuesRENTALTRANSFER
  • statusstringrequired
    valuesDRAFTOPENCLOSEDCANCELLED
  • statusLabelstringrequired
    e.g.En cours
  • reservationIdstring (uuid) | null
  • bookingIdstring (uuid) | null
  • vehicleRentalVehicleSummaryDtorequired
    RentalVehicleSummaryDto details
  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • returnedAtstring | null

    Recorded return.

  • pickupAgencyIdstring (uuid) | null
  • returnAgencyIdstring (uuid) | null
  • dailyRatenumberrequired
    e.g.100
  • vatRatenumberrequired
    e.g.19
  • currencystringrequired
    e.g.TND
  • linesRentalContractLineDto[]required
    RentalContractLineDto details
  • totalsRentalTotalsDtorequired
    RentalTotalsDto details
  • mileageRentalContractMileageDtorequired
    RentalContractMileageDto details
  • depositRentalDepositStateDtorequired
    RentalDepositStateDto details
  • invoicesRentalDocumentRefDto[]required

    ERP invoices of the agreement (not cancelled).

    RentalDocumentRefDto details
  • 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.

401CUSTOMER_SESSION_INVALID

Key missing, invalid, revoked or expired. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_REVOKED, API_KEY_EXPIRED.

Or rental customer session (X-Rental-Session) missing, expired or closed: sign the customer in again.

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/accounts/me/rentals/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "6196e5de-7e36-4b64-823c-30df0600fea1",
    "number": "CTR-2026-0042",
    "kind": "RENTAL",
    "status": "DRAFT",
    "statusLabel": "En cours",
    "reservationId": "117574a2-39a9-4eea-8299-19af7a4c9fa9",
    "bookingId": "9142490b-b4a1-471a-84f8-032efe133aed",
    "vehicle": {
      "id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
      "plate": "245 TU 1234",
      "brand": "Peugeot",
      "model": "208",
      "category": "Citadine",
      "fuel": "DIESEL",
      "gearbox": "Manuelle",
      "seats": 5
    },
    "period": {
      "startAt": "2026-12-20T09:00:00.000Z",
      "endAt": "2026-12-27T09:00:00.000Z",
      "days": 7
    },
    "returnedAt": "2026-10-02T09:15:00.000Z",
    "pickupAgencyId": "f1d53061-2a64-4cea-8cfc-7946e7dd1915",
    "returnAgencyId": "8b5c7a53-3c1c-4a4e-8df4-1eb05c490f31",
    "dailyRate": 100,
    "vatRate": 19,
    "currency": "TND",
    "lines": [
      {
        "kind": "RENTAL",
        "label": "Location 7 jours",
        "quantity": 7,
        "unitPrice": 100,
        "vatRate": 19,
        "totalExclTax": 700,
        "totalInclTax": 833
      }
    ],
    "totals": {
      "totalExclTax": 805,
      "totalVat": 152.95,
      "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": 958.95
    },
    "mileage": {
      "out": null,
      "in": null,
      "includedKm": null,
      "extraKmRate": null,
      "extraKm": null,
      "extraKmAmount": null
    },
    "deposit": {
      "status": "NONE",
      "statusLabel": "Détenue",
      "amount": 500,
      "method": "CASH",
      "returned": 0,
      "retained": 0
    },
    "invoices": [
      {
        "id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
        "number": "CTR-2026-0042",
        "status": "OPEN",
        "statusLabel": "En cours"
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

Forgotten password #

POST/api/public/v1/quosuite/car-rental/accounts/password/forgot
Scope : rental_accounts:writeforgotRentalAccountPassword

Sends the customer, if they have an account, an email with a link valid for 60 minutes to resetUrl (your page, token as a parameter) — or the account site’s page. The response is the same in every case: it does not say whether the address is registered. This email is sent even when the API channel settings turn customer emails off (account security).

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

Request body application/json

  • siteIdstring (uuid)

    Rental site the account belongs to — its accounts are those of the site’s customer area (Website module). Without siteId: an API channel account, specific to your integrations. One email can have an account in each; they are kept separate.

  • emailstringrequired
    max.length 200e.g.sami@example.tn
  • resetUrlstring

    Your “new password” page: the emailed link leads there, with token as a parameter (to send back to POST /car-rental/accounts/password/reset). Mandatory without siteId; with a site, default: the site’s page (/account/reset).

    e.g.https://location.example.tn/compte/nouveau-mot-de-passe
  • localestring

    Language of the email.

    valuesfrenar

Response 200application/json

Success.

  • okbooleanrequired
    e.g.true

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/accounts/password/forgot' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "sami@example.tn"
}'
Response example
{
  "success": true,
  "data": {
    "ok": true
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

New password (link received) #

POST/api/public/v1/quosuite/car-rental/accounts/password/reset
Scope : rental_accounts:writeresetRentalAccountPassword

The token received by your page and the new password. All the account’s sessions are closed: sign the customer in again. Invalid or expired link: 422 (detail.rule: RESET_TOKEN_INVALID).

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

Request body application/json

  • siteIdstring (uuid)

    Rental site the account belongs to — its accounts are those of the site’s customer area (Website module). Without siteId: an API channel account, specific to your integrations. One email can have an account in each; they are kept separate.

  • tokenstringrequired

    The token your page received through the email link.

  • passwordstringrequired
    max.length 200

Response 200application/json

Success.

  • okbooleanrequired
    e.g.true

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/accounts/password/reset' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "token": "string",
  "password": "string"
}'
Response example
{
  "success": true,
  "data": {
    "ok": true
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Register a customer #

POST/api/public/v1/quosuite/car-rental/accounts/register
Scope : rental_accounts:writeregisterRentalAccount

Creates the customer’s account and signs them in (session). The account is backed by the ERP customer record found by email (created otherwise) — the one bookings, agreements and invoices point to. Address already registered in this realm: 409 CONFLICT (detail.rule: EMAIL_UNAVAILABLE), without saying more.

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

Request body application/json

  • siteIdstring (uuid)

    Rental site the account belongs to — its accounts are those of the site’s customer area (Website module). Without siteId: an API channel account, specific to your integrations. One email can have an account in each; they are kept separate.

  • emailstringrequired
    max.length 200e.g.sami@example.tn
  • passwordstringrequired
    max.length 200e.g.motdepasse-solide
  • firstNamestring
    max.length 120e.g.Sami
  • lastNamestring
    max.length 120e.g.Ben Ali
  • phonestring
    max.length 40e.g.+216 22 000 000
  • acceptsMarketingboolean

    Accepts marketing communications.

  • localestring

    Language of the emails sent to the customer.

    valuesfrenar

Response 201application/json

Created.

  • accountRentalAccountDtorequired
    RentalAccountDto details
  • sessionstringrequired

    Customer session, to send back in the X-Rental-Session header of the /car-rental/accounts/me… routes. Secret: keep it server-side or in an HttpOnly cookie of your site. Extended on each use.

    e.g.mJ4w7c2Vt0b…
  • expiresAtstringrequired

    Session expiry.

    e.g.2026-12-21T09:15:00.000Z

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
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/accounts/register' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "sami@example.tn",
  "password": "motdepasse-solide"
}'
Response example
{
  "success": true,
  "data": {
    "account": {
      "id": "3107a26c-e555-4d0c-8dec-74a54fb19e45",
      "siteId": "6207262f-df38-452a-8101-4368ca632fc1",
      "customerId": "16d8b5c8-95d5-4528-8155-fcc18a945bd5",
      "email": "sami@example.tn",
      "firstName": "Sami",
      "lastName": "Ben Ali",
      "phone": "+216 22 000 000",
      "locale": "fr",
      "acceptsMarketing": true,
      "driverProfile": {
        "birthDate": "1990-04-12",
        "drivingLicenseNumber": {},
        "drivingLicenseIssuedAt": {},
        "drivingLicenseExpiresAt": {},
        "identityNumber": {},
        "passportNumber": {},
        "nationality": {},
        "address": {},
        "city": {},
        "country": {}
      },
      "createdAt": "2026-11-21T09:15:00.000Z"
    },
    "session": "mJ4w7c2Vt0b…",
    "expiresAt": "2026-12-21T09:15:00.000Z"
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Generated from the QuoSuite API OpenAPI contract v1.0.0.