# DecisioQ AUTO-TOW-047 End-to-End Example

This companion package executes `AUTO-TOW-047`, Prioritize Invoice Review.

## Flow

1. Request `jwtToken` from `https://identity.vinquery.com/connect/token`.
2. Load decision metadata from `https://dks.vinquery.com/decisioncatalog/decisions/AUTO-TOW-047`.
3. Execute the catalog-shaped request at `https://dde.vinquery.com/api/v1/execute-catalog`.

## Environment

Set these variables before running the examples:

```text
DECISIOQ_CLIENT_ID
DECISIOQ_CLIENT_SECRET
DECISIOQ_AUDIENCE=vinquery:api:decisioq
```

Optional:

```text
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`. The sample includes one excluded candidate: `option-3` has `aging_days` of `4`, which violates the catalog hard constraint `aging_days <= 3`.
