cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/serviceQuotes/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "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 ] }, "message": "<string>" }
Deletes an existing Service Quote
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { serviceQuotes } from '@drivly/commerce' const sdk = new SDK(...) const serviceQuotes = await sdk.serviceQuotes.delete(serviceQuotesId: string): Promise<void>
id of the Service Quote
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
ok
Show child attributes