{"uid":"cap_g-VQXZZSBDnHS3rt4lxwJ","slug":"damaged-stock-numeric-row-ordering-and-trailing-mean-series-7307a7f2","name":"Damaged Stock Numeric Row Ordering and Trailing Mean Series","description":"Damaged stock — Numeric row ordering + Trailing mean series: Numeric row ordering + Trailing mean series for supplied damaged stock records (handled_units, damaged_units). 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-retail-18-115?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","handled_units","damaged_units"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"store_group":{"type":"string","default":"","maxLength":80},"damaged_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"handled_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","store_group":"group-a","damaged_units":1,"handled_units":10},{"date":"2026-10-02","row_id":"row-2","store_group":"group-b","damaged_units":2,"handled_units":20},{"date":"2026-10-03","row_id":"row-3","store_group":"group-a","damaged_units":3,"handled_units":15},{"date":"2026-10-04","row_id":"row-4","store_group":"group-b","damaged_units":4,"handled_units":30}],"maxItems":200,"minItems":1},"field":{"enum":["handled_units","damaged_units"],"type":"string","default":"handled_units"},"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_MkEwUSjVwpiQn8X-XyQRX","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 numeric row ordering and trailing mean series for supplied damaged stock records (handled_units, damaged_units) over up to 200 rows.","exampleAgentPrompt":"Can you run the numeric row ordering and trailing mean series reports on my damaged stock data? I have 4 rows with handled_units and damaged_units by store group, and I want to analyze the damaged_units field with a window of 3.","exampleUseCases":[{"title":"Warehouse damage trend analysis","prompt":"I have daily damaged stock records for two store groups over the past week — can you compute the numeric row ordering and a trailing mean series for the damaged_units field using a window of 3? Here are the rows: row-1 2026-10-01 group-a 10 handled 1 damaged, row-2 2026-10-02 group-b 20 handled 2 damaged, row-3 2026-10-03 group-a 15 handled 3 damaged, row-4 2026-10-04 group-b 30 handled 4 damaged."},{"title":"Handled units rolling average for loss reporting","prompt":"For our monthly loss report I need numeric row ordering and a trailing mean series for handled_units across these 5 store records, using a window size of 2. Can you run both reports at once?"},{"title":"Multi-store damage rate smoothing","prompt":"We track damaged and handled units across several store groups daily. Can you generate the row ordering and a rolling mean with window 4 for the damaged_units field for these 6 rows of records so I can spot trends?"}],"resultDescription":"Returns two analytical reports for the supplied rows: (1) a numeric row ordering of the records, and (2) a trailing mean series for the selected field (handled_units or damaged_units) computed over the specified window size. Both reports are derived locally from the submitted data with no external lookups.","failureModes":["Fewer than 1 row submitted — minimum row count not met","More than 200 rows submitted — exceeds maximum row limit","Missing required fields (row_id, date, handled_units, damaged_units) in one or more rows","Invalid date format not matching YYYY-MM-DD pattern","Window size less than 2 or greater than 200","Payment not provided or insufficient — x402 payment required","Null numeric values causing computation gaps in trailing mean"],"whenToPreferThis":"Choose this endpoint when you need both numeric row ordering and a trailing mean series computed together on damaged stock records (up to 200 rows) in a single low-cost call. It is best suited for offline or batch analytical reporting on retail inventory damage data where no live prediction, external lookup, or professional assessment is needed. Prefer this over general-purpose analytics tools when working specifically with handled_units and damaged_units retail fields and needing two bundled reports for a flat $0.01 USDC fee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:39.154Z","isFirstParty":false,"canonicalSlug":"damaged-stock-numeric-row-ordering-and-trailing-mean-series-7307a7f2"}