{"uid":"cap_pavMsMGxGiPdYSeEJYb0x","slug":"qr-code-generator-for-payment-and-onboarding-payloads-14f8a6c1","name":"QR Code Generator for Payment and Onboarding Payloads","description":"Generate a PNG QR code URL for payment and onboarding payloads (upstream probed live)","url":"https://vending-machine-seven.vercel.app/api/v/qr-code","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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"string","description":"Payload to encode"},"size":{"type":"string","description":"Pixel size 128-512"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"png_url":{"type":"string"},"service":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vm-vf7Dh2K3QpalfDYDMC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a PNG QR code image URL by encoding an arbitrary data string, sized between 128–512 pixels","exampleAgentPrompt":"Can you generate a QR code PNG for the text 'https://pay.example.com/invoice/abc123' at 256 pixels so I can embed it in my payment page?","exampleUseCases":[{"title":"QR code for crypto wallet","prompt":"Can you create a QR code PNG for my Bitcoin wallet address 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh' at 300 pixels so customers can scan it to send payments directly?"},{"title":"Onboarding flow QR link","prompt":"I need a scannable QR code image for the URL 'https://app.myproduct.com/onboard?ref=welcome2024' at 256 pixels so I can drop it into my welcome email for new users to scan and get started quickly."},{"title":"Checkout page QR embed","prompt":"Can you generate a 512-pixel PNG QR code for the string 'https://shop.example.com/cart/checkout?session=XYZ987' that I can embed directly on my checkout confirmation page for mobile users to scan?"}],"resultDescription":"Returns a JSON object containing a PNG image URL (png_url) pointing to the generated QR code, a boolean ok status, and a service identifier string. The PNG can be directly embedded or shared.","failureModes":["Missing required 'data' query parameter returns an error","Size value outside 128–512 range may be rejected or clamped","Upstream QR rendering service unavailable causes a 5xx error","Payment not provided or x402 authorization missing returns 402 Payment Required","Extremely long data strings may exceed QR code capacity limits"],"whenToPreferThis":"Use this endpoint when you need a quick, hosted PNG QR code URL from an arbitrary string or payload — especially for payment links, crypto addresses, or onboarding flows — and want a per-call micro-payment model rather than a subscription API key. Ideal for agents that need an embeddable image URL rather than raw QR binary data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:06:20.675Z","isFirstParty":false}