On this page
Changelog
Notable changes to the API, newest first. Categories are: Added, Changed, Deprecated, Removed, Fixed, Security. See Versioning & Deprecation for what counts as a breaking change.
Each change is emailed the morning after it is published to the staff who manage a business's API keys. To add anyone else, such as an agency developer, use Changelog Emails under Settings → Business → API Keys.
2026-12-01 · v2.0
- Added Customer vehicles carry owner_contact, the contact who owns the vehicle, and sale_vehicle, the sold vehicle it is when the dealer sold it and linked the two. Both are null when not set and absent on other vehicle types. POST /vehicles accepts owner_contact for a new customer vehicle, and PATCH /vehicles/{id} accepts it beside data, a contact id to set the owner or null to clear it; data can be left out when only the owner changes. Sent for any other vehicle type, or with a contact the business doesn't have, it returns 422 validation_failed. sale_vehicle is read-only. GET /vehicles accepts owner_contact to list the customer vehicles a contact owns.
- Fixed The vehicle owner field is described as what it is: the stock group key, or CUSTOMER-<contact id> for a vehicle a customer listed on the website. A customer vehicle's owner is owner_contact.
2026-11-27 · v2.0
- Changed Email replies on lead messages carry their delivery: delivered is the Unix timestamp the email was delivered, and -1 when it bounced or drew a spam complaint, as SMS and WhatsApp failures already are. It was 0 for every email reply.
2026-11-24 · v2.0
- Fixed data.stock.origin is documented as what it holds, the dashboard's Origin: Import, or UK Vehicle when the vehicle is not an import (IE Vehicle for a vehicle registered in Ireland). It was described as where the vehicle was sourced from, with the example Part Exchange. The field and the values it accepts are unchanged. A vehicle whose origin is Import is now published to AutoTrader as an imported vehicle, as the other marketplace feeds already did, and any other value as not imported.
2026-11-19 · v2.0
- Changed Leads from the website's forms and chat take their data.source from the first thing that brought the visitor and names a known source: a link MotorDesk gives out (Carwow for a Carwow listing, Silent Salesman for a sheet's QR code, Facebook for a Facebook post), an ad click (Google Ads), a campaign tag naming a sales channel or one of the dealer's own sources, or a site known by name (Google, ChatGPT). With none they stay Website, as before, and channel_key follows the source. This shows in lead reads and in the lead webhooks' payloads. The touch points themselves are not part of the API. Leads created through the API keep the source they are sent with.
- Changed Appraisals are declined automatically, unless the dealer turns this off: one with no changes for 90 days, or whose offer's expiry date is 90 days past, moves to rejected and fires appraisal.declined with no person involved, including appraisals that never had an offer. The dealer can choose 30, 60, 120 or 180 days instead. Nothing is sent to the customer, and the API does not say whether a decline was automatic. Appraisals that were not accepted are removed a year after they were added, as before, or after 3 or 6 months where the dealer chooses; accepted appraisals are kept.
- Changed GET /reports/silent-salesman counts the QR code on a digital windowboard (Rallye, Autotalker) as well as a printed sheet's QR code and short link. The headline gains windowboard_scans, and link_scans now counts only the sheet's short link, where it used to count every scan that was not a QR code. A scan counts once per browser session, vehicle and day; scans recorded before this change are kept as they were.
- Added GET /reports/website gains a Links part in Where They Came From: each tracked link visitors followed in the period (the dealer's own links, and those MotorDesk puts on sheets, posts, listings and messages), with link_name, visitors and visitor_share.
2026-11-15 · v2.0
- Added Vehicles carry five new fields, all readable and writable. data.vehicle.licence_category lists every motorcycle licence a bike can be ridden on: AM - Moped, A1 - 125cc and Learner Legal, A2, A2 Restricted (a restrictor is fitted) or A - Full Licence. Each item is matched without regard to case, and any other value returns 422 validation_failed with details.allowed_values. data.vehicle.seat_height is the seat height in millimetres. Both apply to bikes only. data.stock.cesar is the ID on a farm or plant machine's CESAR anti-theft plate and applies to those types only. data.history.habitation_checked_date (YYYY-MM-DD) and habitation_checked_by record the last habitation check and apply to caravans and motorhomes only. A field that applies to certain types returns 422 validation_failed when sent for any other type, and reads leave it out.
- Added data.history.cris_checked_date (YYYY-MM-DD) and cris_checked_by, the touring caravan register check, are documented and can be written for caravans. Sent for any other type they return 422 validation_failed.
- Changed Reads return data.history.cris_checked_date and cris_checked_by for caravans only, as the dashboard now shows CRiS only on caravans. They were returned, undocumented, for any vehicle that held them, so a motorhome with a CRiS check saved before this release no longer returns it. The values are kept.
- Changed For farm and plant machinery, data.stock.vin holds the maker's serial number or PIN, which the dashboard labels Serial Number / PIN. The field and its validation are unchanged.
- Fixed A bike's data.vehicle.engine_size is in litres, as for every other type (0.125 for a 125cc bike). Bikes used to keep the CC as it was typed or picked (125). The dashboard now saves litres, and bikes saved before are converted once after this release without a vehicle.updated webhook, so read them again to pick up the change. A bike looked up by registration now gets its engine size from AutoTrader's CC figure when no litres are given.
- Changed When a sale is paid and its part exchange has outstanding finance larger than the part exchange price, the part exchange purchase gains a minus payment for the difference with method Part Exchange and transaction Invoice #<sale number>. The customer paid that difference on the sale, so it is not money received from the seller. The purchase then waits for the full settlement payment to the finance company, as before.
- Changed The API is refused where the dashboard is. Every endpoint returns 403 account_unverified while the business has not been verified, and 403 account_card_required while it needs a payment method before it can carry on. An endpoint whose part of MotorDesk the plan, a coupon or a service leaves out returns 403 plan_section_blocked, with details.permission naming it: contacts, leads and calls, appointments, blogs, reviews, reports, deals, listings, invoices, orders, purchases, documents, and the vehicle reserve, appraisal, competitor, test drive, document and job endpoints. Vehicles, reference lists, the business, meta and webhooks are on every plan.
- Changed POST /vehicles keeps to the plan as the dashboard does. A customer or courtesy vehicle needs Workshop on the plan, or the call returns 403 workshop_not_in_plan, and a vehicle that would take the business past one of its plan's vehicle limits returns 409 vehicle_limit_reached, with details.limit naming the limit.
- Changed A new UK vehicle has its ULEZ and Clean Air Zones filled in where they are missing, as on the dashboard: POST /vehicles, and the stock vehicle an accepted appraisal adds. An empty data.spec.fuel.ulez or caz is taken from the other when that is set. With both empty, a car, crossover or van is worked out from its fuel and emission class, or failing that its first registration date, and both stay empty where that cannot tell: ulez becomes Compliant, Not Compliant or Exempt, and caz every current zone, Not Compliant or Exempt. Values sent are kept, except that caz Newcastle becomes Tyneside and zones that no longer charge are dropped (a list of only those becomes every current zone).
- Changed An accepted appraisal can no longer be changed. PATCH /vehicles/{id} and PATCH /vehicles/{id}/status return 409 vehicle_appraisal_invalid_status for one. Accepting the appraisal added the vehicle to stock, and that vehicle is the record from then on, so make changes there.
- Security POST and PATCH /leads remove any HTML tags from data.source, which is shown as a label in lead lists and report charts. A source that is not text is saved empty.
- Added Appointments can be all day. duration_type takes a new value, d: POST and PATCH /appointments and POST /leads/{id}/appointments accept it (time can then be left out) and keep the appointment at time 00:00 with duration 1, and reads return d for an all-day appointment, which covers the whole of its date. A client that only knows m and h should treat d as all day rather than as a midnight start. Appointments the dashboard repeats over several days (Repeat For) are separate appointments, one per date.
- Added Leads and contacts return anonymised (the Unix timestamp their personal details were anonymised under the business's data retention rules, or null) and retention_hold (the Unix timestamp the record was put on hold in the dashboard, pausing those rules for it, or null) in both views. Both are read only. An anonymised record stays in lists as a skeleton (name Anonymised, blank contact details) so counts and links keep working: pass anonymised=0 to GET /leads or GET /contacts to leave them out, and retention_hold=0 to leave out held records. Either filter also takes a Unix timestamp or a [from, to] range. lead.* and contact.* webhook payloads carry both fields, and anonymising a lead or contact sends lead.updated or contact.updated so a copy kept elsewhere can be cleared too.
- Added A new lead type, suggested (label Suggested Vehicles), marks leads started to send a customer vehicles that match what they are looking for. It appears in the lead types reference list and in the type field of leads.
- Changed POST /leads/{id}/messages with send reports a more specific reason in the details of a lead_send_failed error: closed when a WhatsApp, Messenger or Instagram reply sent through Meta falls outside the 24-hour window (MessageBird already reported this), and channel when the Meta connection's access token no longer works.
- Added Leads return stage (new, replied, booked, deal, won or lost, worked out from what has happened on the lead), rating_source (ai, or staff when a person has set the rating, which the AI then leaves alone) and close_reason (why a closed lead was closed, or null) in both views. stage and rating_source are read only; close_reason can also be sent when closing a lead (PATCH /leads/{id}/status). GET /leads filters on stage, by name or code.
- Added PATCH /leads/{id}/status accepts close_reason, as the dashboard asks when a lead is closed: bought_us, bought_elsewhere, no_response, price, not_ready or other. It is accepted only with a change that closes the lead (status closed, closed true, or reopen on its own); sent with any other change, or with an unknown value, it returns 422 validation_failed. Left out, a lead that is already closed keeps its reason.
- Added Credit note lines (credit_notes[].lines[] on invoices) return returned_to_stock: true when the credited units went back into product stock, as Returned to Stock does in the dashboard, and false otherwise. Read only.
- Added Invoices, orders and purchases carry assign, the staff user ids the document is assigned to. POST and PATCH accept it (every id must be a staff user of the business, see GET /reference/staff-users) and full reads return it. On the invoice that sells a vehicle these are the users the sale and its commission are credited to, and the sale takes them when the invoice records it.
- Changed POST /vehicles/{id}/sell/complete writes by to the sale invoice as its assigned users, so the sale and its invoice name the same staff. Without by, a sale that names nobody takes the sale invoice's assigned users.
- Added GET /reports/commission-statement carries the two-part commission scheme. Its rows and by-user table gain commission_sales (the Invoice Sub-Total share), commission_provider (the provider commissions), commission_payable_sale and commission_payable_invoice, and its lists split into vehicle sales and the products on aftersale and standalone invoices. commission_finance now means the finance deal parts (the amount per financed sale and the share of the amount financed); commission_product keeps its name on both lists. Existing fields keep their names.
- Added Leads carry the sales channel they are attributed to for advertising spend. POST and PATCH /leads accept an optional channel_key (a key from the new GET /reference/sales-channels: a portal such as autotrader or cargurus, website for the dealer's own site, or direct); left out, a new lead is attributed by how it arrived, which for an API lead is direct. Leads read back channel_key, null for a lead from before attribution.
- Added Reports. GET /reports lists the reports the business can run, with each report's id, name, group and the periods it accepts. GET /reports/{id} runs one report for a period and returns every widget's figures, the same figures the dashboard shows. Both need the new reports:read scope, which an existing key gains when its scopes are edited; running a report also needs vehicle-pricing:read and contacts:read, as reports carry costs, profit and customer names.
- Changed GET /reference/staff-users leaves out suspended staff, and each user's role list carries the reorganised permission keys (the names the dashboard's Users page uses). The old keys are still included where a key that replaced them is held, so existing checks keep working, and the endpoint now has a documented response schema (StaffUser).
- Deprecated The permission keys of the old tree in the role list of GET /reference/staff-users (website, business and the keys below them, such as website_setup, business_manage or business_location) are deprecated. They are returned alongside the new keys until 31st May 2027 and not after. Check the new keys instead: GET /reference/staff-users shows them for every user.
- Changed Tag defaulted for contacts (GET /reference/tags?resource=contacts and the available list on a contact's tags) follows the tag's own Add to New Contacts setting; a tag saved before that setting existed still follows Add to New Leads. Before, contacts reported the leads' setting.
- Changed Every field that takes a staff user id (appointment users, the lead sender and note authors, invoice, order and purchase assign, vehicle sell by, appraisals and test drives) returns 422 validation_failed for a suspended user, as it does for an unknown one. Reading a record that names a suspended user and sending the same ids back with PATCH therefore fails until the user is reactivated or the id is removed.
2026-10-08 · v2.0
- Added Vehicles carry AutoTrader Seller Highlights and Seller Comments: data.stock.seller_highlight_1, seller_highlight_2 and seller_highlight_3 (plain text on one line, 55 characters or fewer each) and data.stock.seller_comment (plain text, 500 characters or fewer, with line breaks allowed and each counted as one character). All four read back on GET /vehicles and are accepted on POST and PATCH /vehicles; an over-length value, a line break in a highlight or a value that is not text returns 422. They are published to the AutoTrader advert for businesses with AutoTrader connected. An empty value is not sent until that advert has had one from MotorDesk, so highlights or a retailer-level Seller Comments template maintained in the AutoTrader Portal are left untouched; once set from MotorDesk, clearing the field clears it on the advert.
- Fixed POST /calls normalises more provider outcomes into result. "IP Phone Offline" is now failed, "Not Answered" is no_answer and "Answered Not Accepted" is missed. Outcomes that only say the call ended ("Hang Up", "Hung Up", "Stopped", "Abandoned", "Disconnected", "Done") are completed when duration is above zero and missed otherwise; previously "Disconnected" was always completed and the rest were in_progress. Calls already recorded keep their stored result.
2026-09-26 · v2.0
- Added Leads return rating (the AI's buying-intent rating, 1-5, or null when not rated) and summary (a short description of where the conversation stands, or null) in both views, and ai in the full view: intent (one of the ids used by type, or other), rating_reason, next_action, junk, junk_confidence and processed. GET /leads accepts rating_min (1-5) to list only leads rated at or above it. The rating measures buying intent, not spam: junk is still reported through status. lead.updated fires each time the AI updates a lead, usually once per inbound customer message.
2026-09-03 · v2.0
- Added POST /invoices/{id}/finance-invoice generates the finance provider's draft invoice for a sale that was issued without one. The sale must be issued or paid, carry a finance provider and a finance amount, not be fully credited and not already have a finance provider invoice. The lender's draft is built from the sale's own data and returned, and the sale is marked part funded by the provider. Finance provider invoices are a MotorDesk-only document for the finance company and are not sent to accounting software. Issuing a draft with finance.generate set still creates it automatically.
- Added Appraisals reach the API through the trade-in. part_exchange[].appraisal_id on POST and PATCH /invoices and /orders links a part-exchange row to your appraisal of the customer's vehicle (it must be an appraisal for the same registration as the trade-in): when that vehicle is added to stock it inherits the appraisal's condition, preparation tasks and media, and the appraisal is marked Accepted at the row's value. GET /vehicles accepts appraisal_contact to list a contact's appraisals (pair with type=appraisal). Webhook events appraisal.offered, appraisal.accepted, appraisal.declined and appraisal.reopened carry the appraisal as a vehicle resource (a new appraisal fires the existing vehicle.created, with type "appraisal").
- Added Invoices, orders and purchases are versioned. Each returns version (1, 2 or 3), stamped at creation and never changed; those created from this release are version 3. Version 1 (created before per-line discounts) keeps its invoice-level discounts[] and adjustments[] on PATCH. From version 2, a discount lives on the line and discounts[] returns 422; version 3 has no adjustments[] either (422) - an admin fee or delivery charge is a line, and outstanding finance is a part_exchange settlement.
- Added Vehicle finance settlements on part exchanges. POST and PATCH /invoices and /orders accept part_exchange[].settlement as {amount, finance_company (the lender's contact id), reference, valid_until}; the trade-in value stays the full allowance and the settlement amount is added back to what the customer pays (totals.settlement, no tax). A settlement requires purchase = Yes and a part exchange with a positive value that reduces the sale total, because it is paid against the part-exchange purchase invoice: that purchase carries it on its acquisition line, receives the net allowance as its Part Exchange payment when the sale is paid, and stays issued until the settlement is paid to the lender (GET /purchases/{id} exposes settlement_outstanding). Outstanding finance is never a line field - lines[].settlement returns 422 pointing here.
- Added POST /purchases/{id}/payments accepts payee (a contact id) to record who a payment went to when not the supplier, and the payment method "Finance Settlement"; payments[] on GET carry payee. A payee naming the purchase's own supplier is normalised away (stored and returned as payee: null) - null already means the payment went to the supplier - unless that supplier is also a lender the purchase owes a settlement to, where the payee is kept because it is what marks the payment as the settlement.
- Added GET /purchases accepts settlement_outstanding=true to list only purchases whose expected finance settlement has not yet been fully recorded as paid to the lender. The paid side reads the payment projection (payments recorded with the "Finance Settlement" method, or to a named payee); each document's own settlement_outstanding field remains the authoritative figure.
- Added Per-line discounts on invoices, orders and purchases. POST and PATCH accept lines[].discount as {value, type}, where type is currency (the default) or percent of the line's pre-discount product total; the discount inherits the line's tax treatment and accounting code, and a percentage cannot exceed 100. Every line returns discount as {value, type, amount} (the resolved deduction) or null when the line carries none.
- Added Per-line vehicle attribution on purchases. POST and PATCH /purchases accept lines[].vehicle (an id, or an object with id or tag) to attribute an individual line's cost to that vehicle's additional costs - each attributed vehicle receives its own cost row. additional_cost_vehicle is the default for lines without their own vehicle, and purchases with no per-line attribution behave exactly as before. Purchase lines return vehicle (the attributed vehicle id, or null). Only valid on purchases (422 validation_failed elsewhere) and only for in-stock or customer vehicles that have not been deleted.
- Security The appraisal block returned for appraisal-type vehicles (GET /vehicles and the appraisal webhook payloads) is now a documented data.appraisal section, and no longer includes confirm.max_offer - the dealer's internal negotiation ceiling previously reached API output through the untyped pass-through. Appraisals stay read-only through the API: they are written through the dashboard workflow, or linked from a document via part_exchange[].appraisal_id.
2026-08-25 · v2.0
- Added POST /leads accepts an optional vehicle (stock id) or vehicle_tag, associating the vehicle of interest with the new lead in the same call - the equivalent of following up with POST /leads/{id}/vehicles. Create only; the association on an existing lead is still managed through the lead vehicles endpoint.
- Added POST /appointments accepts an optional vehicle (stock id) or vehicle_tag, linking the vehicle of interest to the new appointment - so a customer-booked test drive names its car and is queryable via the vehicle filter on GET /appointments. A lead is not required; when the appointment has one, the vehicle also joins that lead's vehicles of interest. Appointments now return vehicle (the associated vehicle id, or null) so the link reads back, and PATCH rejects the field rather than silently ignoring it - the association on an existing appointment is managed through POST /leads/{id}/vehicles.
- Changed POST /appointments and POST /leads/{id}/appointments now validate staff assignment: every id in user must belong to a staff user in the business (see GET /reference/staff-users); unknown ids return 422 instead of creating an appointment assigned to nobody. The OpenAPI booking example now shows a real booking type id (vehicle_test_drive), and the new AppointmentCreateInput schema declares date, time, purpose and user in required[].
- Fixed Appointments on the Primary Calendar now read back calendar: "Primary Calendar" (previously an empty string), matching GET /appointments/calendars, and the calendar filter on GET /appointments accepts "Primary Calendar". Other calendar names round-trip as before.
- Changed The status filter on GET /leads accepts the status names leads read back (new, new_message, read, replied, closed, junk) as well as the codes 0-5, and both are now documented on the parameter. The GET /vehicles status filter documentation now explains that sold (3) includes handed-over vehicles that read back as complete, and for-sale (2) includes reserved.
- Changed POST /vehicles now returns 422 for an empty body instead of creating a blank draft: provide a registration or identifier to create from lookup, or vehicle data and/or media to create directly.
- Fixed The GET /listings filters (make, model, fuel, transmission, body, colour, year, mileage, price ranges, and updated_since/updated_before for delta sync) are now documented in the OpenAPI specification - they were always available but previously undocumented.
- Added GET /business returns the authenticated business's own profile: name, legal name, company and VAT numbers, contact details, address, social handles, localisation (currency, currency symbol, timezone, distance units and date formats), the name it gives its sales tax, and its opening hours. Opening hours cover the standard set plus the booking, delivery and collection overrides, the weekdays that are by appointment only, and irregular dates such as bank holidays. It also reports consumer finance as finance.enabled (the business offers finance - its finance option is on and a provider is connected) and finance.fca_number (the FCA firm reference number it is authorised under). Requires the new business:read scope; the endpoint is read-only and returns profile information only - finance provider settings and credentials are never returned.
- Added GET /appointments/availability returns the bookable dates and times for each enabled booking type, from the same engine the dealer's own booking pages use - opening hours, appointment duration, per-hour and per-day limits, minimum notice, existing bookings and holiday closures are all applied. Pass ?booking=<type> for one type or ?date=YYYY-MM-DD for one date. Slot times are returned as HH:MM and can be sent straight back as the time on POST /appointments. Capacity is shared per calendar, so booking types on the same calendar compete for the same slots. Availability is advisory: creating an appointment does not require a free slot, matching the dashboard.
- Added GET /reference/booking-types now includes duration_minutes for each booking type, so the appointment length is available alongside the id, name and calendar. For the dates and times a type can actually be booked, use GET /appointments/availability.
2026-08-20 · v2.0
- Added Vehicle additional-cost purchases: POST and PATCH /purchases accept additional_cost_vehicle ({id} or {tag}) to link the whole purchase to a vehicle as an additional cost, matching the dashboard's "Create Purchase Invoice" flow - the document total feeds the vehicle's Purchase & Costs and its profit, and cancelling or deleting the draft removes it again. Set null to unlink or a different vehicle to re-target (both API-only, drafts only). The purchase resource returns additional_cost_vehicle (null when not linked). A vehicle holds at most 50 cost rows; an attach beyond that returns 422 vehicle_costs_full.
- Added Item-linked credit notes on invoices, orders and purchases. Document line items now expose a stable key (lines[].key, and options[].key combined as "<line key>-o-<option key>") and credit note lines return a source field attributing them to the line they reverse. POST /{type}/{id}/credit-notes accepts an optional source on each line: the credit is validated against that invoice line, capped at what remains creditable on it (409 credit_cap_exceeded when exceeded), and inherits the line's own tax treatment. All additions are backwards-compatible; free-form credit lines are unchanged and return source: null.
- Changed PATCH /invoices/{id}, /orders/{id} and /purchases/{id} no longer clear the document's lines (or sold vehicle) when the body omits them: a body carrying neither lines nor vehicle now leaves the existing line collection untouched, so a purchase's additional_cost_vehicle link can be changed - or removed with null - by a link-only body. Send lines: [] to clear the lines explicitly. Bodies that do carry lines and/or vehicle behave exactly as before: the collection is rebuilt from what is supplied.
- Changed PATCH /purchases/{id} against a purchase linked to a vehicle ACQUISITION (created from the dashboard's vehicle purchase flow) now returns 409 purchase_acquisition_linked instead of silently destroying the acquisition lines. Acquisition purchases remain manageable from the dashboard.
- Changed POST /appointments now requires purpose and user in addition to date and time. Creating an appointment without a purpose, or without at least one assigned staff user (user as a single id or a non-empty array of ids), returns 422 validation_failed, matching the dashboard appointment form. PATCH /appointments/{id} is unchanged - a partial update may still omit any field.
2026-08-04 · v2.0
- Removed The brand_reserve and brand_sold options on PATCH /vehicles/{id}/media/{key} have been removed; sending either now returns a 422 validation_failed. Reserved and sold overlays are not per-image state: they are derived from the vehicle's own reserved/sold status and applied automatically to its first photo. Both still appear in the media response so you can see which photo currently carries a badge. Use POST/DELETE /vehicles/{id}/reserve and the sell endpoints to change the underlying state.
2026-06-22 · v2.0
- Added Initial release of the MotorDesk API v2: vehicles and stock, contacts, leads, appointments, calls, invoices, orders, purchases, documents, deals, blog articles, reviews and webhooks. JSON over HTTPS with per-business scoped bearer tokens, a complete OpenAPI 3.1 specification, and an official PHP SDK. The API is in beta; breaking changes remain possible until the stable release on 1 January 2027.






