cURL
curl --request POST \ --url https://commerce.driv.ly/api/crmTrades \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "vin": "<string>", "lead": 123, "year": "<string>", "make": "<string>", "model": "<string>", "trim": "<string>", "photos": "<string>" } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "vin": "<string>", "lead": 123, "year": "<string>", "make": "<string>", "model": "<string>", "trim": "<string>", "photos": "<string>" }, "message": "<string>" }
Create a new Crm Trade
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { crmTrades } from '@drivly/commerce' const sdk = new SDK(...) const crmTrades = await sdk.crmTrades.create(data: crmTrades): Promise<crmTrades>
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