# Agent Delivery Order Check

> Agent Delivery Order Check is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Validates that delivered identifiers match the expected order from caller-supplied lists, returning acceptance/rejection status with mismatch reasons and normalized evidence.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/agent-delivery-order-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-delivery-order-check-b50e95a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bgw_Zas3aPC5nf0XdBnQf

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 agent-delivery-order-check-b50e95a8 -d '<json body>'
```

Example prompt: Before I pay for this agent delivery, check whether the delivered IDs ["task-001", "task-002", "task-003"] match the expected order ["task-001", "task-002", "task-003"] and tell me if I should accept or reject it.

## When to prefer this

Use this endpoint as a deterministic preflight check before accepting or paying for any agent delivery or x402 transaction where identifier ordering matters. It is purpose-built for in-memory, bounded, stateless order validation without external dependencies, making it ideal for agentic workflows that need fast, auditable accept/reject decisions on caller-supplied challenge and result metadata. Prefer this over building custom comparison logic when you need normalized evidence and explicit mismatch reasons for downstream audit trails.

## Known failure modes

- Mismatched array lengths between expected_ids and delivered_ids causing rejection
- IDs present in delivered list but absent from expected list flagged as mismatches
- Out-of-order delivery detected and rejection status returned with specific mismatch reasons
- Input arrays exceeding 256 items or individual ID strings exceeding 8192 characters rejected
- Malformed or missing required fields resulting in validation error

## How this service works

Agent Delivery Order Check: Agent Delivery Order Check checks delivered identifiers against expected order from bounded caller-supplied values without an external provider. Call Agent Delivery Order Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Delivery Order Check as versioned determinist…

## Output

Returns an explicit acceptance or rejection status, contract-specific validation checks, normalized evidence derived from the ID comparison, and a list of mismatch reasons explaining any discrepancies between expected and delivered identifier sequences. All processing is in-memory with no data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expected_ids": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Expected Ids supplied to Agent Delivery Order Check; used only for this bounded calculation and processed in memory without retention."
  },
  "delivered_ids": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Delivered Ids supplied to Agent Delivery Order Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "ordered": true,
   "mismatch_indices": []
  },
  "schema": "delx/util-agent-delivery-order-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "a93e772f45da3b48859f4f1c6900055e9082a49385a4800eba45a2117e40c3a3",
   "external_calls": 0
  },
  "operation": "delivery_contract:agent_delivery_order_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-delivery-order-check-b50e95a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
