Developers
Reference · Car rental

Bookings

List bookings #

GET/api/public/v1/quosuite/car-rental/bookings
Scope : rental_bookings:readlistRentalBookings

Bookings taken on the rental website or through the API (source), with their displayed status, derived from the module (status=CONFIRMED,IN_PROGRESS). Filters: website, vehicle, customer, agency, email, pick-up (startFrom / startTo), attention=true (to be handled by the agency), updatedSince. Allowed sort: startAt, createdAt, updatedAt, number (default -createdAt).

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.

  • statusstring[]query

    Displayed statuses, comma-separated.

  • sourcestringquery
    WEBSITEAPI
  • siteIdstring (uuid)query
  • vehicleIdstring (uuid)query
  • customerIdstring (uuid)query

    ERP customer.

  • agencyIdstring (uuid)query

    Pick-up or return agency.

  • emailstringquery
  • startFromstringquery

    Pick-up from (inclusive).

  • startTostringquery

    Pick-up until (inclusive).

  • attentionbooleanquery

    Only those that need an action from the agency.

Response 200application/json

Success.

  • itemsRentalBookingDto[]required
    RentalBookingDto 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/bookings' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
        "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
        "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
        },
        "notes": 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"
        },
        "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
        "documents": {
          "voucher": true,
          "contract": true,
          "invoice": true
        },
        "erp": {
          "posted": true,
          "postedAt": "2026-10-02T09:15:00.000Z",
          "attention": true,
          "error": null
        },
        "trackingUrl": "https://location.exemple.tn/booking/track/…",
        "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 a booking #

POST/api/public/v1/quosuite/car-rental/bookings
Scope : rental_bookings:writeIdempotentcreateRentalBooking

Books a fleet vehicle — with or without a rental site — through the same flow as the site: price recalculated by the module (never taken from the request), minimum lead time, driver checked, customer found by email (or customerId), vehicle held under lock. Without siteId: any active vehicle, without options; with it: published vehicle and the site’s options (Website module). The API channel settings apply (open or closed, payment policy, lead times, branches, emails — GET /car-rental/booking-settings). Payment: AGENCY (request, then accepted with …/accept or refused), ONLINE (payment link for the deposit or the total, paymentLink.url, vehicle held holdMinutes — PAY_ON_BOOKING policy), PREPAID (already collected, total or deposit — payments:write scope as well). Vehicle taken in the meantime: 409 CONFLICT (detail.rule: UNAVAILABLE); driver refused: 422 (detail.rule: DRIVER_INVALID, detail.problems); mode refused by the policy: 422 (detail.rule: PAYMENT_MODE). Optional X-Rental-Session header: the booking is attached to the signed-in customer’s account, in that account’s realm (see POST /car-rental/accounts/me/bookings).

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. For a booking, the key is kept with no expiry on the booking: replayed even after 24 h, it returns the same booking; same key, another vehicle or other dates: 422 IDEMPOTENCY_KEY_REUSED.

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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
  • paymentErrorstring | null

    Payment link not issued (payment.mode: ONLINE): the booking stays held for holdMinutes; the agency can accept or cancel it.

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.

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/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": "f1b9a734-178b-43b2-8331-6bcd2ce5c385",
    "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": "e10bb107-d58b-42d6-88d6-23b632aff3e9",
    "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
    },
    "notes": 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"
    },
    "paymentId": "fd563560-219d-4768-8fdd-34b9956c9d5d",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "trackingUrl": "https://location.exemple.tn/booking/track/…",
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "paymentError": null
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}

Get a booking #

GET/api/public/v1/quosuite/car-rental/bookings/{id}
Scope : rental_bookings:readgetRentalBooking

Displayed status, payment, vehicle, period, agencies, options, amounts, deposit, customer, module reservation, agreement, invoice, posting state.

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
  • 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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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

Accept a request (payment term) #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/accept
Scope : rental_bookings:writeIdempotentacceptRentalBooking

Accepts a request (REQUESTED) with a chosen payment term: FULL (total), PERCENT (deposit as %), FIXED (fixed deposit) — default: the policy’s onAcceptance. A payment link for that amount is issued (paymentLink) and sent to the customer (unless notifyCustomer: false); the vehicle stays held until holdExpiresAt (deadlineHours, never past pick-up). Status PENDING_PAYMENT, then CONFIRMED once paid — otherwise EXPIRED, vehicle released. NONE: confirmed without payment.

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.

