RoadOpsDeveloper

Rental Cars

Ask

List rental cars

GET/v1/teams/{teamId}/rental-cars

Lists rental car records for a team.

Required scopes: rental_car:read

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

query.datestring:date

Optional local date filter in YYYY-MM-DD format. Returns rentals whose pickup/drop-off date range overlaps this date.

query.limitinteger

Maximum number of records to return. Defaults to 50 and is capped at 200.

query.cursorstring

Cursor returned by page.nextCursor from the previous list response.

Response 200

dataobject[]
data[].companyNamestring

Rental car company name.

data[].labelstring

Optional short display label.

data[].confirmationNumberstring

Rental booking confirmation number.

data[].status"confirmed" | "unconfirmed"

Rental confirmation state.

data[].priority"normal" | "high"

Rental display priority.

data[].pickupDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

data[].pickupTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

data[].pickupLocationobject

Rental pickup or drop-off location, including its required timezone.

data[].pickupLocation.labelstring

Human-readable place label.

data[].pickupLocation.addressstring

Street address or venue address.

data[].pickupLocation.placeIdstring

Google Places ID when available.

data[].pickupLocation.latitudenumber

Latitude in decimal degrees.

data[].pickupLocation.longitudenumber

Longitude in decimal degrees.

data[].pickupLocation.timezoneobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

data[].dropoffDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

data[].dropoffTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

data[].dropoffLocationobject

Rental pickup or drop-off location, including its required timezone.

data[].dropoffLocation.labelstring

Human-readable place label.

data[].dropoffLocation.addressstring

Street address or venue address.

data[].dropoffLocation.placeIdstring

Google Places ID when available.

data[].dropoffLocation.latitudenumber

Latitude in decimal degrees.

data[].dropoffLocation.longitudenumber

Longitude in decimal degrees.

data[].dropoffLocation.timezoneobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

data[].primaryDriverobject

Primary renter or driver.

data[].primaryDriver.namestring

Contact person's name.

data[].primaryDriver.titlestring

Contact person's role or job title.

data[].primaryDriver.phonestring

Contact phone number.

data[].primaryDriver.emailstring:email

Contact email address.

data[].primaryDriver.notesstring

Short notes about this contact.

data[].vehicleClassstring

Reserved vehicle class.

data[].vehicleDescriptionstring

Assigned vehicle or other vehicle details.

data[].contactsobject[]

Rental company contacts.

data[].contacts[].namestring

Contact person's name.

data[].contacts[].titlestring

Contact person's role or job title.

data[].contacts[].phonestring

Contact phone number.

data[].contacts[].emailstring:email

Contact email address.

data[].contacts[].notesstring

Short notes about this contact.

data[].notesstring

General rental notes.

data[].sourceMetadataobject

Integration or import metadata retained with the rental.

data[].visibilityobject

Optional rental visibility rules.

data[].visibility.groupIdsstring:uuid[]
data[].visibility.userIdsstring:uuid[]
data[].pickupAtstring:date-time

Derived UTC pickup timestamp.

data[].dropoffAtstring:date-time

Derived UTC drop-off timestamp.

data[].idstring:uuid

Rental car identifier.

data[].orgIdstring:uuid

Team identifier.

data[].isDeletedboolean

Soft-delete flag.

data[].versioninteger

Current rental car aggregate version.

data[].createdAtstring:date-time

ISO 8601 timestamp when the rental car was created.

data[].createdBystring

User identifier that created the rental car.

data[].updatedAtstring:date-time

ISO 8601 timestamp of the latest update.

data[].updatedBystring

User identifier that last updated the rental car.

data[].cursorinteger

Latest projected event-ledger cursor.

pageobject
page.limitinteger

Maximum number of records returned in this page.

page.nextCursorstring | null

Cursor to pass as the next request's cursor query parameter, or null when there are no more results.

metaobject
meta.cursornumber | null

Create a rental car

POST/v1/teams/{teamId}/rental-cars

Accepts a command to create a rental car record.

Required scopes: rental_car:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Request body (application/json)

companyNamerequiredstring

Rental car company name.

labelstring

Optional short display label.

confirmationNumberstring

Rental booking confirmation number.

statusrequired"confirmed" | "unconfirmed"

Rental confirmation state.

priorityrequired"normal" | "high"

Rental display priority.

pickupDaterequiredstring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

pickupTimerequiredstring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

pickupLocationrequiredobject

Rental pickup or drop-off location, including its required timezone.

pickupLocation.labelstring

Human-readable place label.

pickupLocation.addressstring

Street address or venue address.

