# Retail Invoice Total Calculator

> Retail Invoice Total Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Calculates a retail invoice subtotal from line items, applies a user-supplied tax rate, and returns the total amount due.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/invoice-total-retail?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/retail-invoice-total-calculator-c6567694
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E4ACV3oB4HlPTZ59ZV18S

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 retail-invoice-total-calculator-c6567694 -d '<json body>'
```

Example prompt: Can you calculate the invoice total for my retail order — 3 units at $15.99 each and 2 units at $7.50 each, with an 8.5% tax rate?

## When to prefer this

Choose this endpoint when you need a straightforward, retail-specific invoice computation that handles multiple line items with varying quantities and prices, plus a single configurable tax rate. Ideal for point-of-sale agents, e-commerce checkout bots, or invoice automation workflows where you need a reliable subtotal + tax + total breakdown without building the arithmetic yourself.

## Known failure modes

- Missing or malformed items array returns a validation error
- Negative quantities or unit prices may produce incorrect results
- Tax rate provided as a decimal (e.g. 0.08) instead of percentage (e.g. 8) will result in wrong tax calculation
- Empty items array may return zero subtotal without error
- Network or payment failure (402) if USDC balance is insufficient

## How this service works

Retail Invoice total calculator: Calculate a line-item subtotal, user-supplied tax rate, and total. Tailored for retail workflows.

## Output

Returns a computed breakdown including the line-item subtotal (sum of quantity × unit_price across all items), the tax amount derived from applying the provided percentage rate to the subtotal, and the final total (subtotal + tax). Useful for retail checkout flows, invoice generation, and order summaries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "default": [
    {
     "quantity": 2,
     "unit_price": 12.5
    },
    {
     "quantity": 1,
     "unit_price": 8
    }
   ]
  },
  "tax_rate_percent": {
   "type": "number",
   "default": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/retail-invoice-total-calculator-c6567694/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