Request body application/json

  • termRentalPaymentTermInput

    Default: the channel payment policy’s onAcceptance.

    RentalPaymentTermInput details
  • deadlineHoursnumber

    Link validity (hours); default: paymentDeadlineHours, never past pick-up.

    min.1max.1440e.g.48

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/accept' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "term": {
    "type": "FULL"
  },
  "deadlineHours": 48
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Cancel a booking #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/cancel
Scope : rental_bookings:writeIdempotentcancelRentalBooking

Cancels as long as the vehicle has not been returned: vehicle released by the module (contract cancelled, held deposit returned), online payment and pending payment link closed. Money received: refund of the returned amount (invoiced: credit note + disbursement; deposit only: disbursement) — by default the amount from the channel’s cancellation policy, or refundAmount (capped at what was paid); payments:write scope as well.

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.

Request body application/json

  • reasonstring
    e.g.Vol annulé
  • refundAmountnumber

    Amount returned (booking currency); default: the amount from the channel’s cancellation policy. Invoiced: credit note + disbursement; deposit only: disbursement on the booking. payments:write scope as well.

    e.g.767.16
  • notifyCustomerboolean

    Notify the customer by email (default: yes).

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/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é",
  "refundAmount": 767.16
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Confirm a request without payment #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/confirm
Scope : rental_bookings:writeconfirmRentalBooking

Accepts a request (REQUESTED) without payment — paid at the agency: the module booking becomes confirmed and the customer is notified. Same as …/accept with term.type: NONE. A booking paid online confirms itself.

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
  • 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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/confirm' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Generate the agreement #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/contract
Scope : rental_bookings:writeprepareRentalContract

Creates the rental agreement (draft) from the booking — reused if it already exists. Preparing a request confirms it. The PDF: GET …/documents/contract.

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
  • 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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/contract' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Record a received payment #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/payments
Scope : rental_bookings:writeIdempotentrecordRentalBookingPayment

A payment collected outside QuoSuite (your provider, the agency): the booking is posted through the same path as the payment webhook. First posting paid in full: confirmed, agreement, validated invoice and allocated payment, together; down payment: confirmed once the required amount (amounts.due) is reached, advance on the reservation (allocated by the agreement’s invoice); balance of an already confirmed booking: one more receipt, without automatically generating a missing agreement or invoice. The same reference is recorded only once (replayed: only resumes interrupted posting). Reference used on another booking: 409 CONFLICT (detail.rule: PAYMENT_REFERENCE_USED); booking already fully paid: 409 (ALREADY_PAID); amount above the remaining balance: 422 BUSINESS_RULE_VIOLATION (PAYMENT_AMOUNT_MISMATCH). Also requires 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.

Request body application/json

  • amountnumberrequired

    Amount collected (booking currency): deposit, balance or total.

    e.g.958.95
  • referencestringrequired

    Reference of the payment on your side — a given payment is recorded only once.

    e.g.PSP-778812
  • methodstring
    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERdefault"CARD"
  • paidAtstring

    Default: now.

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/payments' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "amount": 958.95,
  "reference": "PSP-778812"
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Hand over the vehicle #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/pickup
Scope : rental_bookings:writeIdempotentpickUpRentalBooking

Customer pick-up: the agreement opens (created if needed), odometer and fuel recorded, deposit collected if depositCollected (payments:write scope as well). Status IN_PROGRESS.

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.

Request body application/json

  • mileageOutnumber
    e.g.18250
  • fuelOutnumber

    Fuel in eighths.

    min.0max.8
  • depositCollectedboolean

    Deposit collected at pick-up (payments:write scope as well).

  • depositMethodstring
    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHER
  • depositReferencestring
    e.g.EMP-4421

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/pickup' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "mileageOut": 18250,
  "depositReference": "EMP-4421"
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Refuse a request #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/refuse
Scope : rental_bookings:writeIdempotentrefuseRentalBooking

Refuses a request (REQUESTED): vehicle released, customer notified (optional reason). Status CANCELLED.

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.

Request body application/json

  • reasonstring
    e.g.Véhicule immobilisé

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/refuse' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "Véhicule immobilisé"
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

Record the return #

POST/api/public/v1/quosuite/car-rental/bookings/{id}/return
Scope : rental_bookings:writeIdempotentreturnRentalBooking

