Wenmar Pro Courtesy cars API
The Courtesy cars API from Wenmar Pro — 11 operation(s) for courtesy cars.
The Courtesy cars API from Wenmar Pro — 11 operation(s) for courtesy cars.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wenmarpro-com:wenmarpro-com-courtesy-cars-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: ''
license:
name: ''
title: Wenmar Courtesy cars API
version: 0.1.0
tags:
- name: Courtesy cars
paths:
/courtesy_car_loans:
get:
operationId: courtesy_car_loans_index
responses:
'200':
content:
application/json:
schema:
type: object
description: 'loans newest first: `{data, total, next_offset}`'
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans index
x-summary-source: derived
/courtesy_car_loans/lend:
post:
operationId: courtesy_car_loans_lend
requestBody:
content:
application/json:
schema:
properties:
courtesy_car_id:
description: The car to lend
format: int64
type: integer
customer_id:
default: null
description: 'Who has it; default: the work order''s customer'
format: int64
type:
- integer
- 'null'
driver_id:
default: null
description: 'Who drives it (one of the customer''s drivers); default: the work order''s driver'
format: int64
type:
- integer
- 'null'
due_back_at:
default: null
description: When it is due back (UTC time)
type:
- string
- 'null'
fuel_out_eighths:
default: null
description: 'Fuel going out, 0-8 eighths; default: what the last return left'
format: int64
type:
- integer
- 'null'
odometer_out:
default: null
description: 'The odometer going out; default: the car''s'
format: int64
type:
- integer
- 'null'
work_order_id:
default: null
description: The work order it is lent on; without one a customer is needed
format: int64
type:
- integer
- 'null'
required:
- courtesy_car_id
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the loan, out; 409 car_not_available, car_out_of_service; adds the location's fee line when it has one
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans lend
x-summary-source: derived
/courtesy_car_loans/reserve:
post:
operationId: courtesy_car_loans_reserve
requestBody:
content:
application/json:
schema:
properties:
booking_id:
default: null
description: The booking it is for
format: int64
type:
- integer
- 'null'
courtesy_car_id:
description: The car to hold
format: int64
type: integer
customer_id:
default: null
description: 'Who it is for; default: the work order''s or booking''s customer'
format: int64
type:
- integer
- 'null'
reserved_for_at:
default: null
description: When the reservation starts (UTC time)
type:
- string
- 'null'
work_order_id:
default: null
description: The work order it is for
format: int64
type:
- integer
- 'null'
required:
- courtesy_car_id
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the reservation; 409 car_not_available, car_out_of_service
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans reserve
x-summary-source: derived
/courtesy_car_loans/{id}/agreement:
post:
operationId: courtesy_car_loans_agreement
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
attachment_id:
description: The signature image, an attachment of the loan's work order
type: string
required:
- attachment_id
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the loan with its agreement attachment
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans agreement
x-summary-source: derived
/courtesy_car_loans/{id}/cancel:
post:
operationId: courtesy_car_loans_cancel
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties: {}
required: []
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the cancelled reservation
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans cancel
x-summary-source: derived
/courtesy_car_loans/{id}/return:
post:
operationId: courtesy_car_loans_return
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
damage_note:
default: null
description: Damage found ("scratch rear bumper")
type:
- string
- 'null'
fuel_in_eighths:
default: null
description: Fuel coming in, 0-8 eighths
format: int64
type:
- integer
- 'null'
odometer_in:
default: null
description: The odometer coming in; sets the car's odometer
format: int64
type:
- integer
- 'null'
required: []
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the returned loan with `warnings` (odometer_in_lower)
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans return
x-summary-source: derived
/courtesy_car_loans/{id}/sign:
post:
operationId: courtesy_car_loans_sign
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
method:
description: in_person (a signature image), paper (the customer signed the printed terms) or portal
type: string
signature_attachment_id:
default: null
description: The signature image, an attachment of the loan's work order; required for in_person
type:
- string
- 'null'
signer_name:
description: Who signed
type: string
required:
- method
- signer_name
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the loan with its agreement
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy car loans sign
x-summary-source: derived
/courtesy_cars:
get:
operationId: courtesy_cars_index
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the location''s courtesy cars with their state and open loan: `{data, total, next_offset}`'
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars index
x-summary-source: derived
post:
operationId: courtesy_cars_create
requestBody:
content:
application/json:
schema:
properties:
license_plate:
default: null
type:
- string
- 'null'
location_id:
default: null
description: 'The location the car belongs to; default: the user''s own (or the first)'
format: int64
type:
- integer
- 'null'
make:
default: null
type:
- string
- 'null'
model:
default: null
type:
- string
- 'null'
name:
description: The car's name on the board, e.g. "Blue Corolla"; unique among the location's live cars
type: string
notes:
default: null
type:
- string
- 'null'
odometer:
default: null
description: The odometer now, in the car's unit
format: int64
type:
- integer
- 'null'
odometer_unit:
default: null
description: 0 = km, 1 = mi (default 0)
format: int64
type:
- integer
- 'null'
vin:
default: null
type:
- string
- 'null'
year:
default: null
format: int64
type:
- integer
- 'null'
required:
- name
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the new car (needs settings.manage)
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars create
x-summary-source: derived
/courtesy_cars/{id}:
get:
operationId: courtesy_cars_show
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: one car with its state and open loan
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars show
x-summary-source: derived
patch:
operationId: courtesy_cars_update
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
license_plate:
default: null
description: A new plate; an empty string clears it
type:
- string
- 'null'
make:
default: null
type:
- string
- 'null'
model:
default: null
type:
- string
- 'null'
name:
default: null
description: A new name
type:
- string
- 'null'
notes:
default: null
type:
- string
- 'null'
odometer:
default: null
format: int64
type:
- integer
- 'null'
odometer_unit:
default: null
description: 0 = km, 1 = mi
format: int64
type:
- integer
- 'null'
vin:
default: null
type:
- string
- 'null'
year:
default: null
format: int64
type:
- integer
- 'null'
required: []
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the changed car (needs settings.manage)
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars update
x-summary-source: derived
/courtesy_cars/{id}/archive:
post:
operationId: courtesy_cars_archive
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties: {}
required: []
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the archived car; 409 car_has_open_loan while a loan is open
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars archive
x-summary-source: derived
/courtesy_cars/{id}/out_of_service:
post:
operationId: courtesy_cars_out_of_service
parameters:
- description: id
in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
note:
default: null
description: Why, kept on the car's notes
type:
- string
- 'null'
out:
description: 'true: not lendable ("at the body shop"); false: back in service'
type: boolean
required:
- out
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the car, out of service or back
'401':
description: unauthenticated
'403':
description: forbidden
'404':
description: not found
'409':
description: conflict
'422':
description: validation_failed
security:
- bearer: []
tags:
- Courtesy cars
summary: Courtesy cars out of service
x-summary-source: derived
components:
securitySchemes:
bearer:
scheme: bearer
type: http