# Delx Commerce FX Amount Converter

> Delx Commerce FX Amount Converter is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts a monetary amount from one currency to another using a caller-supplied exchange rate, returning the converted value with 6-decimal precision.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/fx-convert-amount?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-fx-amount-converter-ff956d89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6hz3nDiSBBwoB_1h20nPQ

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 delx-commerce-fx-amount-converter-ff956d89 -d '<json body>'
```

Example prompt: Convert 100 USD to BRL using an exchange rate of 5.2 — multiply the amount by the rate and give me the result in 6-decimal precision.

## When to prefer this

Use this endpoint when you already have an exchange rate from another source and simply need a reliable, verifiable computation to apply it to an amount. It is ideal for agentic workflows where rate fetching and amount conversion are decoupled steps, or when you need 6-decimal-precision output for financial record-keeping without the latency or cost of a live FX feed integration.

## Known failure modes

- Missing required fields (base, quote, amount, rate, side) result in a validation error
- Invalid side value (anything other than 'multiply' or 'divide') may cause unexpected results
- Providing a rate of 0 would cause a division-by-zero error for the 'divide' side
- Non-integer amount values may be rejected or truncated
- Incorrect currency codes are accepted but not validated against real-world pairs

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with ok:true, the base and quote currency codes, the rate and side used, the original amount, the converted amount as a number, a decimals field (6), and a schema identifier string. The caller supplies the rate; this endpoint does not fetch live FX data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "Input field: base."
  },
  "rate": {
   "type": "number",
   "description": "Input field: rate."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "quote": {
   "type": "string",
   "description": "Input field: quote."
  },
  "amount": {
   "type": "integer",
   "description": "Input field: amount."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "base": "USD",
  "note": "Caller supplies rate; not a live FX feed",
  "rate": 5.2,
  "side": "multiply",
  "quote": "BRL",
  "amount": 100,
  "schema": "delx/util-fx-convert-amount/v1",
  "decimals": 6,
  "converted": 520
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-fx-amount-converter-ff956d89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
