Skip to content
MOTOVIZION Docs

Add New Dealer

The Motovizion AI API allows you to insert new dealers to automatically go live based on the subscription start date.

https://api.example.com/dealer/

HTTP Method

POST

Content-Type

application/json

The request body should be a JSON object with the following fields:

ParameterTypeRequiredDescription
dealer_uuidStringTrueThe unique ID of the new dealer
dealer_nameStringTrueCommon Name for dealer
dept_uuidStringTrueDepartment UUID
user_uuidStringTrueUser UUID for sending SMS messages
timezoneStringTrueLocal timezone of dealer
dealer_locationStringFalseCity, State
dealer_numberStringTruePhone number of dealer
dealer_addressStringTrueDealer physical address
franchiseStringFalseDealers OEM brand, Ok to pass multiple
dealer_logoStringTrueURL of dealer logo
start_dateStringTruemm/dd/YY
dealer_notesStringFalseAny extra notes
exclusion_listStringFalseOpcode exclusion list, comma separated
America/New_York
America/Chicago
America/Denver
America/Los_Angeles

Opcode Exclusion List (Comma Separated String)

Section titled “Opcode Exclusion List (Comma Separated String)”
opcode1, opcode2, opcode3
curl -X POST https://api.example.com/dealer/ \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY_HERE" \
-d '{
"dealer_uuid": "DEALER12345",
"dealer_name": "Premier Example Motors",
"dept_uuid": "SVCDEPT01",
"user_uuid": "USERXYZ789",
"timezone": "America/New_York",
"dealer_location": "New York, NY",
"dealer_number": "(212)555-1212",
"dealer_address": "1 Auto Drive, New York, NY 10001",
"franchise": "Toyota",
"dealer_logo": "https://example.com/logos/dealer12345.png",
"start_date": "05/02/2025",
"dealer_notes": "New dealer setup.",
"exclusion_list": "OILCHANGE,TIRE_ROTATION"
}'

Status Code: 201 Created

{
"status": "success",
"response": "Dealer added successfully",
"dealer_uuid": "DEALER12345"
}

Status Code: 400 Bad Request

{
"status": "error",
"response": "Invalid JSON format: Syntax error"
}

Status Code: 400 Bad Request

{
"status": "error",
"response": "Invalid JSON payload structure."
}

Status Code: 400 Bad Request

{
"status": "error",
"response": "Missing required fields: dealer_name, timezone"
}

Status Code: 401 Unauthorized

{
"status": "error",
"response": "Invalid API Key"
}

Status Code: 405 Method Not Allowed

{
"status": "error",
"response": "Invalid request method. Only POST is accepted."
}

Status Code: 500 Internal Server Error

{
"status": "error",
"response": "Server configuration error: API key not set."
}

Status Code: 500 Internal Server Error

{
"status": "error",
"response": "Failed to add dealer. Please contact support."
}