{"uid":"cap_H4jUCQfS_GJ1gV4riMAxD","slug":"promotion-observations-category-frequencies-numeric-row-ordering-eea962e7","name":"Promotion Observations — Category Frequencies + Numeric Row Ordering","description":"Promotion observations — Category frequencies + Numeric row ordering: Category frequencies + Numeric row ordering 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-100?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"}}},"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_Oo3Zv4dMxQgMEe2_lBirG","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":"Analyzes promotion observation records (discount_amount, units_sold) to produce category frequency counts and numeric row ordering reports for up to 200 rows.","exampleAgentPrompt":"Can you analyze my promotion observations — I have 50 rows with store_group, date, discount_amount, and units_sold — and give me both a category frequency breakdown and a numeric ordering of the rows by discount_amount?","exampleUseCases":[{"title":"Promotion discount ranking for retail report","prompt":"I have a list of 80 promotion events with store_group, date, discount_amount, and units_sold. Can you rank all the rows by discount_amount and also show me how many times each store group appears in the data?"},{"title":"Store group frequency audit","prompt":"Here are 120 promotion observation records across several store groups. I need a frequency count of how many rows belong to each store group, and I also want the rows ordered numerically by units_sold."},{"title":"Seasonal promo analysis for category team","prompt":"We ran promotions last quarter and I have 200 rows of data with discount_amount and units_sold per store_group and date. Can you produce category frequencies for store_group and a numeric row ordering by units_sold so I can see the distribution and ranking?"}],"resultDescription":"Returns two independent analytical reports: (1) a category frequency table showing how often each store_group value appears across the supplied rows, and (2) a numeric row ordering that ranks all rows by the selected field (discount_amount or units_sold). Both reports are computed locally on the supplied data with no external lookups.","failureModes":["More than 200 rows submitted — request will be rejected or truncated","Missing required fields (row_id, store_group, date, discount_amount, units_sold) cause validation errors","Invalid date format (not YYYY-MM-DD) causes schema rejection","Numeric values outside allowed range (-1e12 to 1e12) fail validation","Empty rows array returns an error","Invalid field enum value (not discount_amount or units_sold) causes rejection"],"whenToPreferThis":"Choose this endpoint when you have retail promotion observation records and need both a categorical frequency breakdown (e.g. how often each store group appears) and a numeric ordering of rows by a key metric (discount_amount or units_sold) in a single low-cost call. It is ideal for batch analytical summaries of up to 200 promotion rows where no external data, predictions, or live lookups are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:51.406Z","isFirstParty":false,"canonicalSlug":"promotion-observations-category-frequencies-numeric-row-ordering-eea962e7"}