{"uid":"cap_wP8Jc-GGnLGxtw7jm5jFc","slug":"promotion-observations-numeric-row-ordering-keyed-dataset-comparison-3a8450dd","name":"Promotion Observations: Numeric Row Ordering + Keyed Dataset Comparison","description":"Promotion observations — Numeric row ordering + Keyed dataset comparison: Numeric row ordering + Keyed dataset comparison for supplied promotion observations records (discount_amount, units_sold). 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-05-123?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","discount_amount","units_sold"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"units_sold":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"store_group":{"type":"string","default":"","maxLength":80},"discount_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","units_sold":1,"store_group":"group-a","discount_amount":10},{"date":"2026-10-02","row_id":"row-2","units_sold":2,"store_group":"group-b","discount_amount":20},{"date":"2026-10-03","row_id":"row-3","units_sold":3,"store_group":"group-a","discount_amount":15},{"date":"2026-10-04","row_id":"row-4","units_sold":4,"store_group":"group-b","discount_amount":30}],"maxItems":200,"minItems":1},"field":{"enum":["discount_amount","units_sold"],"type":"string","default":"discount_amount"},"other":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","discount_amount","units_sold"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"units_sold":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"store_group":{"type":"string","default":"","maxLength":80},"discount_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","units_sold":1,"store_group":"group-a","discount_amount":10},{"date":"2026-10-02","row_id":"row-2","units_sold":2,"store_group":"group-b","discount_amount":21},{"date":"2026-10-03","row_id":"row-3","units_sold":3,"store_group":"group-a","discount_amount":17},{"date":"2026-10-04","row_id":"row-4","units_sold":4,"store_group":"group-b","discount_amount":33}],"maxItems":200,"minItems":0}}},"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_MWEgiJP6DA4gvs2PbBbTc","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 promotion observation rows numerically and compares two keyed promotion datasets across discount_amount and units_sold fields, returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have two sets of promotion records for my stores — a primary dataset and a comparison dataset, each with up to 50 rows including row_id, store_group, date, discount_amount, and units_sold — can you rank them numerically by discount_amount and also compare the two datasets side by side?","exampleUseCases":[{"title":"Ranking promotions by discount size","prompt":"Here are 80 promotion observation rows with store_group, date, discount_amount, and units_sold — can you rank all of them numerically by discount_amount so I can see which promotions offered the biggest discounts?"},{"title":"Before-and-after promotion dataset comparison","prompt":"I have two versions of my promotion data — one from before our campaign launched and one after — each with matching row_ids, store groups, dates, discount amounts, and units sold. Can you run a keyed comparison on them using units_sold as the field so I can see what changed?"},{"title":"Multi-store group promotion performance audit","prompt":"Compare these two promotion datasets for my store groups — group-a and group-b — across October 2026. Both have matching row_ids and I want to see numeric row rankings plus a side-by-side comparison on discount_amount."}],"resultDescription":"Two analytical reports: (1) a numerically ordered ranking of the supplied promotion observation rows by the selected field (discount_amount or units_sold), and (2) a keyed dataset comparison showing differences between the primary and secondary datasets matched by row_id. All computation is local with no external lookups or predictions.","failureModes":["Exceeding 200 rows in either dataset returns a validation error","Missing required fields (row_id, store_group, date, discount_amount, units_sold) in any row causes rejection","Invalid date format (non-YYYY-MM-DD) triggers a pattern validation error","Selecting a field value outside the enum ['discount_amount','units_sold'] returns an error","Mismatched row_ids between primary and secondary datasets may produce incomplete comparison results","Null numeric values may affect ranking or comparison output"],"whenToPreferThis":"Choose this endpoint when you need both numeric ranking and a keyed side-by-side comparison of two promotion datasets in a single call at low cost ($0.01 USDC for two reports). It is best suited for retail promotion analysis involving discount_amount and units_sold across store groups, especially when you have two dataset snapshots to compare by a shared row_id key and want local, deterministic analysis without external dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:19.933Z","isFirstParty":false,"canonicalSlug":"promotion-observations-numeric-row-ordering-keyed-dataset-comparison-3a8450dd"}