DecisioQ System Architecture Decision Concepts Decision List API Guide Client Kit Developer Center Decision Studio Quick Start Playground End-to-End Examples

AUTO-UCD-006 End-to-End Example

Prioritize Acquisition Candidate

Try the interactive showcase

Used Car DealershipBusiness Data + Prepared CriteriaAHP priorities

Decision Overview

Rank acquisition candidates using inventory fit, market demand, margin, reconditioning cost, compliance risk, and customer value.

Use the same currency and margin assumptions across vehicles. Fit, demand, compliance risk, and customer value are 0–100 scores; margin and reconditioning cost are currency amounts. Complete title, inspection, and policy checks separately. A ranking is not purchase approval.

Catalog decision: AUTO-UCD-006. Sector: Used Car Dealership. Samples are fictional, not operational advice or production observations.

5-Minute Quick Path

  1. Review the three candidates in the interactive showcase.
  2. Start with the first working Business Data request, or send Prepared Criteria when values are already calculated.
  3. Inspect the ranking and rerun with changed inputs or AHP priorities.

Criteria and Scales

Use raw values in the published units. The engine normalizes them. AHP changes importance, not the direction or scale of an input.

IDMeaningUnitValidationDirectionBalanced weight
prioritize_acquisition_candidate_vehicle_fit_scorePrioritize Acquisition Candidate Fit ScoreScorescore_0_to_100maximize20%
prioritize_acquisition_candidate_market_demand_scoreMarket Demand ScoreScorescore_0_to_100maximize17%
prioritize_acquisition_candidate_gross_margin_potentialGross Margin PotentialCurrencynon_negative_currencymaximize17%
prioritize_acquisition_candidate_reconditioning_or_process_costReconditioning / Process CostCurrencynon_negative_currencyminimize16%
prioritize_acquisition_candidate_compliance_risk_scoreCompliance Risk ScoreScorescore_0_to_100minimize15%
prioritize_acquisition_candidate_customer_value_scoreCustomer Value ScoreScorescore_0_to_100maximize15%

Data Preparation Guide

Business records → input schema → mapping profile → canonical criteria → ranking.

Use mapping profile used-car-dealership-prioritize-acquisition-candida-auto-ucd-006 version 1.0.0. These records contain business assessments as well as measurements; this profile renames and reshapes them, but does not infer scores from free text. Govern rating and scoring rubrics before production use.

The showcase collects Prepared Criteria directly. Its sample values match both downloadable request modes below.

Mapping profile · Input schema

Business sourceCanonical criterionTransformation
option.schedule.prioritizeAcquisitionCandidateFitScoreprioritize_acquisition_candidate_vehicle_fit_scoreDirect value; no unit conversion
option.assessment.marketDemandScoreprioritize_acquisition_candidate_market_demand_scoreDirect value; no unit conversion
option.financial.grossMarginPotentialprioritize_acquisition_candidate_gross_margin_potentialDirect value; no unit conversion
option.financial.reconditioningProcessCostprioritize_acquisition_candidate_reconditioning_or_process_costDirect value; no unit conversion
option.risk.complianceRiskScoreprioritize_acquisition_candidate_compliance_risk_scoreDirect value; no unit conversion
option.assessment.customerValueScoreprioritize_acquisition_candidate_customer_value_scoreDirect value; no unit conversion

Business Data Mode

Complete illustrative request with three candidates and an explicit decisionVersion. Send it to the decision execute endpoint; do not add an options array to this envelope.

Response identifiers: the current published profile uses root-relative identity paths, so translation returns generated IDs option-1, option-2, and option-3 in input order, with fallback option names. Map these back to the source records by that order. Prepared Criteria retains the explicit source IDs and names. Preserving source identity in Business Data requires a reviewed profile update; this example does not modify the deployed profile.
{
  "decisionId": "AUTO-UCD-006",
  "decisionVersion": "1.0.0",
  "businessData": {
    "requestContext": {
      "sourceSystem": "automotive-profile-factory",
      "correlationId": "factory-auto-ucd-006"
    },
    "salesOpportunities": [
      {
        "optionId": "ACQ-A",
        "name": "Urban hatchback",
        "schedule": {
          "prioritizeAcquisitionCandidateFitScore": 88
        },
        "assessment": {
          "marketDemandScore": 92,
          "customerValueScore": 86
        },
        "financial": {
          "grossMarginPotential": 3400,
          "reconditioningProcessCost": 650
        },
        "risk": {
          "complianceRiskScore": 12
        }
      },
      {
        "optionId": "ACQ-B",
        "name": "Regional SUV",
        "schedule": {
          "prioritizeAcquisitionCandidateFitScore": 94
        },
        "assessment": {
          "marketDemandScore": 88,
          "customerValueScore": 93
        },
        "financial": {
          "grossMarginPotential": 5200,
          "reconditioningProcessCost": 1900
        },
        "risk": {
          "complianceRiskScore": 24
        }
      },
      {
        "optionId": "ACQ-C",
        "name": "Work pickup",
        "schedule": {
          "prioritizeAcquisitionCandidateFitScore": 78
        },
        "assessment": {
          "marketDemandScore": 84,
          "customerValueScore": 80
        },
        "financial": {
          "grossMarginPotential": 6100,
          "reconditioningProcessCost": 2400
        },
        "risk": {
          "complianceRiskScore": 19
        }
      }
    ]
  }
}

