{"uid":"cap_-Zbh_o4KmgaQQrgEQY5_z","slug":"x402-cloud-pdf-invoice-to-json-8418a9fd","name":"X402 Cloud PDF Invoice to JSON","description":"X402 Cloud AI Inference Endpoints is an agent-ready x402 API provider for Gemini, image, audio, video, realtime, and specialized AI inference workflows. We expose pay-per-call USDC endpoints designed for autonomous AI agents, application backends, trading bots, creative automation, and RAG systems with some of the lowest x402 AI inference prices available in the market.","url":"https://api.x402cloud.space/v1/pdf/invoice-to-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"date":"2026-06-01","taxes":10,"total":128.5,"vendor":"Example Inc.","currency":"USD","confidence":0.9,"line_items":[{"amount":99,"quantity":1,"description":"Subscription"}],"invoice_number":"INV-1001"},"outputSchema":{"type":"object","$defs":{"InvoiceLineItem":{"type":"object","title":"InvoiceLineItem","required":["description"],"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount","default":null},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity","default":null},"description":{"type":"string","title":"Description"}}}},"title":"PdfInvoiceOutput","properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","default":null},"taxes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Taxes","default":null},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total","default":null},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor","default":null},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","default":null},"confidence":{"type":"number","title":"Confidence","default":0,"maximum":1,"minimum":0},"line_items":{"type":"array","items":{"$ref":"#/$defs/InvoiceLineItem"},"title":"Line Items"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number","default":null}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O4Flt8rc9WRafVwDhLZiN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured invoice data (vendor, date, total, taxes, line items) from a PDF URL into a JSON object","exampleAgentPrompt":"Can you parse this invoice PDF at https://example.com/invoices/INV-1001.pdf and extract the vendor, date, total, taxes, currency, and all line items into structured JSON? The document is in English.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: invoice_number, vendor, date, total, taxes, currency, confidence score (0–1), and an array of line_items each with description, quantity, and amount. Fields may be null if not found in the PDF.","failureModes":["PDF URL is not publicly accessible or returns 404 — extraction fails","PDF is scanned image with poor OCR quality — low confidence score returned","PDF is not an invoice or receipt — fields may return mostly null","Unsupported language without language_hint — reduced accuracy","Malformed or password-protected PDF — parsing error returned"],"whenToPreferThis":"Use this endpoint when you need to automatically extract structured invoice or receipt data from a PDF file accessible via a public URL, especially in agent workflows, accounts-payable automation, or RAG pipelines that need machine-readable invoice fields without manual data entry. Pay-per-call USDC pricing via x402 makes it suitable for autonomous agents without subscription setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T01:20:31.829Z","isFirstParty":false,"canonicalSlug":"x402-cloud-pdf-invoice-to-json-8418a9fd"}