# Expense Processing — Numeric Row Ordering + Trailing Mean Series

> Expense Processing — Numeric Row Ordering + Trailing Mean Series 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-02).

Ranks expense rows numerically and computes a trailing mean series for submitted_amount or approved_amount fields across up to 200 expense records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-operations-07-115?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/expense-processing-numeric-row-ordering-trailing-mean-series-a128bb18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__q8nL4hianknT7hbrmEvm

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-numeric-row-ordering-trailing-mean-series-a128bb18 -d '<json body>'
```

Example prompt: Take my expense records for Q4 — rows with team_group, date, submitted_amount, and approved_amount — and give me two reports: one that orders the rows numerically by submitted_amount, and one that computes a trailing mean series with a window of 3.

## When to prefer this

Choose this endpoint when you need both a numeric sort/ranking of expense rows AND a rolling window mean series in a single low-cost call ($0.01 USDC for both reports). Ideal for offline/batch expense analytics on already-collected data where no live data enrichment, prediction, or external lookup is needed. Best suited for datasets up to 200 rows with clear submitted_amount and approved_amount fields.

## Known failure modes

- Fewer than 1 row supplied — returns validation error
- More than 200 rows supplied — rejected, maxItems exceeded
- Window size larger than number of rows — trailing mean may be undefined for early rows
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Missing required fields (row_id, submitted_amount, approved_amount) — row rejected
- Null numeric values may affect mean computation for affected rows

## How this service works

Expense processing — Numeric row ordering + Trailing mean series: Numeric row ordering + Trailing mean series 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 for the supplied expense rows: (1) a numeric row ordering report that ranks each row by the selected amount field, and (2) a trailing mean series that computes a rolling window average of the selected field (submitted_amount or approved_amount) across the ordered rows. All computation is performed locally on the supplied data with no external lookups.

## 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
  },
  "field": {
   "enum": [
    "submitted_amount",
    "approved_amount"
   ],
   "type": "string",
   "default": "submitted_amount"
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/expense-processing-numeric-row-ordering-trailing-mean-series-a128bb18/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)
