{"service":"mart402","version":"0.1.0","payment":{"x402":{"enabled":true,"network":"base-sepolia"},"dev_free_mode":false},"receipts":{"note":"every paid call returns X-Receipt-Id; GET /v1/receipts/{id} re-fetches the result for free (payments are never lost). Retrying the same X-PAYMENT is idempotent.","retention_days":30},"errors":{"quote_expired_or_unknown":{"retryable":true,"action":"requote"},"receipt_not_found":{"retryable":false,"action":"fix_input"},"not_a_pdf":{"retryable":false,"action":"fix_input"},"too_large_20mb":{"retryable":false,"action":"fix_input"},"llm_route_pending_supplier_approval":{"retryable":true,"action":"wait"},"payment_verify_failed":{"retryable":true,"action":"retry_payment"},"fetch_error":{"retryable":true,"action":"retry"}},"products":[{"id":"extract","endpoint":"POST /v1/extract","description":"URL→本文Markdown+メタデータ。JS必須サイトは自動でレンダリング","price_usd":{"fast":0.002,"heavy_auto_fallback":0.006,"cache_hit":"half price"},"input":{"url":"string","mode":"auto|fast|heavy","ttl":"cache seconds (0=no cache)"},"policy":{"robots_txt":"respected","terms":"/terms (target-site rights are caller's responsibility)"}},{"id":"parse","endpoint":"POST /v1/parse/quote -> POST /v1/parse","description":"PDF→構造化Markdown。quoteで無償見積り(ページ数・確定価格)→x402支払いで実行。テキスト埋込PDFとスキャンPDFを自動ルーティング","price_usd":{"per_page":0.004,"max_sync_pages":20,"quote":"free (valid 1h)"},"input":{"quote":{"url":"PDF url"},"parse":{"quote_id":"from quote"}},"note":"scanned PDFs return consensus{confidence,flags} + ocr_quality (hallucination-guarded, Mistral+Google Vision)"},{"id":"verify","endpoint":"POST /v1/verify","description":"請求書フィールドの業務検証: 税率整合検算・明細合計照合・インボイス登録番号(T+13桁)チェックディジット・会計連携用正規化JSON","price_usd":{"per_call":0.001},"input":{"fields":"extracted invoice fields (JSON)","line_items":"optional [[name, qty, unit, amount], ...]"}},{"id":"structured","endpoint":"POST /v1/structured","description":"任意URLの内容を、呼び出し側が指定したJSONスキーマに充填して返す。LLM抽出+原文照合正規化のハイブリッド。スキーマのキーだけを出力し、見つからない値はnull","price_usd":{"per_call":0.02},"input":{"url":"string","schema":"{key: 説明} 形式のJSONスキーマ","instructions":"optional 抽出時の追加指示"}},{"id":"jp-company","endpoint":"POST /v1/jp-company","description":"日本企業サイトの構造化: 会社名・所在地・代表者・設立・資本金・事業内容・従業員数・上場区分・問い合わせ先を日本企業の標準スキーマで抽出。/v1/structured の日本企業向けプリセット","price_usd":{"per_call":0.02},"input":{"url":"string (企業サイトURL、会社概要ページ推奨)"}}]}