{"uid":"cap__q8nL4hianknT7hbrmEvm","slug":"expense-processing-numeric-row-ordering-trailing-mean-series-a128bb18","name":"Expense Processing — Numeric Row Ordering + Trailing Mean Series","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-ib26-operations-07-115?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HTqvN4h-E9BZ282LcZ7j1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks expense rows numerically and computes a trailing mean series for submitted_amount or approved_amount fields across up to 200 expense records.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Finance team expense approval trend","prompt":"I have 120 expense rows from our finance team with submitted and approved amounts by date and group — can you rank them numerically by approved_amount and also run a trailing mean with a window of 5 so I can see the smoothed approval trend?"},{"title":"Monthly expense anomaly review","prompt":"Here are 80 expense submissions from October across four team groups. Sort them by submitted_amount and compute a 4-period rolling average of submitted_amount so I can spot where spending spiked."},{"title":"Cross-team budget utilization analysis","prompt":"I want to compare expense approval patterns across teams — take these 150 rows with submitted and approved amounts, order them numerically by approved_amount, and show me a trailing mean series using a window of 10."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:35:11.393Z","isFirstParty":false,"canonicalSlug":"expense-processing-numeric-row-ordering-trailing-mean-series-a128bb18"}