Vehicle return: the agreement closes, extra kilometres are charged (unless chargeExtraKm: false), security deposit returned or retained (deposit, also requires payments:write). Returned and retained amounts must add up to the held deposit; retention requires a reason and cannot exceed the outstanding agreement or invoice balance. Omit returnedAt with an API key: an explicit timestamp requires the user permission RENTAL_CONTRACTS:FORCE (403 otherwise). Status RETURNED; the vehicle returns to planning.

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.

Request body application/json

  • mileageInnumber
    e.g.19150
  • fuelInnumber
    min.0max.8
  • returnedAtstring

    Omit with an API key: defaults to now. An explicit timestamp requires the user permission RENTAL_CONTRACTS:FORCE (403 otherwise) and cannot precede actual departure.

  • depositRentalDepositSettlementInput

    Settlement of the held deposit (payments:write scope as well).

    RentalDepositSettlementInput details
  • chargeExtraKmboolean

    Charge extra kilometres (default: yes).

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
  • notesstring | null
  • 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
  • paymentIdstring (uuid) | null

    ERP payment.

  • documentsRentalBookingDocumentsDtorequired
    RentalBookingDocumentsDto details
  • erpRentalBookingErpDtorequired
    RentalBookingErpDto 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.

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/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/return' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "mileageIn": 19150,
  "deposit": {
    "returnedAmount": 500,
    "retainedAmount": 0
  }
}'
Response example
{
  "success": true,
  "data": {
    "id": "c3f8c2b0-25e0-431c-8558-8cc1a4cc0565",
    "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": "7dd62b53-1dd0-499a-8fb5-3edc84123531",
    "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
    },
    "notes": 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"
    },
    "paymentId": "2f67d634-7e73-4b9a-8a0e-7f794a4147c9",
    "documents": {
      "voucher": true,
      "contract": true,
      "invoice": true
    },
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "attention": true,
      "error": null
    },
    "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"
}

API booking settings #

GET/api/public/v1/quosuite/car-rental/booking-settings
Scope : rental:readgetRentalBookingSettings

What applies to API bookings (with or without a site): open or closed, requests without payment accepted, hold, minimum lead time, payment policy (pay when booking — total, % or fixed amount — or request accepted then payment link), cancellation policy, branches, customer emails. Set in the application (Car rental › Settings › API booking).

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

Response 200application/json

Success.

  • enabledbooleanrequired

    Booking through the API is open.

  • payAtAgencybooleanrequired

    Requests without payment (AGENCY) accepted.

  • holdMinutesnumberrequired
    e.g.30
  • minLeadHoursnumberrequired
    e.g.2
  • paymentRentalPaymentPolicyDtorequired
    RentalPaymentPolicyDto details
  • cancellationPolicyRentalCancellationPolicyDtorequired
    RentalCancellationPolicyDto details
  • agencyIdsstring[]required

    Branches open to the API (empty = all).

  • notifyCustomerbooleanrequired

    QuoSuite emails the customer (acknowledgement, payment link, confirmation, cancellation).

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/booking-settings' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "enabled": true,
    "payAtAgency": true,
    "holdMinutes": 30,
    "minLeadHours": 2,
    "payment": {
      "flow": "PAY_ON_BOOKING",
      "onBooking": {
        "type": "FULL",
        "value": 30
      },
      "onAcceptance": {
        "type": "FULL",
        "value": 30
      },
      "requestTtlHours": 24,
      "paymentDeadlineHours": 48
    },
    "cancellationPolicy": {
      "customerCancel": true,
      "freeUntilHours": 48,
      "feePercent": 20,
      "feeFixed": 0,
      "noRefundWithinHours": 0,
      "modifyUntilHours": 24
    },
    "agencyIds": [
      "string"
    ],
    "notifyCustomer": true
  },
  "timestamp": "2026-10-02T09:15:00.000Z"
}
Try this request

List module reservations #

GET/api/public/v1/quosuite/car-rental/reservations
Scope : rental_bookings:readlistRentalReservations

All reservations of the Car Rental module — counter, phone, website, API — as the planning knows them (bookingId links those coming from the website or the API). Read-only: book with POST /car-rental/bookings. Allowed sort: startAt, createdAt, updatedAt, number (default -startAt).

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.

  • statusstring[]query

    Statuses, comma-separated.

  • vehicleIdstring (uuid)query
  • customerIdstring (uuid)query
  • agencyIdstring (uuid)query
  • startFromstringquery
  • startTostringquery

Response 200application/json

