Developers
Car rental

Track a booking

Statuses, confirmation, received payment, vehicle hand-over and return, deposit, cancellation and refund.

A booking lives at the pace of the Car Rental module: confirmed, prepared, handed over, returned — or cancelled, or expired. Its displayed status is derived from the online booking, the module reservation and the agreement: it says the same as the agency’s Online bookings screen, whatever path the change took (API, website, agency, payment).

1. Statuses

statusMeaning
PENDING_PAYMENTvehicle held, payment expected until holdExpiresAt (when booking, or through the link sent on acceptance — paymentLink)
REQUESTEDrequest to accept or refuse before requestExpiresAt
CONFIRMEDpaid (in full or the required deposit, amounts.due) or confirmed without payment; agreement possibly being prepared
IN_PROGRESSvehicle handed over to the customer (agreement open)
RETURNEDvehicle returned (agreement closed)
CANCELLEDcancelled (by the customer, the agency, the API) or customer no-show
EXPIREDhold expired without payment, or request left unanswered: the vehicle went back to the planning

Alongside: paymentStatus (NONE, PENDING, PARTIALLY_PAID — down payment received, PAID, FAILED, PARTIALLY_REFUNDED, REFUNDED), paymentTerm (term applied), amounts.due / paid / balanceDue, erp.posted (payment posted to the ERP, including an advance without an invoice) and erp.attention (an action from the agency is expected). Use documents.* to check which PDFs exist.

2. Read and list

GET/car-rental/bookings/{id}

curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"

GET/car-rental/bookings

curl 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings?status=CONFIRMED,IN_PROGRESS&startFrom=2026-12-01&sort=startAt' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"

To synchronise: updatedSince=…&sort=updatedAt, or better, webhooks. trackingUrl is the customer’s tracking page on the website (null without a website) — a secret link, to be shared with them only, like paymentLink.url.

3. Move it forward

Each action goes through the module — the same ones as the agency screen. Scope rental_bookings:write.

Accept a REQUESTED request by choosing the amount to pay (total, % or fixed amount) — a payment link is sent to the customer; or confirm it without payment (paid at the agency); or refuse it:

POST/car-rental/bookings/{id}/accept

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/accept' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "term": {
    "type": "FIXED",
    "value": 200
  }
}'

POST/car-rental/bookings/{id}/confirm

curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/confirm' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY"

Record a payment received outside QuoSuite (payments:write scope as well) — the booking is posted through the same path as a provider’s webhook: at the total, confirmed, agreement, validated invoice and allocated payment, all together; at the required deposit, confirmed with an advance on the booking; afterwards, each payment (the balance) is one more receipt:

POST/car-rental/bookings/{id}/payments

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/payments' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "amount": 834,
  "reference": "CAISSE-42",
  "method": "CASH"
}'

Hand over the vehicle (agreement opened, odometer and fuel recorded, deposit collected — payments:write as well if depositCollected):

POST/car-rental/bookings/{id}/pickup

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/pickup' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "mileageOut": 18250,
  "fuelOut": 8,
  "depositCollected": true,
  "depositMethod": "CARD"
}'

Record the return (agreement closed, extra kilometres charged, deposit returned or retained):

POST/car-rental/bookings/{id}/return

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/return' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "mileageIn": 19150,
  "fuelIn": 6,
  "deposit": {
    "returnedAmount": 450,
    "retainedAmount": 50,
    "reason": "Tank not refilled"
  }
}'

Cancel as long as the vehicle has not been returned:

POST/car-rental/bookings/{id}/cancel

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/car-rental/bookings/9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a/cancel' \
  -H "Authorization: Bearer $QUOSUITE_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "Flight cancelled"
}'

4. Deposit and refund

  • The deposit is never collected online: announced at booking (amounts.deposit, not in the total), collected at hand-over, returned or retained at return, returned automatically if the agreement is cancelled. Its state: deposit.status (NONE, HELD, SETTLED).
  • At return, returnedAmount + retainedAmount must equal the held deposit. Retention requires a reason and cannot exceed the outstanding agreement or invoice balance; add any damage or fuel charges in the ERP first. deposit.returned includes earlier imported refunds. The retained part pays the agreement and does not increase the online booking’s amounts.paid.
  • Cancelling a paid booking uses the booking channel’s cancellation policy (API settings for API bookings, website settings for website bookings), or refundAmount, capped at the unrefunded amount received. An invoiced booking produces a credit note and an outgoing payment; an advance alone produces an outgoing payment without a credit note. The money itself is returned from the provider’s console.

Omit returnedAt when calling with an API key: return uses the current time. Supplying a timestamp requires the user permission RENTAL_CONTRACTS:EDIT_DATES, which API scopes do not grant (403). A permitted return time cannot precede actual departure. The public pick-up input does not expose departedAt; date corrections belong in the ERP application.