# Delx Commerce X402 Accepts Rank

> Delx Commerce X402 Accepts Rank 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).

Ranks and selects the best payment option from an array of x402 'accepts' objects based on preferred assets and networks

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/x402-accepts-rank?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-accepts-rank-8bde4ddd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hdLr_COY1_ryv9Uh9imFb

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-accepts-rank-8bde4ddd -d '<json body>'
```

Example prompt: I have an x402 accepts list from a server response — can you rank those options and pick the best one, preferring USDC on the Base network (eip155:8453)?

## When to prefer this

Use this endpoint when an AI agent receives an x402 payment challenge with multiple accept options and needs to deterministically select the best payment method based on asset and network preferences. Ideal for agents operating in multi-chain environments who need to resolve payment routing without hardcoding logic. Prefer this over manual filtering when the accepts list is dynamic or comes from an untrusted server response.

## Known failure modes

- Empty or malformed accepts array returns no ranked results
- Unsupported network or asset identifiers may result in no selection
- Exceeding 256 items in accepts or preferred arrays may cause rejection
- Invalid object structure within accepts items may cause computation failure

## 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 ranked array of payment options (each with asset, amount, and network) plus a single selected best option. Also includes evidence metadata confirming no data was retained and no external calls were made, along with a schema version and operation identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "accepts": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 128,
    "additionalProperties": true
   },
   "maxItems": 256,
   "description": "Accepts supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."
  },
  "preferred_assets": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Preferred Assets supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."
  },
  "preferred_networks": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Preferred Networks supplied to X402 Accepts Rank; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "ranked": [
    {
     "asset": "USDC",
     "amount": "1000",
     "network": "eip155:8453"
    },
    {
     "asset": "USDC",
     "amount": "1000",
     "network": "eip155:1"
    }
   ],
   "selected": {
    "asset": "USDC",
    "amount": "1000",
    "network": "eip155:8453"
   }
  },
  "schema": "delx/util-x402-accepts-rank/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "68f07fccda032de91280d8721b0b24830cc41f95e6d3cac4b3f05a715109a84b",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_accepts_rank"
 }
}
```

## More

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