{"uid":"cap_V_myH8fzzhn7n_VMf1bRy","slug":"soroban-data-works-japan-consumption-tax-calculator-c089a888","name":"Soroban Data Works – Japan Consumption Tax Calculator","description":"Rule-based Japanese business calendar and consumption-tax data for AI agents. Paid endpoints use x402 (USDC on Base): call without payment to receive 402 payment requirements, then retry with a PAYMENT-SIGNATURE header.","url":"https://soroban.phoenixrefurbtools.workers.dev/v1/jp/consumption-tax?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","const":"GET"},"queryParams":{"type":"object","required":["amount"],"properties":{"rate":{"enum":[10,8],"type":"integer"},"amount":{"type":"integer","minimum":0}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"}}}}},"responseSchema":{"type":"json","example":{"tax_raw":"1000.00","variants":{"floor":{"tax":1000,"amount_incl_tax":11000}},"rate_percent":10,"amount_excl_tax":10000}},"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_3rgOYMa7TD9l_SEQMpQQe","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":"Calculates Japanese consumption tax amounts and tax-inclusive prices for a given pre-tax amount, returning rate, tax, and floor-rounded variants","exampleAgentPrompt":"What's the Japanese consumption tax on ¥10,000? I need the tax amount and the total price including tax, with the floor-rounded variant too.","exampleUseCases":[{"title":"Invoice tax line calculation","prompt":"I'm generating a Japanese invoice for a client — the pre-tax amount is ¥45,800. Can you calculate the consumption tax and total amount including tax, with the floor-rounded version for accounting?"},{"title":"Retail price tag builder","prompt":"I need to display the tax-inclusive shelf price for a product we're selling in Japan for ¥2,980 before tax. What is the consumption tax and the final price the customer pays?"},{"title":"E-commerce checkout tax display","prompt":"A customer's cart subtotal before tax is ¥67,500. What's the Japanese consumption tax amount and what should we show as the total at checkout, using the floor-rounding rule?"}],"resultDescription":"A JSON object containing the raw tax string, the tax rate as a percentage (e.g. 10), the pre-tax amount, and a variants object with at least a 'floor' rounding mode showing the tax integer and the total tax-inclusive amount.","failureModes":["Missing or invalid amount parameter returns an error","Request without payment header returns HTTP 402 with payment requirements","Malformed PAYMENT-SIGNATURE header causes authentication failure","Amounts with unsupported formats or negative values may return validation errors","Network or worker timeout on the Cloudflare edge returns 5xx"],"whenToPreferThis":"Use this endpoint when you need programmatic, rule-based Japanese consumption tax computation — especially when you require floor-rounding variants for Japanese accounting compliance. Prefer it over generic tax APIs when the specific output format (raw tax string, rate percent, floor-rounded variant) matches your invoicing or e-commerce needs, and when you are already integrating with x402 micropayment flows on Base/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T14:41:29.205Z","isFirstParty":false,"canonicalSlug":"soroban-data-works-japan-consumption-tax-calculator-c089a888"}