# Money Agent – Validate x402 Purchase Before Paying

> Money Agent – Validate x402 Purchase Before Paying is a paid API for AI agents from money-agent-b4o0.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Evaluates whether a given x402-gated URL's payment terms fall within the buyer's price policy before committing to payment

## Facts

- Endpoint: POST https://money-agent-b4o0.onrender.com/validate-x402-purchase-before-paying
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/money-agent-validate-x402-purchase-before-paying-f93ff072
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VraNlhVwlcgWM39dcQEJp

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 money-agent-validate-x402-purchase-before-paying-f93ff072 -d '<json body>'
```

Example prompt: Before paying for that x402-gated financial data endpoint at https://money-agent-b4o0.onrender.com/sec-filings, check whether it's within my max price of $0.01 USDC and tell me if I should go ahead and buy.

## When to prefer this

Use this endpoint when an autonomous agent needs a policy gate before committing to any x402 micropayment — especially in agentic pipelines where you want human-defined budget guardrails enforced programmatically before spending USDC. Prefer this over directly paying if you want to avoid overspending on machine-payable APIs or need an auditable pre-authorization step.

## Known failure modes

- URL is unreachable or not an x402 endpoint — unclear payment terms cannot be evaluated
- maxPrice is zero or missing — policy check may default to rejection
- URL returns unexpected or non-402 response — decision may be indeterminate
- Network timeout on the target URL — validation fails with no decision
- Price terms exceed maxPrice — returns a rejection decision with reason

## How this service works

Machine-payable financial data and autonomous-agent services over x402.

## Output

Returns a JSON object with a 'decision' field ('BUY' or a rejection indicator) and a 'reason' string explaining whether the payment terms are within the buyer's configured price policy.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  },
  "maxPrice": {
   "type": "number",
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "reason": "Payment terms are within buyer policy.",
  "decision": "BUY"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/money-agent-validate-x402-purchase-before-paying-f93ff072/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from money-agent-b4o0.onrender.com](https://www.zero.xyz/host/money-agent-b4o0.onrender.com/llms.txt)
