Agreements and documents
- GET
/car-rental/contractsList rental agreements - GET
/car-rental/contracts/{id}Get a rental agreement - GET
/car-rental/contracts/{id}/pdfAgreement PDF - GET
/car-rental/bookings/{id}/documents/{kind}Booking PDF (voucher, agreement, invoice)
List rental agreements #
/api/public/v1/quosuite/car-rental/contractsrental_bookings:readlistRentalContractsAgreements of the module (counter, website, API; rental and transfer): status, period, recorded return, frozen totals, mileage, deposit, invoices. Allowed sort: startAt, date, 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.
kindstringqueryRENTALTRANSFERvehicleIdstring (uuid)querycustomerIdstring (uuid)queryagencyIdstring (uuid)querystartFromstringquerystartTostringquery
Response 200application/json
Success.
itemsRentalContractDto[]requiredRentalContractDto 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/contracts' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "d02ea7f3-3494-4196-8e97-c3eed321d839",
"number": "CTR-2026-0042",
"kind": "RENTAL",
"status": "DRAFT",
"statusLabel": "En cours",
"reservationId": "08790265-3faf-47f2-8f24-ab723355ef85",
"bookingId": "fb8dafe8-8990-4c2c-84d2-e869d6e36745",
"customerId": "e173ece3-5191-41ee-8f3b-d30a2e9cad19",
"billToId": "25a97a47-e6b1-4e6e-8dbf-3ba6185a4bb1",
"vehicle": {
"id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
"plate": "245 TU 1234",
"brand": "Peugeot",
"model": "208",
"category": "Citadine",
"fuel": "DIESEL",
"gearbox": "Manuelle",
"seats": 5
},
"period": {
"startAt": "2026-12-20T09:00:00.000Z",
"endAt": "2026-12-27T09:00:00.000Z",
"days": 7
},
"returnedAt": "2026-10-02T09:15:00.000Z",
"pickupAgencyId": "74fcebf0-d636-4da2-8ca5-8611b9387ded",
"returnAgencyId": "d58a82ea-ad25-45f6-890e-a7af93346595",
"dailyRate": 100,
"vatRate": 19,
"currency": "TND",
"lines": [
{
"kind": "RENTAL",
"label": "Location 7 jours",
"quantity": 7,
"unitPrice": 100,
"vatRate": 19,
"totalExclTax": 700,
"totalInclTax": 833
}
],
"totals": {
"totalExclTax": 805,
"totalVat": 152.95,
"taxes": [
{
"label": "Timbre fiscal",
"amount": 1,
"taxRateId": "fa39be0f-bd54-45e6-8881-f6669dd38479",
"computation": "PERCENTAGE",
"stage": "BEFORE_VAT",
"rate": 0,
"base": 0,
"unitAmount": 0,
"position": 0
}
],
"totalInclTax": 958.95
},
"mileage": {
"out": null,
"in": null,
"includedKm": null,
"extraKmRate": null,
"extraKm": null,
"extraKmAmount": null
},
"deposit": {
"status": "NONE",
"statusLabel": "Détenue",
"amount": 500,
"method": "CASH",
"returned": 0,
"retained": 0
},
"invoices": [
{
"id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
"number": "CTR-2026-0042",
"status": "OPEN",
"statusLabel": "En cours"
}
],
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
}
],
"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 rental agreement #
/api/public/v1/quosuite/car-rental/contracts/{id}rental_bookings:readgetRentalContractParameters
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.CTR-2026-0042kindstringrequiredvaluesRENTALTRANSFERstatusstringrequiredvaluesDRAFTOPENCLOSEDCANCELLEDstatusLabelstringrequirede.g.En coursreservationIdstring (uuid) | nullbookingIdstring (uuid) | nullcustomerIdstring (uuid)requiredbillToIdstring (uuid) | nullvehicleRentalVehicleSummaryDtorequiredRentalVehicleSummaryDto details
periodRentalPeriodDtorequiredRentalPeriodDto details
returnedAtstring | nullRecorded return.
pickupAgencyIdstring (uuid) | nullreturnAgencyIdstring (uuid) | nulldailyRatenumberrequirede.g.100vatRatenumberrequirede.g.19currencystringrequirede.g.TNDlinesRentalContractLineDto[]requiredRentalContractLineDto details
totalsRentalTotalsDtorequiredRentalTotalsDto details
mileageRentalContractMileageDtorequiredRentalContractMileageDto details
depositRentalDepositStateDtorequiredRentalDepositStateDto details
invoicesRentalDocumentRefDto[]requiredERP invoices of the agreement (not cancelled).
RentalDocumentRefDto details
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/contracts/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"{
"success": true,
"data": {
"id": "d02ea7f3-3494-4196-8e97-c3eed321d839",
"number": "CTR-2026-0042",
"kind": "RENTAL",
"status": "DRAFT",
"statusLabel": "En cours",
"reservationId": "08790265-3faf-47f2-8f24-ab723355ef85",
"bookingId": "fb8dafe8-8990-4c2c-84d2-e869d6e36745",
"customerId": "e173ece3-5191-41ee-8f3b-d30a2e9cad19",
"billToId": "25a97a47-e6b1-4e6e-8dbf-3ba6185a4bb1",
"vehicle": {
"id": "a2ad2669-1a21-406a-8d6d-91e8ed6ff091",
"plate": "245 TU 1234",
"brand": "Peugeot",
"model": "208",
"category": "Citadine",
"fuel": "DIESEL",
"gearbox": "Manuelle",
"seats": 5
},
"period": {
"startAt": "2026-12-20T09:00:00.000Z",
"endAt": "2026-12-27T09:00:00.000Z",
"days": 7
},
"returnedAt": "2026-10-02T09:15:00.000Z",
"pickupAgencyId": "74fcebf0-d636-4da2-8ca5-8611b9387ded",
"returnAgencyId": "d58a82ea-ad25-45f6-890e-a7af93346595",
"dailyRate": 100,
"vatRate": 19,
"currency": "TND",
"lines": [
{
"kind": "RENTAL",
"label": "Location 7 jours",
"quantity": 7,
"unitPrice": 100,
"vatRate": 19,
"totalExclTax": 700,
"totalInclTax": 833
}
],
"totals": {
"totalExclTax": 805,
"totalVat": 152.95,
"taxes": [
{
"label": "Timbre fiscal",
"amount": 1,
"taxRateId": "fa39be0f-bd54-45e6-8881-f6669dd38479",
"computation": "PERCENTAGE",
"stage": "BEFORE_VAT",
"rate": 0,
"base": 0,
"unitAmount": 0,
"position": 0
}
],
"totalInclTax": 958.95
},
"mileage": {
"out": null,
"in": null,
"includedKm": null,
"extraKmRate": null,
"extraKm": null,
"extraKmAmount": null
},
"deposit": {
"status": "NONE",
"statusLabel": "Détenue",
"amount": 500,
"method": "CASH",
"returned": 0,
"retained": 0
},
"invoices": [
{
"id": "3b0018f9-d0d9-4ee2-89c4-7486bc993345",
"number": "CTR-2026-0042",
"status": "OPEN",
"statusLabel": "En cours"
}
],
"createdAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Try this request
Agreement PDF #
/api/public/v1/quosuite/car-rental/contracts/{id}/pdfrental_bookings:readgetRentalContractPdfThe agreement printed with the workspace’s default agreement template (template language). Workspace with no agreement template: 422.
Parameters
idstring (uuid)pathrequired
Response 200application/pdf
The PDF.
Binary file (application/pdf).
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/contracts/aac39e3a-0c40-44b2-8697-b597f357c5a9/pdf?lang=en' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-o 'contract.pdf'Try this request
Booking PDF (voucher, agreement, invoice) #
/api/public/v1/quosuite/car-rental/bookings/{id}/documents/{kind}rental_bookings:readgetRentalBookingDocumentvoucher: booking voucher (while the booking is neither cancelled nor expired); contract: agreement (once created — POST …/contract, hand-over, or full payment); invoice: invoice (issued on full-payment posting). A down payment alone is an advance on the reservation, without an invoice or automatic agreement. Not available yet: 404. The booking’s documents.* flags say which exist.
Parameters
idstring (uuid)pathrequiredkindstringpathrequiredvouchercontractinvoicelangstringqueryLanguage of the PDF.
frenar
Response 200application/pdf
The PDF.
Binary file (application/pdf).
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/aac39e3a-0c40-44b2-8697-b597f357c5a9/documents/0e074211-2c4c-429a-8fcc-60007699d381' \
-H "Authorization: Bearer $QUOSUITE_API_KEY"Try this request
Generated from the QuoSuite API OpenAPI contract v1.0.0.