cURL
curl --request DELETE \ --url https://commerce.driv.ly/api/addresses/{id} \ --header 'Authorization: <api-key>'
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "street": "<string>", "suite": "<string>", "city": "<string>", "state": "<string>", "zip": "<string>", "country": "<string>", "deals": [ 123 ], "tenants": 123, "customer": [ 123 ], "contact": [ 123 ] }, "message": "<string>" }
Deletes an existing Address
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { addresses } from '@drivly/commerce' const sdk = new SDK(...) const addresses = await sdk.addresses.delete(addressesId: string): Promise<void>
id of the Address
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