Download Business Data request

Prepared Criteria Mode

The same candidates after direct mapping. This request uses the balanced profile with no named scenario. Do not add businessData to this envelope.

{
  "decisionId": "AUTO-UCD-006",
  "decisionName": "Prioritize Acquisition Candidate",
  "profileId": "balanced",
  "scenarioId": null,
  "options": [
    {
      "optionId": "ACQ-A",
      "name": "Urban hatchback",
      "values": {
        "prioritize_acquisition_candidate_vehicle_fit_score": 88,
        "prioritize_acquisition_candidate_market_demand_score": 92,
        "prioritize_acquisition_candidate_gross_margin_potential": 3400,
        "prioritize_acquisition_candidate_reconditioning_or_process_cost": 650,
        "prioritize_acquisition_candidate_compliance_risk_score": 12,
        "prioritize_acquisition_candidate_customer_value_score": 86
      }
    },
    {
      "optionId": "ACQ-B",
      "name": "Regional SUV",
      "values": {
        "prioritize_acquisition_candidate_vehicle_fit_score": 94,
        "prioritize_acquisition_candidate_market_demand_score": 88,
        "prioritize_acquisition_candidate_gross_margin_potential": 5200,
        "prioritize_acquisition_candidate_reconditioning_or_process_cost": 1900,
        "prioritize_acquisition_candidate_compliance_risk_score": 24,
        "prioritize_acquisition_candidate_customer_value_score": 93
      }
    },
    {
      "optionId": "ACQ-C",
      "name": "Work pickup",
      "values": {
        "prioritize_acquisition_candidate_vehicle_fit_score": 78,
        "prioritize_acquisition_candidate_market_demand_score": 84,
        "prioritize_acquisition_candidate_gross_margin_potential": 6100,
        "prioritize_acquisition_candidate_reconditioning_or_process_cost": 2400,
        "prioritize_acquisition_candidate_compliance_risk_score": 19,
        "prioritize_acquisition_candidate_customer_value_score": 80
      }
    }
  ]
}

Download Prepared Criteria request

Understanding the Result

Verified local computation, not a hosted API response. The repository TOPSIS engine ranked these exact samples in-process. TOPSIS scores are relative closeness coefficients, not probabilities or confidence percentages.

RankCandidateScore
1Urban hatchback0.606381
2Regional SUV0.575670
3Work pickup0.339063

Winner: ACQ-A. Download computation and AHP verification.

Check candidate eligibility and input evidence before acting. Adding or removing candidates can change normalization and the ranking. The showcase displays the actual service response, which may differ when the deployed catalog or configuration differs.

AHP Weights and Sensitivity

Open the paired showcase, choose “Help me generate weights (AHP)”, complete every comparison, and generate consistent weights before running. Option scores describe performance; weights express importance. Read the explanation.

Change one judgment or one measured input at a time, regenerate weights if needed, and compare the winner and score gap. A single unchanged winner is not a formal stability guarantee.

Profiles and Scenarios

The baseline uses balanced and scenarioId: null. Retrieve the deployed decision definition before selecting another profile or named scenario; never assume that “standard” exists. AHP does not override eligibility or safety requirements.

Run the Request

Use either JSON download with your existing authenticated API client. Endpoint and authentication details are in the API Guide. This browser-origin example calls the portal proxy, whose service connection must be configured:

const request = await fetch('/examples/auto-ucd-006/business-data-request.json').then(r => r.json());
const response = await fetch('/decisioq-decision-api-proxy.ashx?operation=execute', {
  method: 'POST', headers: {'Content-Type': 'application/json'},
  body: JSON.stringify(request)
});
const result = await response.json();
if (!response.ok) throw new Error(JSON.stringify(result));
console.log(result);

For validation errors, check canonical IDs, required values, units, and current catalog ranges. A transport error is not a decision rejection.

Try the showcase · All examples · Playground