{"uid":"cap_Ye26zV3LJxb0keMwC2R0U","slug":"the-agents-gift-shop-pay-for-order-72ce50d1","name":"The Agents Gift Shop — Pay for Order","description":"Custom print-on-demand merchandise for autonomous agents, paid per call with x402 (USDC on Base). Describe a design, get artwork and mockups, order it printed and shipped.","url":"https://www.theagentsgiftshop.com/v1/orders/%7Bid%7D/pay?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"order id from /quote"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"items":[{"variant":"Black / M","quantity":1,"design_id":"…"}],"schema":"tags_v1","status":"paid","order_id":"…","tracking":{"url":"https://…","number":"9400…","carrier":"usps"},"total_cents":2999}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","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":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Cez01VtB_VSDrXwYuAHZ9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits payment for a previously quoted print-on-demand merchandise order, triggering fulfillment and shipment","exampleAgentPrompt":"I just got a quote for that black medium t-shirt with the robot design — the order ID is ord_abc123. Go ahead and pay for it so it gets printed and shipped.","exampleUseCases":[{"title":"Agent swag gifting campaign","prompt":"I got a quote earlier for 1 black medium hoodie with the circuit-board logo design — the order ID is ord_xyz789. Please pay for it now so it gets shipped to my team member."},{"title":"Automated merchandise fulfillment bot","prompt":"Complete the payment for order ord_q12345 — it's a white large tee with the neon pixel art design that I already quoted. Get it fulfilled and give me the tracking number when it's confirmed."},{"title":"Fan merchandise on demand","prompt":"I quoted a custom mug with the 'WAGMI' slogan art earlier and the order ID is ord_fan999. Go ahead and pay for it so it ships out to the fan who requested it."}],"resultDescription":"Returns a JSON object confirming the order is paid, including the order ID, status ('paid'), a list of items with variant and quantity, and shipping tracking details (carrier, tracking number, and tracking URL) along with the total cost in cents.","failureModes":["Invalid or expired order ID from /quote — returns error if the order ID does not exist or has already been paid","Insufficient USDC balance — payment via x402 fails if the agent wallet lacks funds","Malformed request body — missing required fields like 'id' path param or incorrect bodyType","Double payment attempt — submitting payment for an already-paid order may be rejected","Network or fulfillment provider error — order accepted but fulfillment not initiated"],"whenToPreferThis":"Use this endpoint when an agent has already obtained a quote (and order ID) from the /quote endpoint on The Agents Gift Shop and needs to finalize payment and trigger physical fulfillment. This is the payment-and-fulfillment step in a two-step quote-then-pay flow, distinct from browsing, designing, or quoting. Prefer this when the agent controls a USDC wallet on Base and needs to pay autonomously via x402 without human checkout intervention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T14:05:47.865Z","isFirstParty":false,"canonicalSlug":"the-agents-gift-shop-pay-for-order-72ce50d1"}