API Documentation

DecisioQ Used Car Dealership Developer Integration Manual

How software developers should incorporate DecisioQ into used vehicle retail systems

This manual explains how to embed DecisioQ decision intelligence into used car dealership platforms, including DMS, CRM, vehicle acquisition, appraisal, inventory management, reconditioning, pricing, online merchandising, desking, F&I, service, and management reporting systems.

Contents

1. Purpose and Scope

2. Where DecisioQ Fits in a Used Dealership Architecture

3. Recommended Integration Pattern

4. Used Car Dealership Decision Templates

5. Data Model Mapping

6. API Workflow

7. Implementation Examples

8. Workflow-Specific Guidance

9. User Interface Design

10. Security, Privacy, and Compliance

11. Performance and Reliability

12. Testing Strategy

13. Deployment Checklist

14. Recommended Rollout Plan

15. Appendix: Example Template Catalog

1. Purpose and Scope

Used car dealerships make high-value decisions every day across vehicle acquisition, trade appraisal, auction sourcing, reconditioning, pricing, merchandising, lead handling, finance approval, inventory aging, and customer retention. These decisions often depend on multiple competing factors such as market demand, days in stock, recon cost, gross potential, lender fit, customer urgency, and sales manager policy. DecisioQ should be incorporated as a decision orchestration layer that evaluates weighted criteria and returns ranked, auditable recommendations to the host dealership system.

This guide is written for developers. It shows where DecisioQ belongs in a used car dealership architecture, how to map dealership data into decision templates, how to call the API, how to display results, and how to preserve audit history without turning DecisioQ into the system of record for legal contracts or accounting transactions.

2. Where DecisioQ Fits in a Used Dealership Architecture

DecisioQ should sit beside existing dealership applications as a decision service. The DMS, CRM, appraisal tool, inventory platform, pricing engine, desking tool, and F&I system continue to own operational records and transactions. DecisioQ receives context and criteria, evaluates alternatives, and returns a recommendation, ranking, score, rationale, and audit ID.

Vehicle / Lead / Deal / Reconditioning Event
        |
DMS / CRM / Appraisal / Inventory / Desking / F&I System
        |
Data Mapping and Criteria Builder
        |
DecisioQ API
        |
Ranked recommendation + scores + rationale + audit ID
        |
Dealership workflow screen, manager queue, or automated batch process
System Typical Data Sent to DecisioQ Decision Output Returned
DMS Customer reference, deal number, stock number, vehicle status, accounting state, sales history, repair order state. Approval path, escalation decision, audit ID, exception rationale.
CRM Lead source, vehicle of interest, engagement level, response SLA, appointment history, salesperson availability. Lead routing, follow-up priority, next-best action, appointment assignment.
Appraisal Tool VIN, mileage, condition grade, book values, market comps, recon estimate, accident/history flags, payoff. Retail/wholesale/auction recommendation, acquisition bid ceiling, appraisal confidence.
Inventory Platform VIN, cost basis, days in stock, market rank, price history, photos, online views, leads, stocking segment. Price action, merchandising priority, aged-inventory disposition.
Recon System Inspection findings, parts availability, labor estimate, technician capacity, promised-ready date. Recon priority, approve/hold/decline work, vendor path.
Desking and F&I Payment target, credit tier, lender callbacks, trade equity, gross objective, product eligibility. Deal structure ranking, lender path, manager review decision.

3. Recommended Integration Pattern

  1. Define one DecisioQ template per repeatable dealership decision, such as acquisition bid, appraisal path, reconditioning approval, price action, lead routing, lender path, or aged inventory disposition.
  2. Build a mapping layer that converts DMS, CRM, appraisal, inventory, and finance fields into DecisioQ criteria. Keep this mapping layer separate from UI code.
  3. Use synchronous calls for interactive decisions at appraisal, sales desk, finance, and lead assignment screens. Use asynchronous batch jobs for nightly inventory reviews, pricing recommendations, and marketing prioritization.
  4. Display the top recommendation, ranked alternatives, score, reason codes, and confidence level inside the host workflow where the user already works.
  5. Persist the DecisioQ audit ID with the stock number, lead ID, appraisal ID, deal number, repair order, or campaign ID so outcomes can be reviewed later.

4. Used Car Dealership Decision Templates

