{"uid":"cap_sKUZk3wgNyG4fiGbvX2RQ","slug":"salesforge-quote-strategy-api-6bd0d9e8","name":"SalesForge Quote Strategy API","description":"Agent-ready B2B sales qualification and quote analysis micro-APIs.","url":"https://salesforge-production-0d96.up.railway.app/api/quote-strategy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"number"},"revenue":{"type":"number"},"sellPrice":{"type":"number"},"targetMarginPct":{"type":"number"}}},"responseSchema":{"type":"json","example":{"marginPct":28,"markupPct":38.89,"grossProfit":2800,"discountHeadroom":400,"minimumSellForTargetMargin":9600}},"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_MI7bbc4f5gqi0vk4r4RdL","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 cost, revenue, and sell price inputs to return margin percentage, markup, gross profit, discount headroom, and minimum sell price needed to hit a target margin.","exampleAgentPrompt":"Can you run a quote strategy analysis on a deal where my cost is $7,200, my sell price is $10,000, and my target margin is 25%? I want to know my actual margin, gross profit, how much room I have to discount, and the minimum I can sell it for.","exampleUseCases":[{"title":"Pre-deal margin check before submitting quote","prompt":"Before I send this quote to the client, can you check if it's profitable? My cost is $14,500, I'm planning to sell at $19,000, and I need to know the margin, markup, and how much I can discount before it becomes a bad deal."},{"title":"Setting minimum price floor for sales team","prompt":"My team is negotiating a deal where our cost is $32,000 and our revenue target is $45,000 — what's the minimum sell price to hit a 30% margin, and how much gross profit are we making at the full sell price?"},{"title":"Evaluating discount request from procurement","prompt":"A prospect wants a discount on a deal where my cost is $8,800 and the original sell price is $12,500. Can you tell me the current margin and how much discount headroom I have before I drop below a 20% target margin?"}],"resultDescription":"Returns a JSON object with: marginPct (actual gross margin as a percentage), markupPct (markup over cost as a percentage), grossProfit (dollar amount of gross profit), discountHeadroom (dollar amount available to discount while maintaining profitability), and minimumSellForTargetMargin (the lowest sell price that achieves the specified target margin percentage).","failureModes":["Missing required fields (cost, sellPrice) may return validation errors or null results","Passing zero or negative cost values may cause division errors or nonsensical margin calculations","If targetMarginPct is not provided, minimumSellForTargetMargin may be null or omitted","Extremely large or small numbers may cause floating point precision issues in returned percentages","Non-numeric values for cost, revenue, sellPrice, or targetMarginPct will likely cause a 400 error"],"whenToPreferThis":"Choose this endpoint when you need fast, structured financial analysis of a B2B sales quote — especially when you need margin, markup, gross profit, discount headroom, and minimum sell price all in a single call. It is ideal for AI sales agents, CRM automations, and quote-approval workflows where a human or agent needs to validate deal profitability before approving or sending a quote. Prefer it over spreadsheet logic or generic calculators when you need a machine-readable JSON response that can feed downstream decision logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:36:44.662Z","isFirstParty":false,"canonicalSlug":"salesforge-quote-strategy-api-6bd0d9e8"}