cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/vehicles/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "vin": "<string>", "customer": 123, "status": [ "Bought at Auction" ], "deals": [ 123 ], "year": "<string>", "make": "<string>", "model": "<string>", "trim": "<string>", "style": "<string>", "body": "<string>", "drivetrain": "<string>", "engine": "<string>", "transmission": "<string>", "interior": "<string>", "exterior": "<string>", "listings": [ 123 ], "serviceQuotes": [ 123 ], "tenant": 123, "trades": [ 123 ], "createdBy": 123, "transportServiceOrders": "<string>", "transportServiceOrders2": [ 123 ] }, "message": "<string>" }
Deletes an existing Vehicle
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { vehicles } from '@drivly/commerce' const sdk = new SDK(...) const vehicles = await sdk.vehicles.delete(vehiclesId: string): Promise<void>
id of the Vehicle
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