/lexio-api:lexio-apifrom lexio-api
Use when building or debugging an integration with the Lexio Rent API v1 (https://api.lexio.rent/api/external/v1), the REST API of the Lexio vehicle rental management software. Covers availability and prices, quotes, rentals and amendments, pick-up and return, payments and invoices, customers, fleet, maintenance, the pricing catalogue, and syncing changes through the GET /events feed.
Ships in lexio-api. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lexio Rent is a management software for car, van and motorbike rental agencies. Its API lets a rental company, or a booking platform it authorises, get prices, book, follow and manage its rentals from a server. Every call acts on the Lexio organisation of a single rental company.
https://api.lexio.rent/api/external/v1.md version of any page, index in https://docs.lexio.rent/llms.txt)When a detail below is not enough, fetch the relevant docs page or the OpenAPI spec instead of guessing a field name: unknown request fields are rejected with 400.
A key from the rental company. Authentication is an API key only (lck_…), created by the rental company in Lexio under Paramètres → Développeur → Tokens API. You cannot create one yourself. The company's plan must include the API (the Business plan today), otherwise every call answers 403 FEATURE_NOT_AVAILABLE.
No public sandbox. Calls hit real data. To experiment without risk, ask [email protected] for a demo organisation and keys.
Server side only. The API sends no CORS headers. Never put a key in a web page, a mobile app, a log line or a commit. Send it in a header, never in the URL:
Authorization: Bearer lck_xxxxxxxxxxxxx
The Bearer header is the only accepted form in v1.
Check the key first. GET /organization (any valid key) returns the organisation, its timezone, currency, currencyExponent, VAT settings, and the key's own scopes, partner code and expiry.
| Internal key | Partner key (has a partnerCode) | |
|---|---|---|
| Use | the rental company's own tools | a third-party platform selling the company's vehicles |
| Scope | the whole organisation | the whole catalogue and availability; only its own rentals, quotes, customers and events (others answer 404) |
| Booking rules (opening hours, notice, horizon, minimum length) | not applied | applied: 422 BOOKING_RULE_VIOLATION |
| Rental holder | customerId or customer | customer only |
| Payments | all methods; refunds with payments.refund | Stripe PAYMENT only |
Scopes follow <resource>.<access>: offers.read, quotes.write, rentals.read, rentals.write, rentals.operate, rentals.delete, payments.write, payments.refund, customers.*, vehicles.*, catalog.*, pricing.*, maintenance.*. A missing scope answers 403. Full table: https://docs.lexio.rent/authentification.md
{ "data" }; lists { "data", "nextCursor" }; actions { "data", "effects" }, where effects says what the call triggered.startAt / endAt are the rental company's wall-clock time without offset (2026-11-28T10:00), in the timezone of GET /organization. Sending an offset answers 400 offset_not_allowed. Responses include the offset: strip it before sending a value back. Real instants such as actualStartAt are RFC 3339 with offset.null clears it, a nested object is replaced as a whole unless the operation says it is merged.currency, with exactly currencyExponent decimals. Fields ending in HT exclude VAT, TTC include it. Read vatAmount, amountTTC and balance.dueAmount; do not recompute them. Compute on your side in integer minor units. Details: https://docs.lexio.rent/montants-et-tva.mdcode; treat an unknown code by its HTTP status. Every response has X-Request-Id; quote it when contacting support.Every write on a rental (create, update, delete, cancel, pick-up, return, reschedule, changes, options) and every payment requires an Idempotency-Key header, otherwise 400. It is optional on other writes but recommended.
Idempotent-Replayed: true.422 IDEMPOTENCY_KEY_REUSED. A corrected request needs a new key.409 IDEMPOTENCY_IN_FLIGHT, 409 RENTAL_BUSY, 429: wait Retry-After, then resend identically.502, 504: resend identically with the same key.409 IDEMPOTENCY_ALREADY_APPLIED or 409 ALREADY_EXISTS: do not resend; read the resource it points to.409 RENTAL_CHANGED or 409 PRICE_CHANGED: re-read, then decide. Never retry blindly.Many writes accept ?dryRun=true to preview the result without writing (no idempotency key needed).
limit 1–100 (default 50), then pass nextCursor back as cursor. nextCursor: null ends the list. A page can be short or empty without being the last one: keep following nextCursor.429 RATE_LIMITED comes with Retry-After (seconds). Per key: 120 requests/min overall; writes 60/min, and POST /rentals plus photo uploads 30 per 5 min; POST /quotes and dry runs 120/min. See https://docs.lexio.rent/limites.mdSell a rental (booking platform or website)
GET /availability for a period: vehicles that can be booked, with prices.POST /quotes with vehicleId, startAt, endAt (and options, mileage package, deductible): a priced quote, guaranteed until expiresAt.POST /rentals with quoteId and the holder (customer object, or customerId with an internal key), plus your partnerReference (your order number, unique per partner code; it is not a retry mechanism).POST /rentals/{rentalId}/payments to record the payment (a partner key records a Stripe PAYMENT only).POST /rentals/{rentalId}/cancel with a reason if the customer cancels.
Walkthrough for partner keys: https://docs.lexio.rent/integration-broker.mdKeep another system in sync (there are no webhooks)
GET /events?start=LATEST to get a cursor on "now", store it, then page through GET /rentals to build the initial state.GET /events?cursor=…&limit=100, process events in page order, store the returned nextCursor (always present, even on an empty page). If the page is full, read the next one immediately; otherwise wait 10 to 60 seconds.rental.created, rental.updated, rental.cancelled, rental.deleted): re-read the rental with GET /rentals/{rentalId}. Customers, vehicles, photos and documents do not emit events.410 CURSOR_EXPIRED.
Details: https://docs.lexio.rent/synchronisation.mdRun the counter (internal key with rentals.operate)
POST /rentals/{rentalId}/pickup with the departure inspection (odometer, fuel level, checklist, damages), a PNG signature data URL and termsAccepted: true; later POST /rentals/{rentalId}/return. Upload inspection photos first (…/photo-uploads, then …/photos): the contract freezes the photos already recorded. Lifecycle: https://docs.lexio.rent/cycle-de-vie.md
?dryRun=true first when the operation supports it.LEXIO_API_KEY).export LEXIO_API="https://api.lexio.rent/api/external/v1"
# LEXIO_API_KEY is provided by the rental company (lck_…)
# Check the key and the organisation settings
curl -s "$LEXIO_API/organization" -H "Authorization: Bearer $LEXIO_API_KEY"
# Availability and prices for a period (wall-clock times, no offset)
curl -s "$LEXIO_API/availability?startAt=2026-12-04T09:00&endAt=2026-12-07T09:00" \
-H "Authorization: Bearer $LEXIO_API_KEY"
# Quote, then rental (idempotent)
curl -s -X POST "$LEXIO_API/quotes" \
-H "Authorization: Bearer $LEXIO_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"vehicleId":"<vehicle-uuid>","startAt":"2026-12-04T09:00","endAt":"2026-12-07T09:00"}'
GET /availability also accepts vehicleId, categoryId, vehicleType and isAvailable filters. Step-by-step quickstart (six calls, from key check to cancellation): https://docs.lexio.rent/demarrage-rapide.md
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
lexio-api@buildwithclaude is listed by davepoon/buildwithclaude — review the source before installing
npx claudepluginhub davepoon/buildwithclaude --plugin lexio-api