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
- GETFind paginated Service Quotes
- POSTCreate a new Service Quote
- DELDelete multiple Service Quotes
- PATCHUpdate multiple Service Quotes
- GETGet a single Service Quote by its id
- DELDeletes an existing Service Quote
- PATCHUpdates a Service Quote
- GETService Quote versions
- GETGet a single Service Quote version by its id
- POSTRestore a Service Quote version by its id
- GET
- Service Orders
- Taxes And Fees
- Templates
- CRM Trades
- Trades
- VDP Emails
- CRM Vehicles
- Vehicles
- Web Events
- Webhooks
Service Quotes
Updates a Service Quote
Updates a Service Quote
PATCH
/
serviceQuotes
/
{id}
Copy
curl --request PATCH \
--url https://commerce.driv.ly/api/serviceQuotes/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": [
"Vehicle Service Contract"
],
"status": "Quoted",
"serviceProvider": [
123
],
"quoteId": "<string>",
"partner": 123,
"serviceOrders": "<string>",
"checkoutLink": "<string>",
"deal": 123,
"vehicle": 123,
"rush": true,
"etaMin": "<string>",
"etaMax": "<string>",
"distance": 123,
"expires": "<string>",
"cost": "<string>",
"price": "<string>",
"margin": "<string>",
"partnerProfitShare": "<string>",
"partnerMargin": "<string>",
"tenant": 123,
"transportServiceOrders": "<string>",
"transportServiceOrders2": [
123
],
"updatedAt": "<string>",
"createdAt": "<string>"
}'
Copy
{
"doc": {
"name": "<string>",
"type": [
"Vehicle Service Contract"
],
"status": "Quoted",
"serviceProvider": [
123
],
"quoteId": "<string>",
"partner": 123,
"serviceOrders": "<string>",
"checkoutLink": "<string>",
"deal": 123,
"vehicle": 123,
"rush": true,
"etaMin": "<string>",
"etaMax": "<string>",
"distance": 123,
"expires": "<string>",
"cost": "<string>",
"price": "<string>",
"margin": "<string>",
"partnerProfitShare": "<string>",
"partnerMargin": "<string>",
"tenant": 123,
"transportServiceOrders": "<string>",
"transportServiceOrders2": [
123
],
"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 { serviceQuotes } from '@drivly/commerce'
const sdk = new SDK(...)
const serviceQuotes = await sdk.serviceQuotes.update(serviceQuotesId: string, data: serviceQuotes): Promise<serviceQuotes>
Authorizations
Path Parameters
id of the Service Quote
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/serviceQuotes/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": [
"Vehicle Service Contract"
],
"status": "Quoted",
"serviceProvider": [
123
],
"quoteId": "<string>",
"partner": 123,
"serviceOrders": "<string>",
"checkoutLink": "<string>",
"deal": 123,
"vehicle": 123,
"rush": true,
"etaMin": "<string>",
"etaMax": "<string>",
"distance": 123,
"expires": "<string>",
"cost": "<string>",
"price": "<string>",
"margin": "<string>",
"partnerProfitShare": "<string>",
"partnerMargin": "<string>",
"tenant": 123,
"transportServiceOrders": "<string>",
"transportServiceOrders2": [
123
],
"updatedAt": "<string>",
"createdAt": "<string>"
}'
Copy
{
"doc": {
"name": "<string>",
"type": [
"Vehicle Service Contract"
],
"status": "Quoted",
"serviceProvider": [
123
],
"quoteId": "<string>",
"partner": 123,
"serviceOrders": "<string>",
"checkoutLink": "<string>",
"deal": 123,
"vehicle": 123,
"rush": true,
"etaMin": "<string>",
"etaMax": "<string>",
"distance": 123,
"expires": "<string>",
"cost": "<string>",
"price": "<string>",
"margin": "<string>",
"partnerProfitShare": "<string>",
"partnerMargin": "<string>",
"tenant": 123,
"transportServiceOrders": "<string>",
"transportServiceOrders2": [
123
],
"updatedAt": "<string>",
"createdAt": "<string>"
},
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.