Skip to content
MOTOVIZION Docs

Dealer Status Details

The Motovizion AI API allows you to retrieve the dealer details along with their subscription status.

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

HTTP Method:

POST

Content-Type:

application/json

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

ParameterTypeRequiredDescription
dealer_uuidStringYesThe unique identifier for the dealer.
curl -X POST https://api.example.com/dealer/status/
-H "X-API-KEY: {API_KEY}"
-H "Content-Type: application/json"
-d '{"dealer_uuid": "{DEALER UUID}"}'

If your API key is missing or invalid, the server will respond with an error.

{
"status": "error",
"response": "Invalid API Key"
}
{
"status": "error",
"response": "Unauthorized"
}
import requests
import json
# API endpoint
url = 'https://api.example.com/dealer/status/'
# Data to send in the POST request
data = {
'dealer_uuid': ''
}
# Set the API key
api_key = ''
# Set the headers
headers = {
'Content-Type': 'application/json', # Specify JSON content type
'X-API-Key': api_key, # Pass the API key in the header
'Accept': 'application/json'
}
# Send the POST request
try:
response = requests.post(url, headers=headers, data=json.dumps(data))
# Check for HTTP errors
response.raise_for_status()
# Decode and display the API response
decoded_response = response.json()
print(json.dumps(decoded_response, indent=4))
except requests.exceptions.RequestException as e:
print(f"HTTP Request failed: {e}")

When you send a valid request to the Motovizion AI API, the response contains structured JSON data. Below is a detailed explanation of the fields included in the response.

{
"status": "success",
"response": true,
"dealer_uuid": "dFxdvajxqap4aFbpBkacHv4RJdp0Irg34QXjzBczecw",
"dealer_name": "Acme Auto",
"dealer_status": "active",
"dept_uuid": "CdFxdvajxqap4aFbpBkacHv4RJdp0Irg34QXjzBczecw",
"user_uuid": "sad68sdvajxqap4aFbpBkacHv4RJdp0Irg34QXjzBsad678",
"dealer_logo": "https://mysite.com/logo.jpg",
"start_date": "2025-05-14",
"exclusion_list": "TOYOTACARE, 10K, 15K, 20K, Recall"
}

Top-Level Fields:

Field NameTypeDescription
statusStringIndicates the success ("success") or failure ("error") of the request.
responseBooleantrue if the request has a dealer, false if no dealer found.
Field NameTypeDescription
dealer_uuidStringID of requested dealer
dealer_nameStringSimple Name
dept_uuidStringID of department
dealer_statusStringactive / inactive
user_uuidStringID of SMS user
dealer_logoStringURL to dealer logo
start_dateStringDate dealer switched to active
exclusion_listStringComma Separated String of Opcodes to exclude
HTTP Status CodeDescription
400Missing required fields (e.g., appointment_uuid).
401Invalid or missing API key.
404Appointment not found for the provided appointment_uuid.