# Pricing Math – Tax Split

> Pricing Math – Tax Split is a paid API for AI agents from pricing-math.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Splits a tax-inclusive (gross) price into net and tax amounts, or adds tax to a net price, given a user-supplied tax rate percentage.

## Facts

- Endpoint: GET https://pricing-math.x402tookit.com/tax-split?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pricing-math-tax-split-c98d81ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oiymwuKf1jvbX0cNtVCgZ

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 pricing-math-tax-split-c98d81ec
```

Example prompt: Split £119.99 into its net price and VAT amount — the price already includes VAT at 20%.

## When to prefer this

Use this endpoint when you need a fast, deterministic computation to split a tax-inclusive gross amount into net and tax, or to add a known tax rate to a net price. It requires you to supply the tax rate yourself (no built-in rate lookup), making it ideal when you already know the applicable VAT or sales tax rate and just need the arithmetic done reliably. Prefer this over a full tax-rate-lookup service when you have the rate in hand and only need the math.

## Known failure modes

- Missing required 'amount' or 'ratePct' query parameters returns an error
- Non-numeric or negative values for amount or ratePct may cause validation errors
- Extremely large or small ratePct values (e.g. 0% or >100%) may return unexpected results
- Payment failure ($0.02 USDC) via x402 protocol will block the request
- Invalid 'mode' value (not 'inclusive' or 'exclusive') may default to inclusive or return an error

## How this service works

Split a tax-inclusive price into net and tax, or add tax to a net price, for a sales tax or VAT rate you supply.

## Output

Returns netAmount, taxAmount, and grossAmount as numbers, along with the ratePct and mode used, plus a plain-English summary. All monetary values are rounded to standard decimal precision. The response also includes a disclaimer and any degraded/error flags.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "amount",
      "ratePct"
     ],
     "properties": {
      "mode": {
       "type": "string",
       "description": "inclusive (default: amount already includes tax) or exclusive (amount is the net price)"
      },
      "amount": {
       "type": "number",
       "description": "The amount to split or grow"
      },
      "ratePct": {
       "type": "number",
       "description": "Tax rate percent (you supply it; none is built in)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "mode": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "ratePct": {
       "type": [
        "null",
        "number"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "netAmount": {
       "type": [
        "null",
        "number"
       ]
      },
      "taxAmount": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "grossAmount": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pricing-math-tax-split-c98d81ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pricing-math.x402tookit.com](https://www.zero.xyz/host/pricing-math.x402tookit.com/llms.txt)
