# Delx Commerce — X402 Resource Match

> Delx Commerce — X402 Resource Match 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-02).

Verifies whether an actual X402 resource URL matches an expected resource URL, returning a verifiable pass/fail result with cryptographic evidence.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/x402-resource-match?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-x402-resource-match-d10acbf4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6aTjY051DYSUfeayw6hNA

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-x402-resource-match-d10acbf4 -d '<json body>'
```

Example prompt: Check if the X402 resource I received — https://api.delx.ai/x402/utility/example — matches the expected resource https://api.delx.ai/x402/utility/example, and give me a verifiable pass/fail result.

## When to prefer this

Use this endpoint when you need a verifiable, auditable, cryptographically-evidenced check that a resource URL delivered via an x402 payment matches the resource URL that was originally contracted — especially in autonomous agent workflows where delivery accountability matters. Prefer this over naive string comparison when you need an evidence trail (SHA256 hash, no-retention proof) for compliance or dispute resolution in x402-based commerce.

## Known failure modes

- Mismatched URLs return matched:false with status 'fail' rather than an error
- Inputs exceeding 8192 characters may be rejected
- Malformed or non-URL strings may produce unexpected comparison results
- Missing required fields (expected or resource) will result in a validation error

## 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 a boolean 'matched' field, the actual and expected URLs, a pass/fail status, and an evidence block containing a SHA256 hash of the input and confirmation that no data was retained and no external calls were made. Follows the delx/util-x402-resource-match/v1 schema.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expected": {
   "type": "string",
   "maxLength": 8192,
   "description": "Expected supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."
  },
  "resource": {
   "type": "string",
   "maxLength": 8192,
   "description": "Resource supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "actual": "https://api.delx.ai/x402/utility/example",
   "matched": true,
   "expected": "https://api.delx.ai/x402/utility/example"
  },
  "schema": "delx/util-x402-resource-match/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f15a00a5d5428ddfc6587bd6dabe4c7782ccded313974b1a96a3d99acfec7a90",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_resource_match"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-x402-resource-match-d10acbf4/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)
