For dealer management systems and website platforms
Stock feed specification
How to send your dealers' stock to Autoza. It is built so you can reuse the feed you already produce for other portals. There is no new schema to implement.
The short version
- Send the stock file you already produce for other portals — XML, CSV, TSV or JSON — unchanged.
- Choose the delivery that suits you: we collect it from a URL, you drop it on our SFTP server, or you push it to our endpoint.
- At least once a day. More often is welcome.
- We only take stock for dealers who have asked us to, and you are welcome to confirm with them first.
- We download each photo once and serve it from our own storage. We never hotlink your images.
- Each buyer enquiry on a car you sent us comes back to you, signed, at an address you choose (section 7).
- There is no charge to you or to the dealer.
1. Delivery — pick one
A. We collect it from a URL. Give us an HTTPS address for the feed — one per dealer, or one file covering every dealer who has switched Autoza on. If it needs a login, HTTP Basic authentication or an extra header both work. We collect on whatever schedule you are comfortable with.
B. You upload it by SFTP. We set up a key-based account for you on sftp.autoza.co.uk. Drop a file whenever stock changes, and we pick it up within 15 minutes. Files ending in .tmp or .part are ignored, so upload-then-rename is safe.
C. You push it to us over HTTPS. Send your existing feed, unchanged, with a key we issue to you:
POST https://autoza.co.uk/api/feeds/push
Authorization: Bearer <your key>
X-Autoza-Provider: <your provider name>
X-Autoza-Dealer-Ref: <your ID for the dealer>
Content-Type: application/xml (or text/csv, application/json)
<the stock file you already produce>To send several dealers in one call, use a JSON envelope instead:
{ "mode": "full",
"dealers": [
{ "dealer": { "ref": "D1001", "name": "Example Motors", "email": "sales@example.co.uk", "postcode": "AB1 2CD" },
"vehicles": [ { ... }, { ... } ] }
] }Keys are issued per partner and can be revoked individually. A request without a valid key is refused. We never email a key: we send you a one-time link to a private page that shows it once, so it never sits in an inbox or a chat.
2. Format
XML, CSV, TSV, JSON or JSON Lines, in UTF-8. One file per dealer, or one file for all dealers with a dealer ID on each vehicle.
Your field names do not need to match ours. We recognise the common names automatically — Mileage, mileage_miles and odometerReading all land in the same place. If you use something unusual, we map it once on our side and every dealer on your system is covered from then on.
3. Fields
Required, for each vehicle
- Your stock or vehicle ID (stable over time)
- Make and model
- Price, in pounds, as advertised to the public
- Registration, or the date of first registration
- Mileage
- At least one photo URL
Strongly recommended
- Derivative or variant
- Fuel type, transmission, body style, colour
- Engine size (cc), doors, seats
- Description, and features or equipment
- VAT qualifying (yes or no)
- Vehicle type — car, van, motorcycle or motorhome
For each dealer
- Your ID for the dealer, and their trading name
- Email, phone, address and postcode
- Website
4. Photos
Full-size image URLs, in display order — the first is the main photo.
We copy each photo once to our own storage and serve it from there. Our requests identify themselves as AutozaBot with a contact address, so you can see them and throttle them if you need to. A photo we already hold is not downloaded again, and we never link to your servers from our pages. If you would rather photos reached us another way, tell us and we will build to it.
5. Full stock or changes only
Tell us whether each file is the dealer's complete current stock, or only what has changed.
If it is the complete stock, a vehicle that is missing from it can come off Autoza. If it is changes only, nothing is ever removed. Until you confirm that files are complete, we treat every file as additions and updates only. On the push endpoint this is the mode field: full or partial, and partial is the default.
6. Dealer consent
We only list stock for dealers who have asked us to. You are welcome to confirm with each dealer before switching them on, or to let dealers turn Autoza on themselves in your system.
7. Enquiries back to you
A dealer who never sees the enquiries we get for their cars will switch us off, and they would be right to. So we send each one back. When a buyer sends their first message about a car that came from you, we send that enquiry to an HTTPS address you give us, as signed JSON. A buyer's later messages in the same conversation are not sent again. If you would rather receive it as ADF/XML by email, at a CRM address you give us for a dealer, we can do that instead.
To switch it on, send us the HTTPS address. One address per provider; each enquiry carries your ID for the dealer, so you can route it. We build to how you already receive enquiries, so if you need a different shape, tell us.
What we send — one request per enquiry:
POST <your https address>
Content-Type: application/json
User-Agent: Autoza-Leads/1.0 (+https://autoza.co.uk)
X-Autoza-Event: lead.created
X-Autoza-Lead-Id: <leadId, as in the body>
X-Autoza-Timestamp: <unix seconds>
X-Autoza-Signature: v1,<base64 signature>
{
"leadId": "<unique id for this enquiry>",
"event": "lead.created",
"createdAt": "<ISO 8601, UTC>",
"dealerRef": "<your ID for the dealer, as you sent it>",
"vehicle": {
"listingId": "<our ID for the advert>",
"externalId": "<your stock ID for the car>",
"registration": "AB12CDE",
"make": "Ford",
"model": "Fiesta",
"year": 2019,
"price": 8995,
"url": "https://autoza.co.uk/listing/<listingId>"
},
"buyer": {
"name": "<name>",
"email": "<email>",
"phone": "<phone>",
"message": "<what the buyer wrote>"
},
"source": "autoza.co.uk"
}Any of dealerRef, the vehicle fields and the buyer fields can be null when we do not have them. price is in pounds. The buyer's contact details are in there so the dealer can reply: please deliver them only to that dealer.
Check it came from us. We sign every request with your key — the same one you push with. The signature is an HMAC-SHA256 over the timestamp, a full stop, and the exact body as received. The key is the base64-decoded part of your key after whsec_ (the same construction as Svix and Resend, except that the signed text is just timestamp.body). Check it against the raw body, not a re-serialised copy, and refuse a timestamp more than five minutes from your clock. Each attempt is signed afresh, so a retry always has a current timestamp.
// Node
const crypto = require('crypto');
function verify(secret, headers, rawBody) {
const ts = headers['x-autoza-timestamp'];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
const expected = crypto.createHmac('sha256', key).update(ts + '.' + rawBody).digest('base64');
return headers['x-autoza-signature'] === 'v1,' + expected; // use a constant-time compare in production
}
# Python
import base64, hashlib, hmac, time
def verify(secret, headers, raw_body): # raw_body: bytes
ts = headers['X-Autoza-Timestamp']
if abs(time.time() - int(ts)) > 300: return False
key = base64.b64decode(secret.removeprefix('whsec_'))
expected = base64.b64encode(hmac.new(key, ts.encode() + b'.' + raw_body, hashlib.sha256).digest()).decode()
return hmac.compare_digest(headers['X-Autoza-Signature'], 'v1,' + expected)Your reply. Answer with any 2xx within 10 seconds and we count the enquiry as delivered. A 5xx, a timeout, a 408 or a 429 is retried. Any other 4xx we treat as final: we stop, keep the record and look into it ourselves. Retries come about 5 minutes, 15 minutes, 1 hour, 3 hours, 6 hours, 12 hours and 24 hours after the previous attempt: eight attempts in all. They run on a 15-minute sweep, so each can be up to 15 minutes later than that.
Duplicates. Delivery is at least once, so the same enquiry can arrive twice (for instance if your reply was slow). leadId is the same on every attempt: use it to ignore one you have already filed. We do not promise enquiries arrive in order.
8. Getting started
Send us a sample file, or a URL, for one test dealer. We check it within a working day and tell you anything we could not map. The dealer then sees their profile and approves it before anything goes live.
Questions, or anything that does not fit the above: info@autoza.co.uk. We would rather adapt to how you already work than ask you to build something new.