{"uid":"cap_t9eJSQK79IqyCKui8XAOw","slug":"0x-swap-allowance-holder-firm-quote-ea89260b","name":"0x Swap Allowance Holder Firm Quote","description":"Get the firm quote for a swap using Allowance Holder to set allowances","url":"https://agent.api.0x.org/v1/x402/swap-allowance-holder-quote","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_ERcRJ6AIcZpKJs0pkU-Ey","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":"Returns a firm (executable) quote for a token swap using the Allowance Holder contract to manage token allowances","exampleAgentPrompt":"Get me a firm, executable swap quote on 0x for selling 500 USDC to buy WETH on Ethereum mainnet — I need the actual calldata and allowance holder address so I can execute it right away.","exampleUseCases":null,"resultDescription":"A firm, executable swap quote including the exact output token amount, swap calldata, allowance holder contract address, price impact, gas estimate, and quote expiry — ready to submit as an on-chain transaction.","failureModes":["Insufficient liquidity for the requested token pair returns an error or empty route","Invalid or unsupported token addresses return a 400 validation error","Quote expires between fetch and execution, requiring a refresh","Requested sell amount below minimum threshold returns an error","Unsupported chain ID returns a 400 error","Missing required query parameters return a 422 unprocessable entity error","Payment not provided or insufficient USDC returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint over the indicative price sibling when you need an executable, binding quote with actual calldata to submit a transaction — not just an estimate for display purposes. Use when you are about to execute a swap and need precise output amounts, gas data, and allowance holder details. Prefer this when integrating with the Allowance Holder contract flow for managing ERC-20 token approvals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:18.388Z","isFirstParty":false}