Decision Template Alternatives Example Criteria
Vehicle Acquisition Bid Bid, pass, counter, request manager review. Market demand, projected retail gross, recon estimate, transport cost, auction fees, days supply, title/history risk, floorplan cost.
Trade Appraisal Path Retail, wholesale, auction, recon then retail, send to partner, decline. Condition, mileage, history report, payoff, book value, local demand, recon cost, lot fit, aging risk.
Reconditioning Approval Approve full recon, approve safety-only, send to vendor, delay, wholesale. Projected gross, required safety items, parts availability, labor hours, time-to-frontline, customer demand, warranty exposure.
Inventory Price Action Hold, reduce price, increase price, add incentive, feature in campaign, manager review. Days in stock, market rank, leads, VDP views, margin floor, seasonality, competitor price, aging bracket.
Lead Routing Salesperson, BDC, internet manager, finance specialist, vehicle specialist. Lead source, response SLA, vehicle expertise, prior relationship, workload, language preference, appointment urgency.
Deal Structure Cash, retail finance, lease alternative, lender A/B/C, co-signer path, down-payment path. Credit tier, payment target, vehicle age/mileage, lender rules, approval probability, gross objective, customer preference.
F&I Product Recommendation Service contract, GAP, tire/wheel, appearance, theft, maintenance, none. Vehicle age, mileage, term, usage, customer profile, lender limits, product eligibility, expected value.
Aged Inventory Disposition Reprice, wholesale, auction, dealer trade, internal demo, marketing push. Days in stock, market demand, holding cost, recon sunk cost, gross opportunity, sales activity, segment mix.

5. Data Model Mapping

The integration should translate dealership records into neutral decision inputs. Send only the data required to evaluate the decision. For customer-facing or finance-related workflows, use internal references instead of raw personal data unless the criterion truly requires it. DecisioQ should store decision context and auditability, not duplicate full customer, finance, or legal contract records.

Entity Recommended Fields Implementation Notes
Vehicle Inventory Stock number, VIN, year, make, model, trim, mileage, cost, price, days in stock, market rank, photos published, lead count. Use stock number as the correlation key and refresh dynamic fields before evaluations.
Appraisal / Trade VIN, mileage, condition grade, damage flags, book values, payoff, estimated recon, auction value, demand score. Separate subjective notes from scored criteria; store appraisal scorecards for repeatability.
Reconditioning RO Inspection items, parts required, estimated labor, technician/vendor availability, ready date, cost cap. Use DecisioQ before approving discretionary recon spend or changing wholesale/retail path.
Lead / Customer Lead source, buying stage, vehicle preference, appointment urgency, contact preference, prior relationship. Tokenize customer identity where possible; keep communications consent in CRM.
Deal Gross target, payment target, trade equity, down payment, lender callbacks, approval status, F&I eligibility. Keep final contract and compliance state in desking/F&I systems.
Marketing Activity Views, saves, leads, email clicks, campaign source, price changes, days since photo update. Useful for price action and merchandising priority templates.

6. API Workflow

The host application submits a template code, correlation ID, alternatives, criteria, and optional context. DecisioQ returns ranked results with a score, rationale, and audit identifier. The example below evaluates whether a vehicle should be retailed, wholesaled, auctioned, or reconditioned further.

POST /api/decision/evaluate
Authorization: Bearer {access_token}
Content-Type: application/json

{
  "templateCode": "USED_CAR_APPRAISAL_PATH",
  "alternatives": [
    { "id": "retail", "name": "Retail after reconditioning" },
    { "id": "wholesale", "name": "Wholesale immediately" },
    { "id": "auction", "name": "Send to auction" },
    { "id": "decline", "name": "Decline acquisition" }
  ],
  "criteria": [
    { "name": "Projected gross", "weight": 30, "values": { "retail": 88, "wholesale": 55, "auction": 50, "decline": 10 } },
    { "name": "Reconditioning risk", "weight": 25, "values": { "retail": 58, "wholesale": 83, "auction": 75, "decline": 100 } },
    { "name": "Local demand", "weight": 25, "values": { "retail": 92, "wholesale": 50, "auction": 45, "decline": 5 } },
    { "name": "Time-to-sell risk", "weight": 20, "values": { "retail": 70, "wholesale": 90, "auction": 82, "decline": 100 } }
  ],
  "context": {
    "correlationId": "optional",
    "attributes": {}
  }
}
{
  "auditId": "dq-audit-20260625-001142",
  "recommendedAlternativeId": "retail",
  "results": [
    { "alternativeId": "retail", "rank": 1, "score": 77.10, "rationale": "Best balance of projected gross and local demand despite moderate reconditioning risk." },
    { "alternativeId": "wholesale", "rank": 2, "score": 68.70, "rationale": "Lower risk and faster turn, but weaker gross opportunity." },
    { "alternativeId": "auction", "rank": 3, "score": 62.05, "rationale": "Reasonable exit path if recon capacity is constrained." },
    { "alternativeId": "decline", "rank": 4, "score": 48.00, "rationale": "Lowest business value for this vehicle profile." }
  ]
}

