{"product_id":"estimate-military-discount-baskets-via-salutescout-http-api","title":"Estimate Military Discount Baskets via SaluteScout HTTP API","description":"\u003ch3\u003eEstimate a Military Discount Basket with SaluteScout—automatically from an n8n form\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes a brand name and verified discount terms from a form, looks up matching \u003cstrong\u003eSaluteScout\u003c\/strong\u003e discount guides via the public HTTP API, then calculates an \u003cstrong\u003eestimated pre-tax basket total\u003c\/strong\u003e with spend and allowance caps—returning a clean HTML summary.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects inputs\u003c\/strong\u003e through an n8n form submission: brand query, eligible and excluded subtotals, a discount percentage, optional ceilings\/allowances, and confirmation that the terms were checked.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSets currency and output heading\u003c\/strong\u003e to ensure the results are consistent and readable.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSearches SaluteScout guides\u003c\/strong\u003e by calling \u003cem\u003ehttps:\/\/salutescout.com\/api\/agent\/guides\u003c\/em\u003e and retrieving up to five published guides that match the entered brand.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and matches safely\u003c\/strong\u003e: checks inputs, verifies a direct brand match in the returned guide title or ID, and only prepares a link when a safe matching guide URL is found.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalculates the estimated discount\u003c\/strong\u003e using integer-cent arithmetic:\n    \u003cul\u003e\n      \u003cli\u003eSeparates eligible vs. excluded goods\u003c\/li\u003e\n      \u003cli\u003eCaps the eligible spend base\u003c\/li\u003e\n      \u003cli\u003eCaps the discount based on remaining allowance\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns an HTML completion page\u003c\/strong\u003e with guide lookup status and a formatted table of basket totals and estimated discount.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomation engineers want a repeatable \u003cstrong\u003ediscount estimation\u003c\/strong\u003e flow inside n8n for merchant term checks.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators building a customer-facing calculator need API-backed guide matching plus capped discount math.\u003c\/li\u003e\n  \u003cli\u003eTeams validating “eligible vs excluded” baskets want a consistent, pre-tax estimate with transparency.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e Form Trigger, Form, Set, Code, HTTP Request, Sticky Note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExternal integration:\u003c\/strong\u003e SaluteScout public API (\u003cem\u003e\/api\/agent\/guides\u003c\/em\u003e), including matching + capped discount computation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput:\u003c\/strong\u003e HTML summary page with basket totals and estimated discount.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46075753300147,"sku":"N8N-19827","price":77.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/T9TtgXLh2P98CW7a-xmgM_UyjxVnAF.png?v=1790154274","url":"https:\/\/buyflowscripts.com\/products\/estimate-military-discount-baskets-via-salutescout-http-api","provider":"N8N Commerce","version":"1.0","type":"link"}