# Invoice Ageing Two-Measure Correlation and Date-by-Category Pivot

> Invoice Ageing Two-Measure Correlation and Date-by-Category Pivot is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-30).

Computes a Pearson/rank correlation between outstanding_amount and age_days, plus a date-by-category pivot table, for up to 200 supplied invoice ageing rows — no external data fetched.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-finance-07-182?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoice-ageing-two-measure-correlation-and-date-by-category-pivot-cc478c6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yic7H6bVSHUD8UdpR1PSk

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 invoice-ageing-two-measure-correlation-and-date-by-category-pivot-cc478c6d -d '<json body>'
```

Example prompt: Can you run a two-measure correlation between outstanding_amount and age_days plus a date-by-category pivot on these invoice ageing records I'm sending — here are the rows for our instrument groups Alpha and Beta from the past month, up to 150 rows?

## When to prefer this

Choose this endpoint when you have invoice ageing data (outstanding amounts and age in days) already on hand and need both a correlation between the two measures and a date-by-category pivot in a single low-cost call. Ideal for finance analysts or agents doing month-end reviews, AR monitoring, or dashboard data prep without needing live ERP lookups or external enrichment. Prefer over general-purpose analytics tools when the data is already structured to the schema and you want a deterministic, reproducible statistical output at minimal cost.

## Known failure modes

- Fewer than 1 row or more than 200 rows supplied — validation error
- Missing required fields (row_id, instrument_group, date, outstanding_amount, age_days) — schema validation failure
- Invalid date format (not YYYY-MM-DD) — pattern validation error
- Numeric values outside allowed range (±1 trillion) — schema rejection
- Insufficient non-null pairs to compute correlation — may return null or NaN correlation
- Payment of 0.01 USDC not completed — 402 Payment Required response

## How this service works

Invoice ageing — Two-measure correlation + Date by category pivot: Two-measure correlation + Date by category pivot for supplied invoice ageing records (outstanding_amount, age_days). 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 independent analytical reports: (1) a two-measure correlation result quantifying the statistical relationship between outstanding_amount and age_days across the supplied rows, and (2) a date-by-category pivot table breaking down the selected field (outstanding_amount or age_days) by date and instrument_group. Both reports are computed locally with no external lookups.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invoice-ageing-two-measure-correlation-and-date-by-category-pivot-cc478c6d/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)
