{"uid":"cap_sLU-Bt_GkpNn730n4ljv6","slug":"buy-x-get-y-free-merchandise-total-before-and-after-comparison-02d880f0","name":"Buy-X-Get-Y-Free Merchandise Total: Before and After Comparison","description":"Buy-X-get-Y-free merchandise total - Before and after comparison: Before and after comparison for Buy-X-get-Y-free merchandise total. Supplied retail figures only, up to 200 records. No platform access, live rates or order execution. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded before and after comparison report.","url":"https://market.datapackvibe.com/x402/assistant-ar-retail-multibuy-price-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","default":{"unit_price":27.500000000000004,"basket_units":11,"free_units_per_group":1,"paid_units_per_group":2},"required":["basket_units","paid_units_per_group","free_units_per_group","unit_price"],"properties":{"unit_price":{"type":"number","default":25,"maximum":1000000000000,"minimum":0},"basket_units":{"type":"integer","default":10,"maximum":1000000,"minimum":0},"free_units_per_group":{"type":"integer","default":1,"maximum":1000000,"minimum":0},"paid_units_per_group":{"type":"integer","default":2,"maximum":1000000,"minimum":1}},"additionalProperties":false},"before":{"type":"object","default":{"unit_price":25,"basket_units":10,"free_units_per_group":1,"paid_units_per_group":2},"required":["basket_units","paid_units_per_group","free_units_per_group","unit_price"],"properties":{"unit_price":{"type":"number","default":25,"maximum":1000000000000,"minimum":0},"basket_units":{"type":"integer","default":10,"maximum":1000000,"minimum":0},"free_units_per_group":{"type":"integer","default":1,"maximum":1000000,"minimum":0},"paid_units_per_group":{"type":"integer","default":2,"maximum":1000000,"minimum":1}},"additionalProperties":false}}},"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_FUoMwLl-SKF_uVsRs2s5M","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 and compares the effective merchandise total under a Buy-X-get-Y-free promotion for two scenarios (before and after), showing the impact of changed pricing or basket parameters.","exampleAgentPrompt":"Compare my buy-2-get-1-free promotion before and after a price change: before I had 10 units at $25 each with 2 paid and 1 free per group; after I have 11 units at $27.50 each with 2 paid and 1 free per group — show me the merchandise total difference.","exampleUseCases":[{"title":"Retail price hike impact on multibuy","prompt":"I'm raising my unit price from $30 to $35 and I want to see how that affects my buy-3-get-1-free total when a customer has 12 items in their basket — same promotion structure both ways, 3 paid and 1 free per group."},{"title":"Promotion restructure comparison","prompt":"We're changing our multibuy deal from buy-2-get-1-free to buy-3-get-1-free. The unit price stays at $20 and the basket has 9 units. Can you compare the merchandise totals before and after the structure change?"},{"title":"Basket size change evaluation","prompt":"A customer's typical basket is growing from 6 units to 9 units. Our buy-2-get-1-free deal stays the same at $15 per unit. What's the before and after merchandise total difference across those two basket sizes?"}],"resultDescription":"A bounded before-and-after comparison report showing the effective merchandise total for each scenario, reflecting how many units are paid versus free under the Buy-X-get-Y-free rule, and the net difference between the two configurations. Limited to 200 records per call.","failureModes":["Missing required fields (basket_units, paid_units_per_group, free_units_per_group, unit_price) in either before or after object returns a validation error","paid_units_per_group set to 0 is invalid (minimum 1) and will be rejected","Values exceeding schema maximums (e.g. unit_price > 1e12 or basket_units > 1,000,000) will be rejected","Malformed JSON body returns a 400-level error","Insufficient USDC balance or x402 payment failure returns a 402 Payment Required error"],"whenToPreferThis":"Use this endpoint when you need a quick, bounded before-and-after numerical comparison of a Buy-X-get-Y-free retail promotion total — especially when evaluating the impact of price changes, basket size changes, or promotion structure changes on merchandise revenue. It is best suited for point-in-time retail analytics with supplied figures rather than live inventory or order management systems. Prefer this over general-purpose calculators when you specifically need the promotion-aware merchandise total logic with a structured two-scenario comparison output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:06:41.491Z","isFirstParty":false,"canonicalSlug":"buy-x-get-y-free-merchandise-total-before-and-after-comparison-02d880f0"}