{"uid":"cap_uYTtqwg_G2eZfPLc1smp-","slug":"spraay-gateway-invoice-creator-1fb8dfb7","name":"Spraay Gateway Invoice Creator","description":"Create invoice with payment tx.","url":"https://gateway.spraay.app/api/v1/invoice/create?utm_source=zero.xyz","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":["id"],"properties":{"id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"invoice":{"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_5ytIQO5CChbsXpbWjOSFa","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":"Creates a payment invoice with an associated payment transaction for a given invoice ID.","exampleAgentPrompt":"Create a payment invoice for invoice ID 'inv_abc123' so I can track and process the payment transaction.","exampleUseCases":[{"title":"Agent-initiated payment invoicing","prompt":"Generate a payment invoice for invoice ID 'inv_9f82k' so I can send it to the client and collect payment."},{"title":"Automated billing workflow trigger","prompt":"Create a new invoice with payment transaction for ID 'inv_00345' as part of our automated billing pipeline."},{"title":"On-demand invoice retrieval for reconciliation","prompt":"Pull up the invoice and payment transaction details for invoice ID 'inv_xyz789' so I can reconcile it with our records."}],"resultDescription":"An invoice object containing payment transaction details, such as amount, recipient, status, and any associated payment metadata needed to fulfill or track the invoice.","failureModes":["Missing or invalid 'id' query parameter returns an error or empty response","Invoice ID not found results in a 404 or similar error response","Payment gateway unavailable causes a 5xx server error","Malformed request (wrong method or schema) returns a 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need to programmatically create or retrieve a payment invoice along with its transaction record on the Spraay platform. Prefer this over general payment APIs when working within the Spraay gateway ecosystem, especially when invoice IDs are already known and you need structured invoice+payment tx data returned.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:45:07.330Z","isFirstParty":false,"canonicalSlug":"spraay-gateway-invoice-creator-1fb8dfb7"}