# Soroban Data Works – Japan Consumption Tax Calculator

> Soroban Data Works – Japan Consumption Tax Calculator is a paid API for AI agents from soroban.phoenixrefurbtools.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-02).

Calculates Japanese consumption tax amounts and tax-inclusive prices for a given pre-tax amount, returning rate, tax, and floor-rounded variants

## Facts

- Endpoint: GET https://soroban.phoenixrefurbtools.workers.dev/v1/jp/consumption-tax?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/soroban-data-works-japan-consumption-tax-calculator-c089a888
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V_myH8fzzhn7n_VMf1bRy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability soroban-data-works-japan-consumption-tax-calculator-c089a888
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tax_raw": "1000.00",
  "variants": {
   "floor": {
    "tax": 1000,
    "amount_incl_tax": 11000
   }
  },
  "rate_percent": 10,
  "amount_excl_tax": 10000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/soroban-data-works-japan-consumption-tax-calculator-c089a888/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from soroban.phoenixrefurbtools.workers.dev](https://www.zero.xyz/host/soroban.phoenixrefurbtools.workers.dev/llms.txt)
