# Expense Processing — Duplicate Key Report + Two-Measure Correlation

> Expense Processing — Duplicate Key Report + Two-Measure Correlation is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Generates a duplicate key report and a two-measure Pearson/rank correlation analysis for expense records containing submitted_amount and approved_amount fields, using local analytical engines on up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-operations-07-066?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/expense-processing-duplicate-key-report-two-measure-correlation-38d54ebb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MF0nck3PowhMpQJN60IkP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability expense-processing-duplicate-key-report-two-measure-correlation-38d54ebb -d '<json body>'
```

Example prompt: Can you run a duplicate key check and a correlation analysis between submitted_amount and approved_amount on my expense records? I have up to 50 rows with row_id, team_group, date, submitted_amount, and approved_amount — I want to see if any row IDs repeat and how strongly the two amounts are related.

## When to prefer this

Choose this endpoint when you need both a duplicate key audit and a two-measure correlation for expense data (submitted vs approved amounts) in a single $0.01 call covering up to 200 rows. Prefer this over general-purpose analytics tools when you need a lightweight, pre-packaged local analytical report without any external API dependencies, live lookups, or prediction models. Best suited for batch expense auditing, finance data quality checks, and detecting approval pattern anomalies.

## Known failure modes

- Empty rows array — rejected if fewer than 1 row provided
- Exceeding 200 rows — input array truncated or rejected beyond maxItems limit
- Invalid date format — rows with dates not matching YYYY-MM-DD pattern may be flagged or rejected
- Missing required fields (row_id, submitted_amount, approved_amount) — validation error returned
- Null numeric values in both measure columns — correlation may be undefined or return NaN
- Non-unique row_id values treated as duplicates — expected behavior, not an error

## How this service works

Expense processing — Duplicate key report + Two-measure correlation: Duplicate key report + Two-measure correlation for supplied expense processing records (submitted_amount, approved_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two analytical reports: (1) a duplicate key report identifying any repeated row_id values across the submitted expense rows, and (2) a two-measure correlation report quantifying the statistical relationship between submitted_amount and approved_amount across up to 200 rows. No external lookups or predictions are performed; all analysis is local.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "team_group",
     "date",
     "submitted_amount",
     "approved_amount"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "team_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "approved_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "submitted_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "team_group": "group-a",
     "approved_amount": 1,
     "submitted_amount": 10
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "team_group": "group-b",
     "approved_amount": 2,
     "submitted_amount": 20
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "team_group": "group-a",
     "approved_amount": 3,
     "submitted_amount": 15
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "team_group": "group-b",
     "approved_amount": 4,
     "submitted_amount": 30
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/expense-processing-duplicate-key-report-two-measure-correlation-38d54ebb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
