{"openapi":"3.1.0","info":{"title":"CashScout API","version":"1.0.0","description":"US exact-product comparison. Money uses integer cents. Null costs stay unknown. Demo offers cannot be purchased. No consumer accounts, checkout or payouts."},"servers":[{"url":"https://cashscout.au"}],"security":[],"paths":{"/api/v1/search_products":{"post":{"operationId":"search_products","description":"Identify candidate products when a user is shopping. Use for general requests such as find AirPods Pro. Return product IDs and ask the user to choose a model or variant when ambiguous. Candidate prices are not evidence of equivalence.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":200},"product_id":{"type":"string","maxLength":200},"product_url":{"type":"string","maxLength":2048},"brand":{"type":"string","maxLength":200},"model":{"type":"string","maxLength":200},"color":{"type":"string","maxLength":200},"size":{"type":"string","maxLength":200},"storage":{"type":"string","maxLength":200},"generation":{"type":"string","maxLength":200},"capacity":{"type":"string","maxLength":200},"configuration":{"type":"string","maxLength":200},"upc":{"type":"string","maxLength":200},"gtin":{"type":"string","maxLength":200},"ean":{"type":"string","maxLength":200},"asin":{"type":"string","maxLength":200},"isbn":{"type":"string","maxLength":200},"mpn":{"type":"string","maxLength":200},"condition":{"type":"string","enum":["new","refurbished","used","open-box"],"default":"new"},"country":{"type":"string","enum":["US"],"default":"US"},"budget_cents":{"type":"integer","minimum":1,"maximum":100000000}},"anyOf":[{"required":["query"]},{"required":["product_id"]},{"required":["product_url"]},{"required":["upc"]},{"required":["gtin"]},{"required":["ean"]},{"required":["asin"]},{"required":["isbn"]},{"required":["mpn"]}]}}}},"responses":{"200":{"description":"Result with mode and uncertainty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid input, unresolved identity or invalid link"},"401":{"description":"Connector key required if configured"},"403":{"description":"Origin or merchant blocked"},"410":{"description":"Offer expired"},"413":{"description":"Request exceeds 16 KiB"},"429":{"description":"Rate limit"},"503":{"description":"Provider unavailable, never silently replaced with demo data"}}}},"/api/v1/compare_prices":{"post":{"operationId":"compare_prices","description":"Compare the same identified product across participating retailers before buying. Use a selected product_id or exact product identifiers and variant attributes. Never conflate sizes, storage, generations, colors or condition. Incomplete totals and unknown tax are explicitly labelled.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":200},"product_id":{"type":"string","maxLength":200},"product_url":{"type":"string","maxLength":2048},"brand":{"type":"string","maxLength":200},"model":{"type":"string","maxLength":200},"color":{"type":"string","maxLength":200},"size":{"type":"string","maxLength":200},"storage":{"type":"string","maxLength":200},"generation":{"type":"string","maxLength":200},"capacity":{"type":"string","maxLength":200},"configuration":{"type":"string","maxLength":200},"upc":{"type":"string","maxLength":200},"gtin":{"type":"string","maxLength":200},"ean":{"type":"string","maxLength":200},"asin":{"type":"string","maxLength":200},"isbn":{"type":"string","maxLength":200},"mpn":{"type":"string","maxLength":200},"condition":{"type":"string","enum":["new","refurbished","used","open-box"],"default":"new"},"country":{"type":"string","enum":["US"],"default":"US"},"budget_cents":{"type":"integer","minimum":1,"maximum":100000000}},"anyOf":[{"required":["query"]},{"required":["product_id"]},{"required":["product_url"]},{"required":["upc"]},{"required":["gtin"]},{"required":["ean"]},{"required":["asin"]},{"required":["isbn"]},{"required":["mpn"]}]}}}},"responses":{"200":{"description":"Result with mode and uncertainty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid input, unresolved identity or invalid link"},"401":{"description":"Connector key required if configured"},"403":{"description":"Origin or merchant blocked"},"410":{"description":"Offer expired"},"413":{"description":"Request exceeds 16 KiB"},"429":{"description":"Rate limit"},"503":{"description":"Provider unavailable, never silently replaced with demo data"}}}},"/api/v1/find_best_deal":{"post":{"operationId":"find_best_deal","description":"Check whether a product can be bought for less before the agent buys it. Find the cheapest comparable offers among participating retailers checked. Resolve ambiguity first. Commission never changes price ranking. Demo results are simulated and cannot be purchased.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":200},"product_id":{"type":"string","maxLength":200},"product_url":{"type":"string","maxLength":2048},"brand":{"type":"string","maxLength":200},"model":{"type":"string","maxLength":200},"color":{"type":"string","maxLength":200},"size":{"type":"string","maxLength":200},"storage":{"type":"string","maxLength":200},"generation":{"type":"string","maxLength":200},"capacity":{"type":"string","maxLength":200},"configuration":{"type":"string","maxLength":200},"upc":{"type":"string","maxLength":200},"gtin":{"type":"string","maxLength":200},"ean":{"type":"string","maxLength":200},"asin":{"type":"string","maxLength":200},"isbn":{"type":"string","maxLength":200},"mpn":{"type":"string","maxLength":200},"condition":{"type":"string","enum":["new","refurbished","used","open-box"],"default":"new"},"country":{"type":"string","enum":["US"],"default":"US"},"budget_cents":{"type":"integer","minimum":1,"maximum":100000000}},"anyOf":[{"required":["query"]},{"required":["product_id"]},{"required":["product_url"]},{"required":["upc"]},{"required":["gtin"]},{"required":["ean"]},{"required":["asin"]},{"required":["isbn"]},{"required":["mpn"]}]}}}},"responses":{"200":{"description":"Result with mode and uncertainty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"400":{"description":"Invalid input, unresolved identity or invalid link"},"401":{"description":"Connector key required if configured"},"403":{"description":"Origin or merchant blocked"},"410":{"description":"Offer expired"},"413":{"description":"Request exceeds 16 KiB"},"429":{"description":"Rate limit"},"503":{"description":"Provider unavailable, never silently replaced with demo data"}}}},"/api/v1/get_offer":{"post":{"operationId":"get_offer","description":"Read one selected offer with its product, merchant, price in USD cents, shipping, fees, match confidence, stock status and checked_at timestamp. Expired offers cannot generate purchase links.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offer_id":{"type":"string","minLength":1,"maxLength":100}},"required":["offer_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Result with mode and uncertainty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"400":{"description":"Invalid input, unresolved identity or invalid link"},"401":{"description":"Connector key required if configured"},"403":{"description":"Origin or merchant blocked"},"410":{"description":"Offer expired"},"413":{"description":"Request exceeds 16 KiB"},"429":{"description":"Rate limit"},"503":{"description":"Provider unavailable, never silently replaced with demo data"}}}},"/api/v1/get_purchase_link":{"post":{"operationId":"get_purchase_link","description":"Create an expiring tracked CashScout link for the offer the user selected. This does not purchase anything or take payment. Qualifying links may earn CashScout commission. The merchant handles checkout. Demo links lead only to a clearly labelled simulation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offer_id":{"type":"string","minLength":1,"maxLength":100},"search_id":{"type":"string","maxLength":100}},"required":["offer_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Result with mode and uncertainty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseLink"}}}},"400":{"description":"Invalid input, unresolved identity or invalid link"},"401":{"description":"Connector key required if configured"},"403":{"description":"Origin or merchant blocked"},"410":{"description":"Offer expired"},"413":{"description":"Request exceeds 16 KiB"},"429":{"description":"Rate limit"},"503":{"description":"Provider unavailable, never silently replaced with demo data"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Product":{"type":"object","required":["id","title"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"condition":{"type":"string"},"generation":{"type":"string"},"size":{"type":"string"},"color":{"type":"string"},"storage":{"type":"string"},"capacity":{"type":"string"},"configuration":{"type":"string"},"identifiers":{"type":"object","additionalProperties":{"type":"string"}}}},"Offer":{"type":"object","required":["id","product","merchant","item_price","currency","checked_at","expires_at","demo"],"properties":{"id":{"type":"string"},"product":{"$ref":"#/components/schemas/Product"},"merchant":{"type":"object","required":["id","name","domain","approved"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"approved":{"type":"boolean"}}},"item_price":{"type":"integer","minimum":0,"description":"USD cents"},"shipping":{"anyOf":[{"type":"integer","minimum":0,"description":"USD cents"},{"type":"null"}]},"mandatory_fees":{"anyOf":[{"type":"integer","minimum":0,"description":"USD cents"},{"type":"null"}]},"confirmed_discount":{"type":"integer","minimum":0,"description":"USD cents"},"estimated_total":{"anyOf":[{"type":"integer","minimum":0,"description":"USD cents"},{"type":"null"}]},"known_subtotal":{"type":"integer","minimum":0,"description":"USD cents"},"tax":{"type":"null"},"tax_status":{"type":"string","const":"unknown"},"confidence":{"type":"string","enum":["EXACT","HIGH","MEDIUM","LOW"]},"affiliate_eligible":{"type":"boolean"},"currency":{"type":"string","const":"USD"},"availability":{"type":"string","enum":["in_stock","out_of_stock","unknown"]},"checked_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"demo":{"type":"boolean"},"stale":{"type":"boolean"},"price_note":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}}}},"Comparison":{"type":"object","required":["mode","search_id","checked_at","candidates","needs_clarification","offers","claim","disclosure"],"properties":{"mode":{"type":"string","enum":["demo","live"]},"provider":{"type":"string"},"coverage":{"type":"string"},"search_id":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"cached":{"type":"boolean"},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"needs_clarification":{"type":"boolean"},"clarification":{"type":["string","null"]},"offers":{"type":"array","items":{"$ref":"#/components/schemas/Offer"}},"claim":{"type":"string"},"disclosure":{"type":"string"},"excluded_count":{"type":"integer"},"tax_status":{"type":"string"},"source_freshness":{"type":"string"}}},"PurchaseLink":{"type":"object","required":["url","expires_in","mode","checkout_processed","disclosure"],"properties":{"url":{"type":"string","format":"uri"},"expires_in":{"type":"integer","const":300},"mode":{"type":"string","enum":["demo","live"]},"affiliate_eligible":{"type":["boolean","null"]},"checkout_processed":{"type":"boolean","const":false},"disclosure":{"type":"string"}}}}}}