pickupLocation.placeIdstring

Google Places ID when available.

pickupLocation.latitudenumber

Latitude in decimal degrees.

pickupLocation.longitudenumber

Longitude in decimal degrees.

pickupLocation.timezonerequiredobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

dropoffDaterequiredstring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

dropoffTimerequiredstring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

dropoffLocationrequiredobject

Rental pickup or drop-off location, including its required timezone.

dropoffLocation.labelstring

Human-readable place label.

dropoffLocation.addressstring

Street address or venue address.

dropoffLocation.placeIdstring

Google Places ID when available.

dropoffLocation.latitudenumber

Latitude in decimal degrees.

dropoffLocation.longitudenumber

Longitude in decimal degrees.

dropoffLocation.timezonerequiredobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

primaryDriverobject

Primary renter or driver.

primaryDriver.namerequiredstring

Contact person's name.

primaryDriver.titlestring

Contact person's role or job title.

primaryDriver.phonestring

Contact phone number.

primaryDriver.emailstring:email

Contact email address.

primaryDriver.notesstring

Short notes about this contact.

vehicleClassstring

Reserved vehicle class.

vehicleDescriptionstring

Assigned vehicle or other vehicle details.

contactsrequiredobject[]

Rental company contacts.

contacts[].namerequiredstring

Contact person's name.

contacts[].titlestring

Contact person's role or job title.

contacts[].phonestring

Contact phone number.

contacts[].emailstring:email

Contact email address.

contacts[].notesstring

Short notes about this contact.

notesstring

General rental notes.

sourceMetadataobject

Integration or import metadata retained with the rental.

visibilityobject

Optional rental visibility rules.

visibility.groupIdsstring:uuid[]
visibility.userIdsstring:uuid[]
idstring:uuid

Optional caller-supplied rental car ID. RoadOps generates one when omitted.

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative URL to refetch the affected resource.

Retrieve a rental car

GET/v1/teams/{teamId}/rental-cars/{rentalCarId}

Returns one rental car record by ID.

Required scopes: rental_car:read

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.rentalCarIdrequiredstring:uuid

Rental car identifier.

Response 200

dataobject
data.companyNamestring

Rental car company name.

data.labelstring

Optional short display label.

data.confirmationNumberstring

Rental booking confirmation number.

data.status"confirmed" | "unconfirmed"

Rental confirmation state.

data.priority"normal" | "high"

Rental display priority.

data.pickupDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

data.pickupTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

data.pickupLocationobject

Rental pickup or drop-off location, including its required timezone.

data.pickupLocation.labelstring

Human-readable place label.

data.pickupLocation.addressstring

Street address or venue address.

data.pickupLocation.placeIdstring

Google Places ID when available.

data.pickupLocation.latitudenumber

Latitude in decimal degrees.

data.pickupLocation.longitudenumber

Longitude in decimal degrees.

data.pickupLocation.timezoneobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

data.dropoffDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

data.dropoffTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

data.dropoffLocationobject

Rental pickup or drop-off location, including its required timezone.

data.dropoffLocation.labelstring

Human-readable place label.

data.dropoffLocation.addressstring

Street address or venue address.

data.dropoffLocation.placeIdstring

Google Places ID when available.

data.dropoffLocation.latitudenumber

Latitude in decimal degrees.

data.dropoffLocation.longitudenumber

Longitude in decimal degrees.

data.dropoffLocation.timezoneobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

data.primaryDriverobject

Primary renter or driver.

data.primaryDriver.namestring

Contact person's name.

data.primaryDriver.titlestring

Contact person's role or job title.

data.primaryDriver.phonestring

Contact phone number.

data.primaryDriver.emailstring:email

Contact email address.

data.primaryDriver.notesstring

Short notes about this contact.

data.vehicleClassstring

Reserved vehicle class.

data.vehicleDescriptionstring

Assigned vehicle or other vehicle details.

data.contactsobject[]

Rental company contacts.

data.contacts[].namestring

Contact person's name.

data.contacts[].titlestring

Contact person's role or job title.

data.contacts[].phonestring

Contact phone number.

data.contacts[].emailstring:email

Contact email address.

data.contacts[].notesstring

Short notes about this contact.

data.notesstring

General rental notes.

data.sourceMetadataobject

Integration or import metadata retained with the rental.

data.visibilityobject

Optional rental visibility rules.

data.visibility.groupIdsstring:uuid[]
data.visibility.userIdsstring:uuid[]
data.pickupAtstring:date-time

Derived UTC pickup timestamp.

data.dropoffAtstring:date-time

Derived UTC drop-off timestamp.

