{"uid":"cap_w9oLOiYyoADv2NxDemNSB","slug":"returns-handling-analytics-duplicate-key-report-secondary-measure-1292b7ee","name":"Returns Handling Analytics — Duplicate Key Report + Secondary-Measure Weighted Mean","description":"Returns handling — Duplicate key report + Secondary-measure weighted mean: Duplicate key report + Secondary-measure weighted mean for supplied returns handling records (returned_units, processing_minutes). 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-04-067?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","returned_units","processing_minutes"],"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},"returned_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"processing_minutes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","store_group":"group-a","returned_units":10,"processing_minutes":1},{"date":"2026-10-02","row_id":"row-2","store_group":"group-b","returned_units":20,"processing_minutes":2},{"date":"2026-10-03","row_id":"row-3","store_group":"group-a","returned_units":15,"processing_minutes":3},{"date":"2026-10-04","row_id":"row-4","store_group":"group-b","returned_units":30,"processing_minutes":4}],"maxItems":200,"minItems":1},"field":{"enum":["returned_units","processing_minutes"],"type":"string","default":"returned_units"}}},"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_-3HULGsdOORyVhKeP-MgB","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":"Generates two analytical reports on returns handling data: a duplicate key report and a secondary-measure weighted mean, for up to 200 rows of returned_units and processing_minutes data.","exampleAgentPrompt":"Check my returns data for duplicate row IDs and compute the weighted mean of processing_minutes — I have 4 rows: row-1 on 2026-10-01 group-a with 10 returned_units and 1 processing_minute, row-2 on 2026-10-02 group-b with 20 returned_units and 2 minutes, row-3 on 2026-10-03 group-a with 15 returned_units and 3 minutes, and row-4 on 2026-10-04 group-b with 30 returned_units and 4 minutes.","exampleUseCases":[{"title":"Retail chain returns data quality check","prompt":"I've got a spreadsheet of 150 store returns records with row IDs, store groups, dates, returned_units, and processing_minutes — can you run a duplicate key report on it and compute the weighted mean of returned_units?"},{"title":"Processing time analysis for returns team","prompt":"We have daily returns logs from our fulfillment center, up to 200 rows, with processing_minutes and returned_units per entry — please detect any duplicate row IDs and give me the weighted mean of processing_minutes weighted by returned_units."},{"title":"Automated returns reporting pipeline","prompt":"Every night I want to check our returns handling batch for duplicate row keys and get a weighted average of processing_minutes across all store groups — here are tonight's 80 rows with store_group, date, returned_units, and processing_minutes fields."}],"resultDescription":"Two analytical reports: (1) a duplicate key report identifying any rows that share the same row_id, and (2) a weighted mean of the selected secondary measure (returned_units or processing_minutes) computed from the supplied records. Results are based entirely on the submitted data with no external lookups.","failureModes":["Exceeds 200 row limit — request rejected or truncated","Missing required fields (row_id, date, store_group, returned_units, processing_minutes) — validation error","Invalid date format (not YYYY-MM-DD) — schema validation failure","Numeric values outside allowed range — validation error","Empty rows array — minimum 1 item required"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost (0.01 USDC) dual-report on returns handling tabular data — specifically for duplicate row detection and weighted mean computation — without requiring external data sources, predictions, or professional assessments. Ideal for data quality checks in retail returns pipelines processing up to 200 rows at a time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:50:53.042Z","isFirstParty":false,"canonicalSlug":"returns-handling-analytics-duplicate-key-report-secondary-measure-1292b7ee"}