# Agent Rest Stop – FeeAdd

> Agent Rest Stop – FeeAdd is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Calculates a fee amount in USD by applying a basis-point rate to a subtotal, rounding to the nearest cent.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/FeeAdd?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-feeadd-3c8058a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wmyN1FKo6xMNtMpyNtqsE

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 agent-rest-stop-feeadd-3c8058a9 -d '<json body>'
```

Example prompt: Calculate the fee for a $150.00 subtotal with a 75 basis point fee — I need the dollar amount to the cent so I can show it on the invoice.

## When to prefer this

Use this endpoint when you need a server-side, authoritative basis-point fee calculation rounded to the cent — especially within an agent pipeline that handles financial amounts and cannot rely on floating-point arithmetic in the client. Prefer it over local computation when you want a consistent, auditable fee figure or when integrating with the broader Agent Gas Station toolchain for payment flows.

## Known failure modes

- Non-numeric or missing fee_bps causes a validation error
- Non-numeric or missing subtotal_usd causes a validation error
- Negative or zero values may produce unexpected results
- Network or worker timeout if the edge function is unavailable

## How this service works

Adds a fee in basis points, to the cent.

## Output

Returns the computed fee amount in USD (to the cent) derived from applying the given basis-point rate to the provided subtotal. The response allows an agent to display, log, or incorporate the fee into a total charge without performing the arithmetic locally.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fee_bps": {
   "type": "string"
  },
  "subtotal_usd": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-feeadd-3c8058a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
