The UK's Premier Vehicle Marketplace
DriveMart
Dealer REST API — v1

Push your stock.
No CSV. No manual uploads.

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.

API key auth (Bearer token)
Upsert by your own dealerRef
Bulk push up to 100 vehicles
Remove sold stock instantly
List & audit your live stock

Authentication

All API requests must include your API key as a Bearer token. Contact [email protected] or ask your account manager to issue a key.

http
Authorization: Bearer dm_your_api_key_here
Keep your key secret. It grants full write access to your stock. If compromised, contact us immediately to revoke it.

Base URL

text
https://drivemart.co.uk/api/dealer

Quick Start

Push a single vehicle in under a minute:

bash
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):

json
{
  "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.

API Reference

Error Codes

StatusMeaning
200Vehicle updated successfully
201Vehicle created successfully
207Bulk request — check per-vehicle results
400Validation error — check the error message
401Missing, invalid, or revoked API key
404Vehicle with that dealerRef not found
500Server error — contact support if persistent

Rate Limits

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.

Ready to integrate?

Get your API key by contacting the Drive Mart dealer team. We'll have you pushing stock within the hour.

Request an API Key