cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/serviceOrders/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "type": [ "Condition Inspection" ], "customer": [ 123 ], "serviceQuotes": 123, "paymentLink": "<string>", "vin": 123, "status": "Quoted", "error": "<string>", "orderId": "<string>", "price": "<string>", "rush": true, "attachments": [ 123 ], "quoteExpiration": "<string>", "ordered": "<string>", "start": "<string>", "due": "<string>", "consignor": 123, "billTo": 123, "origin": 123, "destination": 123, "deals": [ 123 ], "orderLink": "<string>", "tenant": [ 123 ] }, "message": "<string>" }
Deletes an existing Service Order
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { serviceOrders } from '@drivly/commerce' const sdk = new SDK(...) const serviceOrders = await sdk.serviceOrders.delete(serviceOrdersId: string): Promise<void>
id of the Service Order
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