{"uid":"cap_qyPegd7o1OhjR50QC_-sH","slug":"b2b-wholesale-distributor-margin-stack-calculator-ef8e7c5c","name":"B2B Wholesale & Distributor Margin Stack Calculator","description":"Deterministic B2B wholesale keystone & distributor margin stack calculator. Pass ?msrp_usd=40&unit_cogs_usd=7.50&wholesale_discount_pct=50&moq_units=100. Returns wholesale unit price, brand gross profit/margin, MOQ order value, distributor-tier margin (at 25% distributor cut), and MAP policy readiness checklist.","url":"https://x402-niche-briefs.fly.dev/v1/wholesale-moq-margin-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["msrp_usd","unit_cogs_usd","wholesale_discount_pct","moq_units"],"properties":{"msrp_usd":{"type":"string","description":"Suggested retail price (MSRP) in USD"},"moq_units":{"type":"string","description":"Minimum order quantity (MOQ) in units"},"unit_cogs_usd":{"type":"string","description":"Landed COGS per unit in USD"},"wholesale_discount_pct":{"type":"string","description":"Wholesale discount off MSRP (default 50 for keystone)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["as_of","inputs","direct_wholesale_tier","distributor_tier_25pct_margin","wholesale_readiness_checklist"],"properties":{"as_of":{"type":"string"},"inputs":{"type":"object","required":["msrp_usd","unit_cogs_usd","wholesale_discount_pct","moq_units"],"properties":{"msrp_usd":{"type":"number"},"moq_units":{"type":"number"},"unit_cogs_usd":{"type":"number"},"wholesale_discount_pct":{"type":"number"}}},"direct_wholesale_tier":{"type":"object","required":["wholesale_unit_price_usd","gross_profit_per_unit_usd","brand_wholesale_gross_margin_pct","moq_order_revenue_usd","moq_order_gross_profit_usd"],"properties":{"moq_order_revenue_usd":{"type":"number"},"wholesale_unit_price_usd":{"type":"number"},"gross_profit_per_unit_usd":{"type":"number"},"moq_order_gross_profit_usd":{"type":"number"},"brand_wholesale_gross_margin_pct":{"type":"number"}}},"distributor_tier_25pct_margin":{"type":"object","required":["sell_to_distributor_unit_price_usd","brand_gross_profit_per_unit_usd","brand_gross_margin_with_distributor_pct"],"properties":{"brand_gross_profit_per_unit_usd":{"type":"number"},"sell_to_distributor_unit_price_usd":{"type":"number"},"brand_gross_margin_with_distributor_pct":{"type":"number"}}},"wholesale_readiness_checklist":{"type":"array","items":{"type":"string"}}}}}}}},"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_ro8ZrI2FgVQr4d3DG_B5x","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":"Calculates wholesale unit pricing, brand gross margins, MOQ order values, and distributor-tier margin stack given MSRP, COGS, wholesale discount, and MOQ inputs","exampleAgentPrompt":"Run a wholesale margin stack analysis for my product: MSRP is $40, COGS is $7.50, I'm offering a 50% keystone wholesale discount, and my MOQ is 100 units — show me the brand margin, MOQ order value, and what happens when a distributor takes a 25% cut.","exampleUseCases":[{"title":"Keystone pricing viability check","prompt":"My candle brand has an MSRP of $28 and a unit COGS of $6. If I sell wholesale at 50% off MSRP with a 72-unit MOQ, what's my gross margin per unit and total order gross profit?"},{"title":"Distributor channel margin assessment","prompt":"I'm pitching a regional distributor on my hot sauce line — MSRP is $12, COGS is $2.20, I'm offering 50% wholesale discount with a 200-unit MOQ. What does my margin look like after they take their 25% distributor cut, and am I MAP policy ready?"},{"title":"New product wholesale pricing decision","prompt":"We're launching a supplement with a $55 MSRP and $9 COGS. I'm considering a 45% wholesale discount and a 50-unit MOQ — can you calculate the wholesale unit price, brand gross margin, and MOQ order revenue so I can decide if this works?"}],"resultDescription":"Returns a structured JSON object with: (1) echoed inputs, (2) direct wholesale tier metrics — wholesale unit price, gross profit per unit, brand gross margin %, MOQ order revenue, and MOQ order gross profit, (3) distributor tier metrics at 25% distributor margin — sell-to-distributor price, brand gross profit per unit with distributor, and brand gross margin % with distributor, and (4) a MAP policy readiness checklist indicating whether the pricing structure is compatible with minimum advertised price enforcement.","failureModes":["Missing required query parameter (msrp_usd, unit_cogs_usd, wholesale_discount_pct, or moq_units) returns a 400 error","Non-numeric string values for numeric parameters may cause a 400 or 422 error","COGS exceeding wholesale unit price results in negative margin output (not an error, but indicates unprofitable pricing)","Payment failure via x402 protocol (insufficient USDC balance) blocks the request","Very large MOQ values or extreme discount percentages may produce edge-case outputs but should compute deterministically"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic B2B wholesale margin calculations without setting up a spreadsheet or financial model — especially for CPG, ecommerce, or consumer product brands evaluating keystone pricing, distributor channel economics, or MOQ profitability. It is purpose-built for the wholesale margin stack use case (MSRP → wholesale → distributor) and includes a MAP policy readiness check not typically found in generic margin calculators.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:06:41.440Z","isFirstParty":false,"canonicalSlug":"b2b-wholesale-distributor-margin-stack-calculator-ef8e7c5c"}