data.idstring:uuid

Rental car identifier.

data.orgIdstring:uuid

Team identifier.

data.isDeletedboolean

Soft-delete flag.

data.versioninteger

Current rental car aggregate version.

data.createdAtstring:date-time

ISO 8601 timestamp when the rental car was created.

data.createdBystring

User identifier that created the rental car.

data.updatedAtstring:date-time

ISO 8601 timestamp of the latest update.

data.updatedBystring

User identifier that last updated the rental car.

data.cursorinteger

Latest projected event-ledger cursor.

metaobject
meta.cursorinteger

Update a rental car

PATCH/v1/teams/{teamId}/rental-cars/{rentalCarId}

Accepts a command to update rental car fields.

Required scopes: rental_car:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.rentalCarIdrequiredstring:uuid

Rental car identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Request body (application/json)

expectedVersioninteger

Optional aggregate version guard.

updatesrequiredobject

Rental car fields to update.

updates.companyNamestring

Rental car company name.

updates.labelstring

Optional short display label.

updates.confirmationNumberstring

Rental booking confirmation number.

updates.status"confirmed" | "unconfirmed"

Rental confirmation state.

updates.priority"normal" | "high"

Rental display priority.

updates.pickupDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

updates.pickupTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

updates.pickupLocationobject

Rental pickup or drop-off location, including its required timezone.

updates.pickupLocation.labelstring

Human-readable place label.

updates.pickupLocation.addressstring

Street address or venue address.

updates.pickupLocation.placeIdstring

Google Places ID when available.

updates.pickupLocation.latitudenumber

Latitude in decimal degrees.

updates.pickupLocation.longitudenumber

Longitude in decimal degrees.

updates.pickupLocation.timezonerequiredobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

updates.dropoffDatestring

Local rental date in YYYY-MM-DD format at the corresponding rental location.

updates.dropoffTimestring

Local rental time in HH:mm 24-hour format at the corresponding rental location.

updates.dropoffLocationobject

Rental pickup or drop-off location, including its required timezone.

updates.dropoffLocation.labelstring

Human-readable place label.

updates.dropoffLocation.addressstring

Street address or venue address.

updates.dropoffLocation.placeIdstring

Google Places ID when available.

updates.dropoffLocation.latitudenumber

Latitude in decimal degrees.

updates.dropoffLocation.longitudenumber

Longitude in decimal degrees.

updates.dropoffLocation.timezonerequiredobject

IANA timezone used to interpret and display the rental pickup or drop-off time.

updates.primaryDriverobject | null

Updated primary renter or driver, or null to clear the existing primary driver.

updates.primaryDriver.namerequiredstring

Contact person's name.

updates.primaryDriver.titlestring

Contact person's role or job title.

updates.primaryDriver.phonestring

Contact phone number.

updates.primaryDriver.emailstring:email

Contact email address.

updates.primaryDriver.notesstring

Short notes about this contact.

updates.vehicleClassstring

Reserved vehicle class.

updates.vehicleDescriptionstring

Assigned vehicle or other vehicle details.

updates.contactsobject[]

Rental company contacts.

updates.contacts[].namerequiredstring

Contact person's name.

updates.contacts[].titlestring

Contact person's role or job title.

updates.contacts[].phonestring

Contact phone number.

updates.contacts[].emailstring:email

Contact email address.

updates.contacts[].notesstring

Short notes about this contact.

updates.notesstring

General rental notes.

updates.sourceMetadataobject

Integration or import metadata retained with the rental.

updates.visibilityobject

Optional rental visibility rules.

updates.visibility.groupIdsstring:uuid[]
updates.visibility.userIdsstring:uuid[]

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative URL to refetch the affected resource.

Delete a rental car

DELETE/v1/teams/{teamId}/rental-cars/{rentalCarId}

Accepts a command to delete a rental car record.

Required scopes: rental_car:write

Parameters

path.teamIdrequiredstring:uuid

Team identifier.

path.rentalCarIdrequiredstring:uuid

Rental car identifier.

header.Idempotency-Keystring:uuid

Optional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request.

Response 202

commandIdstring:uuid

Command identifier accepted into the RoadOps command ledger.

resourceIdstring:uuid

Identifier of the resource targeted by the command.

resourceTypestring

Resource type targeted by the command.

status"applied"

Command dispatch status.

aggregateVersioninteger

Aggregate version produced by the accepted command.

cursorinteger

Event-ledger cursor for the accepted update. Refetch until returned records reach this cursor.

linksobject
links.refetchstring

Relative URL to refetch the affected resource.