Developers
Reference · Car rental

Agreements and documents

List rental agreements #

GET/api/public/v1/quosuite/car-rental/contracts
Scope : rental_bookings:readlistRentalContracts

Agreements 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

  • langstringquery

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

    frenar
  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description. A final criterion on id makes pagination stable.

  • updatedSincestringquery

    Only returns items created or updated since this instant (ISO 8601, inclusive). With sort=updatedAt, this is the recommended form of an incremental sync.

  • cursorstringquery

    Cursor pagination: nextCursor of the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • statusstring[]query

    Statuses, comma-separated.

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

Response 200application/json

Success.

  • itemsRentalContractDto[]required
    RentalContractDto details
  • paginationPaginationDtorequired
    PaginationDto details

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/contracts' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "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 #

GET/api/public/v1/quosuite/car-rental/contracts/{id}
Scope : rental_bookings:readgetRentalContract

Parameters

  • idstring (uuid)pathrequired
  • langstringquery

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

    frenar

Response 200application/json

Success.

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

    Recorded return.

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

    ERP invoices of the agreement (not cancelled).

    RentalDocumentRefDto details
  • createdAtstringrequired
  • updatedAtstringrequired

Errors

400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR

Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.

401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED

Key missing, invalid, revoked or expired.

403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE

Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.

404NOT_FOUND

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

429API_RATE_LIMITEDAPI_AUTH_BLOCKED

Key or workspace quota reached (see Retry-After), or address blocked.

500INTERNAL_ERROR

Unexpected error. Quote requestId to support.

503SERVICE_UNAVAILABLE

Temporarily unavailable (see Retry-After). No infrastructure details.

Request example
curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/contracts/aac39e3a-0c40-44b2-8697-b597f357c5a9' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"
Response example
{
  "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 #

GET/api/public/v1/quosuite/car-rental/contracts/{id}/pdf
Scope : rental_bookings:readgetRentalContractPdf

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

Request example
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) #

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

voucher: 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)pathrequired
  • kindstringpathrequired
    vouchercontractinvoice
  • langstringquery

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

Request example
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.