Success.

  • itemsRentalReservationDto[]required
    RentalReservationDto 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/reservations' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "3ecd7ed5-62aa-47f2-83dc-ac1eac54b2fd",
        "number": "RES-2026-0042",
        "status": "PENDING",
        "statusLabel": "Confirmée",
        "source": "Téléphone",
        "customerId": "693de195-fe69-4372-82bb-8562c4626305",
        "billToId": "9e77a7a1-b6ef-487a-8626-9f66cdcdb7c5",
        "vehicleId": "e3d567b9-de78-4062-8517-098437afde11",
        "requestedCategory": null,
        "requestedModel": null,
        "period": {
          "startAt": "2026-12-20T09:00:00.000Z",
          "endAt": "2026-12-27T09:00:00.000Z",
          "days": 7
        },
        "pickupAgencyId": "65311296-22bb-4a18-8bcf-a95bf50261c1",
        "returnAgencyId": "8d829984-0de6-4374-828b-261ded42c265",
        "dailyRate": 100,
        "vatRate": 19,
        "currency": "TND",
        "deposit": 500,
        "lines": [
          {
            "label": "Siège enfant",
            "quantity": 1,
            "unitPrice": 5,
            "vatRate": 19,
            "perDay": true
          }
        ],
        "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
        },
        "contractId": "22d51c47-eaad-4172-81f6-ede053a7e1e9",
        "bookingId": "4292ef26-afda-4772-858c-a3d315b796b1",
        "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

Get a module reservation #

GET/api/public/v1/quosuite/car-rental/reservations/{id}
Scope : rental_bookings:readgetRentalReservation

With its pricing by the module (totals: excl. tax, VAT, document-level taxes, incl. tax).

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
  • numberstringrequired
    e.g.RES-2026-0042
  • statusstringrequired
    valuesPENDINGCONFIRMEDCONVERTEDCANCELLEDNO_SHOW
  • statusLabelstringrequired
    e.g.Confirmée
  • sourcestring | null
    e.g.Téléphone
  • customerIdstring (uuid)required

    Driver (ERP customer).

  • billToIdstring (uuid) | null

    Billed company.

  • vehicleIdstring (uuid) | null
  • requestedCategorystring | null

    Requested category (reservation with no designated vehicle: nothing is held).

  • requestedModelstring | null
  • periodRentalPeriodDtorequired
    RentalPeriodDto details
  • pickupAgencyIdstring (uuid) | null
  • returnAgencyIdstring (uuid) | null
  • dailyRatenumberrequired
    e.g.100
  • vatRatenumber | null
    e.g.19
  • currencystringrequired
    e.g.TND
  • depositnumberrequired
    e.g.500
  • linesRentalLineDto[]required
    RentalLineDto details
  • totalsRentalTotalsDto | null

    Pricing by the module (detail only).

    RentalTotalsDto details
  • contractIdstring (uuid) | null
  • bookingIdstring (uuid) | null

    Online booking (website or API) that created it.

  • 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/reservations/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "success": true,
  "data": {
    "id": "3ecd7ed5-62aa-47f2-83dc-ac1eac54b2fd",
    "number": "RES-2026-0042",
    "status": "PENDING",
    "statusLabel": "Confirmée",
    "source": "Téléphone",
    "customerId": "693de195-fe69-4372-82bb-8562c4626305",
    "billToId": "9e77a7a1-b6ef-487a-8626-9f66cdcdb7c5",
    "vehicleId": "e3d567b9-de78-4062-8517-098437afde11",
    "requestedCategory": null,
    "requestedModel": null,
    "period": {
      "startAt": "2026-12-20T09:00:00.000Z",
      "endAt": "2026-12-27T09:00:00.000Z",
      "days": 7
    },
    "pickupAgencyId": "65311296-22bb-4a18-8bcf-a95bf50261c1",
    "returnAgencyId": "8d829984-0de6-4374-828b-261ded42c265",
    "dailyRate": 100,
    "vatRate": 19,
    "currency": "TND",
    "deposit": 500,
    "lines": [
      {
        "label": "Siège enfant",
        "quantity": 1,
        "unitPrice": 5,
        "vatRate": 19,
        "perDay": true
      }
    ],
    "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
    },
    "contractId": "22d51c47-eaad-4172-81f6-ede053a7e1e9",
    "bookingId": "4292ef26-afda-4772-858c-a3d315b796b1",
    "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.