7. Implementation Examples

7.1 C# Service Wrapper

public sealed class DecisioQDecisionClient
{
    private readonly HttpClient _httpClient;

    public DecisioQDecisionClient(HttpClient httpClient)
    {
        _httpClient = httpClient;
    }

    public async Task<DecisionResult> EvaluateAsync(DecisionRequest request, CancellationToken ct)
    {
        using var response = await _httpClient.PostAsJsonAsync("/api/decision/evaluate", request, ct);
        response.EnsureSuccessStatusCode();
        return await response.Content.ReadFromJsonAsync<DecisionResult>(cancellationToken: ct)
               ?? throw new InvalidOperationException("DecisioQ returned an empty response.");
    }
}

7.2 TypeScript Call

export async function evaluateUsedCarDecision(request, accessToken) {
  const response = await fetch('/api/decision/evaluate', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${accessToken}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(request)
  });

  if (!response.ok) throw new Error(`DecisioQ evaluation failed: ${response.status}`);
  return await response.json();
}

8. Workflow-Specific Guidance

8.1 Acquisition and Auction Buying

Use DecisioQ before submitting auction bids, accepting purchase opportunities, or sourcing vehicles from wholesalers. Criteria should include projected retail value, recon risk, transport cost, auction fee, vehicle history risk, local demand, segment gaps, and floorplan exposure. Return a maximum bid, pass recommendation, or manager-review flag.

8.2 Trade Appraisal

Use DecisioQ while appraisers are still with the customer. The screen should show retail path, wholesale path, auction path, and decline path rankings. Managers should see the drivers behind the recommendation, especially recon cost, payoff risk, book-to-market spread, and expected turn time.

8.3 Reconditioning and Frontline Readiness

Use DecisioQ to decide how much recon spend is justified and which vehicles should be prioritized. A vehicle with high demand and high gross potential may justify rapid parts sourcing and technician priority. A low-demand vehicle with high recon risk may be routed to wholesale or auction.

8.4 Pricing and Inventory Aging

Run DecisioQ nightly for price action recommendations and on demand when a sales manager reviews aged inventory. Include market rank, VDP views, lead count, days in stock, price history, margin floor, holding cost, and aging bracket. Store the recommended action with the stock record.

8.5 Lead Handling and Test Drive Scheduling

Route leads based on vehicle expertise, response availability, prior relationship, customer urgency, and workload balance. For test-drive scheduling, include vehicle availability, salesperson availability, customer preference, and readiness status.

8.6 Sales Desk, Finance, and F&I

Use DecisioQ to rank deal structures and lender paths, but leave final legal and lender compliance rules in the authoritative F&I or desking system. The recommendation should support managers by showing approval probability, payment fit, gross impact, and customer preference alignment.

8.7 Wholesale and Aged Inventory Exit

Use DecisioQ to choose between additional price action, auction, wholesale, dealer trade, or marketing push. The model should consider holding cost, market demand decay, gross protection, reconditioning sunk cost, and sales activity trend.

9. User Interface Design

  • Show the recommended option, total score, top reason codes, and ranked alternatives directly inside appraisal, inventory, sales desk, and CRM screens.
  • Use clear action labels such as Retail, Wholesale, Reprice, Approve Recon, Manager Review, or Pass rather than abstract decision IDs.
  • Provide an override button for authorized managers and require a structured override reason.
  • Display warning badges for weak confidence, missing criteria, stale market data, high recon uncertainty, or compliance boundary conditions.
  • Save the DecisioQ audit ID silently in the source record so users are not forced to manage audit data manually.

10. Security, Privacy, and Compliance

