cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/listings/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "vehicles": 123, "mileage": 123, "seller": "<string>", "wholesaleValue": "<string>", "wholesaleBuyNowPrice": "<string>", "wholesaleMinimumBid": "<string>", "wholesaleCurrentBid": "<string>", "wholesaleDetailPage": "<string>", "condition": 123, "wholesaleConditionReport": "<string>", "retailValue": "<string>", "retailAskingPrice": "<string>", "retailBuyNowPrice": "<string>", "vehicleHistoryReport": "<string>", "vehicleHistoryScore": "<string>", "cleanTitle": true, "owners": 123, "accidents": 123, "attachments": "<string>", "pickupLocation": 123, "tenant": 123 }, "message": "<string>" }
Deletes an existing Listing
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { listings } from '@drivly/commerce' const sdk = new SDK(...) const listings = await sdk.listings.delete(listingsId: string): Promise<void>
id of the Listing
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