﻿# DecisioQ AUTO-AUCT-044 End-to-End Example

This companion package executes `AUTO-AUCT-044`, Approve High-Risk Purchase.

## Supported request modes

The language clients share one HTTP/authentication implementation. The included `auto-auct-044-execute.json` file demonstrates **Prepared Criteria Mode**. The included `business-data-request.json` file provides the published illustrative payload for **Business Data Mode**. Choose one mode; never send both `businessData` and `options`.

## Flow

1. Request `jwtToken` from `https://identity.vinquery.com/connect/token`.
2. Load decision metadata from `https://dks.vinquery.com/decisioncatalog/decisions/AUTO-AUCT-044`.
3. Execute the decision request at `https://dde.vinquery.com/api/v1/decide`.

## Environment

Set these variables before running the examples:

```text
DECISIOQ_CLIENT_ID
DECISIOQ_CLIENT_SECRET
```

Optional:

```text
DECISIOQ_AUDIENCE=vinquery:api:decisioq
DECISIOQ_IDENTITY_URL=https://identity.vinquery.com/connect/token
DECISIOQ_DKS_URL=https://dks.vinquery.com
DECISIOQ_DDE_URL=https://dde.vinquery.com
```

The execution payload uses only canonical criterion IDs in `options[].values`.

## Generated artifact sources

- Mapping profile: `auto-auctions-approve-high-risk-purchase-auto-auct-044` version `1.0.0`
- Business Data: first valid case in the published certification suite
- Prepared Criteria: published expected canonical request
