API Reference
- Addresses
- Attachments
- Calls
- Contacts
- Credit Applications
- Customers
- Deals
- Definitions
- DMV Fees
- Documents
- Fees
- Holidays
- Insurance Policies
- Insurance Quotes
- Leads
- Lead Events
- Listings
- Locations
- Logs
- Meetings
- Messages
- Pre-Approvals
- Sales Reps
- Searches
- Service Quotes
- Service Orders
- Taxes And Fees
- Templates
- CRM Trades
- Trades
- VDP Emails
- CRM Vehicles
- GETFind paginated Crm Vehicles
- POSTCreate a new Crm Vehicle
- DELDelete multiple Crm Vehicles
- PATCHUpdate multiple Crm Vehicles
- GETGet a single Crm Vehicle by its id
- DELDeletes an existing Crm Vehicle
- PATCHUpdates a Crm Vehicle
- GETCrm Vehicle versions
- GETGet a single Crm Vehicle version by its id
- POSTRestore a Crm Vehicle version by its id
- GET
- Vehicles
- Web Events
- Webhooks
CRM Vehicles
Updates a Crm Vehicle
Updates a Crm Vehicle
PATCH
/
crmVehicles
/
{id}
Copy
curl --request PATCH \
--url https://commerce.driv.ly/api/crmVehicles/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"vin": "<string>",
"search": [
123
],
"favorite": [
123
],
"exteriorColor": "<string>",
"status": "Needs Review",
"reason": [
"Wrong Color"
],
"notes": "<string>",
"salesPrice": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"bodyStyle": "<string>",
"mileage": 123,
"condition": 123,
"newOrUsed": "<string>",
"auction": "<string>",
"auctionDate": "<string>",
"laneAndRun": "<string>",
"pickupZip": "<string>",
"estimatedTransportFee": "<string>",
"adjMmr": "<string>",
"minBid": "<string>",
"buyNow": "<string>",
"retailPrice": "<string>",
"tmvUsedRetailTotalWithOptions": "<string>",
"kbbRetailBook": "<string>",
"bbTotalRetail": "<string>",
"wholesaleVdp": "<string>",
"retailVdp": "<string>",
"conditionReport": "<string>",
"updateRequested": "<string>",
"createdBy": 123,
"lastModifiedBy": 123,
"vdpEmails": [
123
],
"likes": "<string>",
"dislikes": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
}'
Copy
{
"doc": {
"vin": "<string>",
"search": [
123
],
"favorite": [
123
],
"exteriorColor": "<string>",
"status": "Needs Review",
"reason": [
"Wrong Color"
],
"notes": "<string>",
"salesPrice": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"bodyStyle": "<string>",
"mileage": 123,
"condition": 123,
"newOrUsed": "<string>",
"auction": "<string>",
"auctionDate": "<string>",
"laneAndRun": "<string>",
"pickupZip": "<string>",
"estimatedTransportFee": "<string>",
"adjMmr": "<string>",
"minBid": "<string>",
"buyNow": "<string>",
"retailPrice": "<string>",
"tmvUsedRetailTotalWithOptions": "<string>",
"kbbRetailBook": "<string>",
"bbTotalRetail": "<string>",
"wholesaleVdp": "<string>",
"retailVdp": "<string>",
"conditionReport": "<string>",
"updateRequested": "<string>",
"createdBy": 123,
"lastModifiedBy": 123,
"vdpEmails": [
123
],
"likes": "<string>",
"dislikes": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
},
"message": "<string>"
}
Usage with the Drivly SDK
Usage with the Drivly SDK
Make sure you install our SDK first. You can find out how, and more here.
Copy
import { SDK } from '@drivly/commerce'
import type { crmVehicles } from '@drivly/commerce'
const sdk = new SDK(...)
const crmVehicles = await sdk.crmVehicles.update(crmVehiclesId: string, data: crmVehicles): Promise<crmVehicles>
Authorizations
Path Parameters
id of the Crm Vehicle
Query Parameters
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
Body
application/json
Response
200
application/json
ok
The response is of type object
.
Copy
curl --request PATCH \
--url https://commerce.driv.ly/api/crmVehicles/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"vin": "<string>",
"search": [
123
],
"favorite": [
123
],
"exteriorColor": "<string>",
"status": "Needs Review",
"reason": [
"Wrong Color"
],
"notes": "<string>",
"salesPrice": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"bodyStyle": "<string>",
"mileage": 123,
"condition": 123,
"newOrUsed": "<string>",
"auction": "<string>",
"auctionDate": "<string>",
"laneAndRun": "<string>",
"pickupZip": "<string>",
"estimatedTransportFee": "<string>",
"adjMmr": "<string>",
"minBid": "<string>",
"buyNow": "<string>",
"retailPrice": "<string>",
"tmvUsedRetailTotalWithOptions": "<string>",
"kbbRetailBook": "<string>",
"bbTotalRetail": "<string>",
"wholesaleVdp": "<string>",
"retailVdp": "<string>",
"conditionReport": "<string>",
"updateRequested": "<string>",
"createdBy": 123,
"lastModifiedBy": 123,
"vdpEmails": [
123
],
"likes": "<string>",
"dislikes": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
}'
Copy
{
"doc": {
"vin": "<string>",
"search": [
123
],
"favorite": [
123
],
"exteriorColor": "<string>",
"status": "Needs Review",
"reason": [
"Wrong Color"
],
"notes": "<string>",
"salesPrice": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"bodyStyle": "<string>",
"mileage": 123,
"condition": 123,
"newOrUsed": "<string>",
"auction": "<string>",
"auctionDate": "<string>",
"laneAndRun": "<string>",
"pickupZip": "<string>",
"estimatedTransportFee": "<string>",
"adjMmr": "<string>",
"minBid": "<string>",
"buyNow": "<string>",
"retailPrice": "<string>",
"tmvUsedRetailTotalWithOptions": "<string>",
"kbbRetailBook": "<string>",
"bbTotalRetail": "<string>",
"wholesaleVdp": "<string>",
"retailVdp": "<string>",
"conditionReport": "<string>",
"updateRequested": "<string>",
"createdBy": 123,
"lastModifiedBy": 123,
"vdpEmails": [
123
],
"likes": "<string>",
"dislikes": "<string>",
"updatedAt": "<string>",
"createdAt": "<string>"
},
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.