# Delx Commerce — Retention Policy Check

> Delx Commerce — Retention Policy Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Checks whether a given data retention period complies with a specified maximum allowed retention policy, returning compliance status and excess days.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/retention-policy-check?utm_source=zero.xyz
- Price: $0.003/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-retention-policy-check-36319fd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pwhSHl7y70Lxe1CmgNYPf

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-retention-policy-check-36319fd5 -d '<json body>'
```

Example prompt: Check if keeping data for 30 days is compliant when the maximum allowed retention is 14 days, and tell me how far over the limit we are.

## When to prefer this

Choose this endpoint when an AI agent or automated workflow needs to programmatically verify whether a data retention duration falls within a defined policy limit, especially in compliance pipelines, data governance checks, or CI/CD gates. It is lightweight ($0.003/call), requires no signup, and returns a structured, machine-readable result with an actionable recommendation — ideal for agents that need a fast, verifiable compliance signal without building custom logic.

## Known failure modes

- Missing required fields (max_days or retention_days) may result in a validation error or unexpected output
- Non-numeric input values will likely cause a schema validation failure
- Negative values for either field may produce undefined behavior
- Network or payment failure via x402 protocol could prevent the call from completing

## 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 the schema identifier, the input max_days and retention_days values, a boolean 'compliant' flag, the number of 'excess_days' (how many days over the limit), and a 'recommendation' string such as 'reduce_or_document_exception'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max_days": {
   "type": "number",
   "description": "Input field: max_days."
  },
  "retention_days": {
   "type": "number",
   "description": "Input field: retention_days."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-retention-policy-check/v1",
  "max_days": 14,
  "compliant": false,
  "excess_days": 16,
  "recommendation": "reduce_or_document_exception",
  "retention_days": 30
 }
}
```

## More

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