Control Developer Requirement
Authentication Use OAuth2 or JWT bearer tokens. Rotate secrets and never expose API keys in browser code.
Authorization Map roles such as salesperson, BDC, appraiser, used car manager, desk manager, F&I manager, service advisor, and general manager to allowed templates.
Data minimization Send only criteria required for the decision. Use internal IDs instead of raw personal information whenever possible.
Audit logging Persist DecisioQ audit IDs with stock numbers, lead IDs, appraisal IDs, deal numbers, repair orders, and campaign IDs.
Override governance Record user, timestamp, original recommendation, selected override, and override reason.
Compliance boundary Keep final lending, contract, tax, privacy, warranty, and disclosure requirements in the authoritative dealership systems.

11. Performance and Reliability

Interactive dealership workflows should have short timeouts and predictable fallback rules. Batch workflows can use queues, retries, and dashboards because inventory and pricing decisions may involve hundreds or thousands of vehicles.

Scenario Recommended Pattern
Appraisal screen Synchronous API call with fallback to manual manager review.
Lead routing Synchronous API call from CRM with fallback to existing round-robin or territory rule.
Nightly pricing review Asynchronous batch job with retry, pagination, and manager approval queue.
Recon prioritization Batch refresh every few hours; synchronous refresh when inspection data changes.
Finance path ranking Synchronous call from desking/F&I screen with strict error handling.
Analytics ETL DecisioQ audit results into a reporting warehouse nightly.

12. Testing Strategy

  1. Create fixture data for common used car scenarios: clean trade, high-mileage trade, accident-history unit, high-demand SUV, aged sedan, negative-equity trade, wholesale-only vehicle, and recon-heavy vehicle.
  2. Unit test the mapping layer so every source-system field maps to the intended criterion and scale.
  3. Integration test API failures, slow responses, invalid templates, missing criteria, stale market data, and duplicate correlation IDs.
  4. Run manager acceptance tests using historical appraisal, recon, pricing, and deal examples.
  5. Regression test every template change to ensure score movement is explainable and does not break expected dealership policy.

13. Deployment Checklist

  • Templates approved by used car manager, general sales manager, finance leadership, and service/recon leadership.
  • Authentication configured for development, staging, and production.
  • Criteria mapping documented and version-controlled.
  • Fallback behavior defined for every user-facing workflow.
  • Audit ID persisted in the source system.
  • Override permissions, reason codes, and reporting enabled.
  • Monitoring dashboards configured for API errors, latency, volume, decision distribution, and override rates.

14. Recommended Rollout Plan

Phase Scope Success Metric
Phase 1 Trade appraisal path and acquisition bid decisions. Improved appraisal consistency and fewer poor-fit acquisitions.
Phase 2 Reconditioning approval and frontline readiness priority. Reduced time-to-frontline and better recon spend control.
Phase 3 Inventory price action and aged inventory disposition. Improved turn rate and clearer manager review queues.
Phase 4 Lead routing, test-drive scheduling, and sales desk decision support. Faster response time and stronger close-rate consistency.
Phase 5 F&I path ranking, analytics, and continuous template tuning. Measured improvement against gross, turn, close rate, recon cost, and customer satisfaction.

15. Appendix: Example Template Catalog

Template Code Use Case Primary Users
USED_CAR_ACQUISITION_BID Determine bid, pass, counter, or manager-review path for auction and sourcing opportunities. Buyer, used car manager.
USED_CAR_TRADE_APPRAISAL_PATH Rank retail, wholesale, auction, recon, or decline paths for trade vehicles. Appraiser, used car manager.
USED_CAR_RECON_APPROVAL Approve recon spend level and prioritize frontline readiness. Recon manager, service manager.
USED_CAR_PRICE_ACTION Recommend hold, reduce, increase, campaign, or manager-review action. Inventory manager, sales desk.
USED_CAR_AGED_DISPOSITION Recommend reprice, wholesale, auction, dealer trade, or marketing push for aging units. Used car manager, general sales manager.
USED_CAR_LEAD_ROUTING Route used vehicle leads to the best salesperson, BDC agent, or specialist. CRM, BDC, sales managers.
USED_CAR_DEAL_STRUCTURE Rank finance paths and sales desk structures for used vehicle deals. Desk manager, F&I manager.
USED_CAR_FI_PRODUCT_RECOMMENDATION Rank F&I products based on vehicle, term, lender, and customer fit. F&I manager.