Bookings
- GET
/car-rental/bookingsList bookings - POST
/car-rental/bookingsCreate a booking - GET
/car-rental/bookings/{id}Get a booking - POST
/car-rental/bookings/{id}/acceptAccept a request (payment term) - POST
/car-rental/bookings/{id}/cancelCancel a booking - POST
/car-rental/bookings/{id}/confirmConfirm a request without payment - POST
/car-rental/bookings/{id}/contractGenerate the agreement - POST
/car-rental/bookings/{id}/paymentsRecord a received payment - POST
/car-rental/bookings/{id}/pickupHand over the vehicle - POST
/car-rental/bookings/{id}/refuseRefuse a request - POST
/car-rental/bookings/{id}/returnRecord the return - GET
/car-rental/booking-settingsAPI booking settings - GET
/car-rental/reservationsList module reservations - GET
/car-rental/reservations/{id}Get a module reservation
List bookings #
/api/public/v1/quosuite/car-rental/bookingsrental_bookings:readlistRentalBookingsBookings 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
langstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenarpagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description. A final criterion onidmakes pagination stable.updatedSincestringqueryOnly returns items created or updated since this instant (ISO 8601, inclusive). With
sort=updatedAt, this is the recommended form of an incremental sync.cursorstringqueryCursor pagination:
nextCursorof the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive withpage.limitnumberqueryCursor pagination: items per page (100 at most).
?limit=100starts a cursor walk; the response returnspagination.nextCursor.statusstring[]queryDisplayed statuses, comma-separated.
sourcestringqueryWEBSITEAPIsiteIdstring (uuid)queryvehicleIdstring (uuid)querycustomerIdstring (uuid)queryERP customer.
agencyIdstring (uuid)queryPick-up or return agency.
emailstringquerystartFromstringqueryPick-up from (inclusive).
startTostringqueryPick-up until (inclusive).
attentionbooleanqueryOnly those that need an action from the agency.
Response 200application/json
Success.
itemsRentalBookingDto[]requiredRentalBookingDto details
paginationPaginationDtorequiredPaginationDto details
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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 #
/api/public/v1/quosuite/car-rental/bookingsrental_bookings:writeIdempotentcreateRentalBookingBooks 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-KeystringheaderrequiredMandatory 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: 422IDEMPOTENCY_KEY_REUSED. First call still running: 409IDEMPOTENCY_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: 422IDEMPOTENCY_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)requiredFleet vehicle (published on the site if
siteIdis given).startAtstringrequirede.g.2026-12-20T09:00:00ZendAtstringrequirede.g.2026-12-27T09:00:00ZpickupAgencyIdstring (uuid)returnAgencyIdstring (uuid)optionsRentalOptionChoiceInput[]RentalOptionChoiceInput details
langstringvaluesfrenarcustomerIdstring (uuid)Existing ERP customer; without it, the customer is found by the driver’s email, or created.
driverRentalDriverInputrequiredRentalDriverInput details
paymentRentalBookingPaymentInputrequiredRentalBookingPaymentInput details
acceptTermsbooleanrequiredThe customer accepted the website’s rental terms (mandatory,
true) — the fingerprint of the accepted text is kept on the booking.notesstringmax.length 1000
Response 201application/json
Created.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequiredpaymentErrorstring | nullPayment link not issued (
payment.mode: ONLINE): the booking stays held forholdMinutes; 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.
# 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
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}rental_bookings:readgetRentalBookingDisplayed status, payment, vehicle, period, agencies, options, amounts, deposit, customer, module reservation, agreement, invoice, posting state.
Parameters
idstring (uuid)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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) #
/api/public/v1/quosuite/car-rental/bookings/{id}/acceptrental_bookings:writeIdempotentacceptRentalBookingAccepts 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)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
termRentalPaymentTermInputDefault: the channel payment policy’s
onAcceptance.RentalPaymentTermInput details
deadlineHoursnumberLink validity (hours); default:
paymentDeadlineHours, never past pick-up.min.1max.1440e.g.48
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/cancelrental_bookings:writeIdempotentcancelRentalBookingCancels 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)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
reasonstringe.g.Vol annulérefundAmountnumberAmount returned (booking currency); default: the amount from the channel’s cancellation policy. Invoiced: credit note + disbursement; deposit only: disbursement on the booking.
payments:writescope as well.e.g.767.16notifyCustomerbooleanNotify the customer by email (default: yes).
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/confirmrental_bookings:writeconfirmRentalBookingAccepts 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)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
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.
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"{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/contractrental_bookings:writeprepareRentalContractCreates 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)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
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.
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"{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/paymentsrental_bookings:writeIdempotentrecordRentalBookingPaymentA 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)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
amountnumberrequiredAmount collected (booking currency): deposit, balance or total.
e.g.958.95referencestringrequiredReference of the payment on your side — a given payment is recorded only once.
e.g.PSP-778812methodstringvaluesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERdefault"CARD"paidAtstringDefault: now.
Response 201application/json
Created.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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"
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/pickuprental_bookings:writeIdempotentpickUpRentalBookingCustomer 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)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
mileageOutnumbere.g.18250fuelOutnumberFuel in eighths.
min.0max.8depositCollectedbooleanDeposit collected at pick-up (
payments:writescope as well).depositMethodstringvaluesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERdepositReferencestringe.g.EMP-4421
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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"
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/refuserental_bookings:writeIdempotentrefuseRentalBookingRefuses a request (REQUESTED): vehicle released, customer notified (optional reason). Status CANCELLED.
Parameters
idstring (uuid)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
reasonstringe.g.Véhicule immobilisé
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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é"
}'{
"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 #
/api/public/v1/quosuite/car-rental/bookings/{id}/returnrental_bookings:writeIdempotentreturnRentalBookingVehicle 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)pathrequiredIdempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
mileageInnumbere.g.19150fuelInnumbermin.0max.8returnedAtstringOmit with an API key: defaults to now. An explicit timestamp requires the user permission RENTAL_CONTRACTS:FORCE (403 otherwise) and cannot precede actual departure.
depositRentalDepositSettlementInputSettlement of the held deposit (
payments:writescope as well).RentalDepositSettlementInput details
chargeExtraKmbooleanCharge extra kilometres (default: yes).
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber of the module reservation.
e.g.RES-2026-0042sourcestringrequiredWEBSITE(rental website) orAPI.valuesWEBSITEAPIstatusstringrequiredDisplayed status, derived from the module.
valuesPENDING_PAYMENTREQUESTEDCONFIRMEDIN_PROGRESSRETURNEDCANCELLEDEXPIREDstatusLabelstringrequirede.g.ConfirméepaymentModestringrequiredvaluesONLINEAGENCYpaymentStatusstringrequiredvaluesNONEPENDINGPAIDFAILEDPARTIALLY_REFUNDEDREFUNDEDPARTIALLY_PAIDholdExpiresAtstring | nullOnline payment expected until this instant; after that the vehicle is released.
requestExpiresAtstring | nullRequest: the agency answers before this time, otherwise it expires (vehicle released).
acceptedAtstring | nullRequest accepted on…
paymentTermRentalPaymentTermDto | nullPayment term applied (at booking, or chosen on acceptance).
RentalPaymentTermDto details
paymentLinkRentalPaymentLinkDto | nullCurrent payment link (
/pay/…page): pass it to the customer if they are not notified by email (API channelnotifyCustomersetting).RentalPaymentLinkDto details
siteIdstring (uuid) | nullSite whose catalogue was used;
nullfor an API booking without a site.vehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
returnAgencyRentalAgencyRefDto | nullRentalAgencyRefDto details
optionsRentalBookingOptionDto[]requiredRentalBookingOptionDto details
amountsRentalBookingAmountsDtorequiredRentalBookingAmountsDto details
depositRentalDepositStateDto | nullDeposit of the agreement (collected at pick-up);
nullwhile there is no agreement.RentalDepositStateDto details
customerRentalCustomerRefDtorequiredRentalCustomerRefDto details
driverRentalBookingDriverDtorequiredDriver — identity documents and licence:
GET /car-rental/customers/{id}.RentalBookingDriverDto details
notesstring | nullreservationRentalDocumentRefDto | nullModule reservation.
RentalDocumentRefDto details
contractRentalDocumentRefDto | nullRental agreement.
RentalDocumentRefDto details
invoiceRentalDocumentRefDto | nullERP invoice (also readable through
GET /sales/invoices/{id}).RentalDocumentRefDto details
paymentIdstring (uuid) | nullERP payment.
documentsRentalBookingDocumentsDtorequiredRentalBookingDocumentsDto details
erpRentalBookingErpDtorequiredRentalBookingErpDto details
trackingUrlstring | nullCustomer tracking page on the website (secret link: share it with the customer only).
e.g.https://location.exemple.tn/booking/track/…createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/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
}
}'{
"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 #
/api/public/v1/quosuite/car-rental/booking-settingsrental:readgetRentalBookingSettingsWhat 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.
enabledbooleanrequiredBooking through the API is open.
payAtAgencybooleanrequiredRequests without payment (
AGENCY) accepted.holdMinutesnumberrequirede.g.30minLeadHoursnumberrequirede.g.2paymentRentalPaymentPolicyDtorequiredRentalPaymentPolicyDto details
cancellationPolicyRentalCancellationPolicyDtorequiredRentalCancellationPolicyDto details
agencyIdsstring[]requiredBranches open to the API (empty = all).
notifyCustomerbooleanrequiredQuoSuite 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.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/booking-settings' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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 #
/api/public/v1/quosuite/car-rental/reservationsrental_bookings:readlistRentalReservationsAll 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
langstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenarpagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description. A final criterion onidmakes pagination stable.updatedSincestringqueryOnly returns items created or updated since this instant (ISO 8601, inclusive). With
sort=updatedAt, this is the recommended form of an incremental sync.cursorstringqueryCursor pagination:
nextCursorof the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive withpage.limitnumberqueryCursor pagination: items per page (100 at most).
?limit=100starts a cursor walk; the response returnspagination.nextCursor.statusstring[]queryStatuses, comma-separated.
vehicleIdstring (uuid)querycustomerIdstring (uuid)queryagencyIdstring (uuid)querystartFromstringquerystartTostringquery
Response 200application/json
Success.
itemsRentalReservationDto[]requiredRentalReservationDto details
paginationPaginationDtorequiredPaginationDto details
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/reservations' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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 #
/api/public/v1/quosuite/car-rental/reservations/{id}rental_bookings:readgetRentalReservationWith its pricing by the module (totals: excl. tax, VAT, document-level taxes, incl. tax).
Parameters
idstring (uuid)pathrequiredlangstringqueryLanguage of the labels (and of the PDF). Default:
Accept-Language, otherwise the workspace language.frenar
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequirede.g.RES-2026-0042statusstringrequiredvaluesPENDINGCONFIRMEDCONVERTEDCANCELLEDNO_SHOWstatusLabelstringrequirede.g.Confirméesourcestring | nulle.g.TéléphonecustomerIdstring (uuid)requiredDriver (ERP customer).
billToIdstring (uuid) | nullBilled company.
vehicleIdstring (uuid) | nullrequestedCategorystring | nullRequested category (reservation with no designated vehicle: nothing is held).
requestedModelstring | nullperiodRentalPeriodDtorequiredRentalPeriodDto details
pickupAgencyIdstring (uuid) | nullreturnAgencyIdstring (uuid) | nulldailyRatenumberrequirede.g.100vatRatenumber | nulle.g.19currencystringrequirede.g.TNDdepositnumberrequirede.g.500linesRentalLineDto[]requiredRentalLineDto details
totalsRentalTotalsDto | nullPricing by the module (detail only).
RentalTotalsDto details
contractIdstring (uuid) | nullbookingIdstring (uuid) | nullOnline booking (website or API) that created it.
createdAtstringrequiredupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/reservations/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"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.