# Delx Commerce Price Ceiling Check

> Delx Commerce Price Ceiling Check 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).

Validates whether a given USDC price falls within a specified budget ceiling, optionally applying a buffer percentage, and returns headroom and allowance status.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/price-ceiling-check?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-price-ceiling-check-c7797a92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zUz5qGXlChmV3JMtabnqC

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-price-ceiling-check-c7797a92 -d '<json body>'
```

Example prompt: Before we pay for that API call, check if the price of 0.01 USDC is within my ceiling of 0.05 USDC with a 10% buffer — I want to make sure we're within budget before proceeding.

## When to prefer this

Use this endpoint when an AI agent needs a lightweight, structured pre-flight check before authorizing a micropayment — especially in agentic pipelines where spending must be capped per call. Ideal when you want a verifiable, schema-tagged response that can be logged or audited. Prefer this over ad-hoc arithmetic when you need buffer logic baked in and a clear allowed/disallowed signal that downstream logic can act on without ambiguity.

## Known failure modes

- Missing required fields (price_usdc or ceiling_usdc) may result in validation errors or unexpected null comparisons
- Negative or zero ceiling_usdc could produce nonsensical headroom values
- buffer_pct values above 100 may cause the effective ceiling to drop to zero, always returning disallowed
- Non-numeric inputs for USDC fields will likely cause schema validation failures
- Floating-point precision issues with very small USDC amounts may affect headroom calculations

## 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 indicating whether the price is allowed (boolean), a human-readable status string (e.g. 'within_budget'), the effective ceiling after applying any buffer, and the remaining headroom in USDC. Also echoes back the input price, ceiling, and buffer percentage for verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "buffer_pct": {
   "type": "integer",
   "description": "Input field: buffer pct."
  },
  "price_usdc": {
   "type": "number",
   "description": "Input field: price usdc."
  },
  "ceiling_usdc": {
   "type": "number",
   "description": "Input field: ceiling usdc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "schema": "delx/util-price-ceiling-check/v1",
  "status": "within_budget",
  "allowed": true,
  "buffer_pct": 0,
  "price_usdc": 0.01,
  "ceiling_usdc": 0.02,
  "headroom_usdc": 0.01,
  "effective_ceiling_usdc": 0.02
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-price-ceiling-check-c7797a92/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)
