{"uid":"cap_yic7H6bVSHUD8UdpR1PSk","slug":"invoice-ageing-two-measure-correlation-and-date-by-category-pivot-cc478c6d","name":"Invoice Ageing Two-Measure Correlation and Date-by-Category Pivot","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-ib26-finance-07-182?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"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_uhlSGBt6uoWT0ixv6yOxR","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":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Accounts receivable ageing analysis","prompt":"I have 120 invoice records with outstanding amounts and how many days each has been outstanding — can you correlate those two measures and also pivot the data by date and instrument group so I can see which categories are ageing the most?"},{"title":"Month-end invoice review by product line","prompt":"We're doing our month-end close and I need to understand if longer-aged invoices tend to have higher balances. Run the two-measure correlation and a date-by-category pivot on these 80 invoice rows grouped by instrument group."},{"title":"Finance team dashboard data prep","prompt":"For our finance dashboard I need a correlation between age_days and outstanding_amount, plus a date-by-instrument-group pivot table — here are 200 rows of raw invoice ageing data to analyse."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T06:53:32.353Z","isFirstParty":false,"canonicalSlug":"invoice-ageing-two-measure-correlation-and-date-by-category-pivot-cc478c6d"}