# Delx Commerce — OpenAPI Path Diff

> Delx Commerce — OpenAPI Path Diff 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).

Compares two OpenAPI paths maps and returns which paths were added, removed, and held in common

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/openapi-path-diff?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-openapi-path-diff-61d7493c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T_AAIospnTMr5ui3Q4pZR

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-openapi-path-diff-61d7493c -d '<json body>'
```

Example prompt: Compare these two OpenAPI path maps and tell me which endpoints were added, which were removed, and how many are shared — here's paths_a with '/users', '/orders', '/products' and paths_b with '/orders', '/products', '/invoices'.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call computation to diff two OpenAPI paths objects without standing up your own tooling or managing subscriptions. Ideal for agents that periodically compare API versions to detect drift, breaking changes, or new capabilities, especially when operating in automated pipelines that benefit from deterministic, verifiable delivery settled in USDC on Base or Solana.

## Known failure modes

- Missing or malformed paths_a or paths_b objects may result in an error or empty diff
- Non-object input (e.g. arrays instead of path maps) may cause unexpected behavior
- Payment failure via x402 will block the request from being processed
- Very large path maps may increase latency or hit size limits

## 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 three fields: 'added' (array of path strings present in paths_b but not paths_a), 'removed' (array of path strings present in paths_a but not paths_b), and 'common_count' (integer count of paths present in both). Also includes a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "paths_a": {
   "type": "object",
   "description": "OpenAPI paths map A"
  },
  "paths_b": {
   "type": "object",
   "description": "OpenAPI paths map B"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "added": [
   "/c"
  ],
  "schema": "delx/util-openapi-path-diff/v1",
  "removed": [
   "/a"
  ],
  "common_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-openapi-path-diff-61d7493c/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)
