Connect your DMS or inventory system directly to Drive Mart. Upsert vehicles, sync prices, and remove sold stock — all via a simple REST API authenticated with a bearer token.
All API requests must include your API key as a Bearer token. Contact [email protected] or ask your account manager to issue a key.
Authorization: Bearer dm_your_api_key_here
https://drivemart.co.uk/api/dealer
Push a single vehicle in under a minute:
curl -X POST https://drivemart.co.uk/api/dealer/stock \
-H "Authorization: Bearer dm_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"dealerRef": "STOCK-001",
"make": "Ford",
"model": "Focus",
"year": 2021,
"price": 12995,
"mileage": 28000,
"fuel": "Petrol",
"transmission": "Manual",
"colour": "Magnetic Grey",
"vrm": "AB21 XYZ",
"location": "Edinburgh",
"postcode": "EH1 1YZ",
"description": "One owner, full service history, drives superbly.",
"photos": [
"https://cdn.yourdms.com/images/STOCK-001-front.jpg",
"https://cdn.yourdms.com/images/STOCK-001-rear.jpg"
]
}'Response (201 Created):
{
"ok": true,
"created": true,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dealerRef": "STOCK-001"
}Call the same endpoint again with the same dealerRef to update the listing — price changes, new photos, updated mileage, etc.
| Status | Meaning |
|---|---|
| 200 | Vehicle updated successfully |
| 201 | Vehicle created successfully |
| 207 | Bulk request — check per-vehicle results |
| 400 | Validation error — check the error message |
| 401 | Missing, invalid, or revoked API key |
| 404 | Vehicle with that dealerRef not found |
| 500 | Server error — contact support if persistent |
The API is rate-limited to 500 requests per minute per API key. Bulk requests count as one request regardless of vehicle count. If you need higher limits, contact your account manager.
Get your API key by contacting the Drive Mart dealer team. We'll have you pushing stock within the hour.
Request an API Key