# Delx Commerce — CSV Rename Columns

> Delx Commerce — CSV Rename Columns 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).

Renames columns in a CSV string according to a provided old-to-new column name mapping, returning the transformed CSV with updated headers.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/csv-rename-columns?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-csv-rename-columns-45f975fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BjBxNDkJ6Cehmz3YXNocm

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-csv-rename-columns-45f975fd -d '<json body>'
```

Example prompt: I have a CSV with columns 'fname' and 'user_id' and I need to rename them to 'firstName' and 'id' respectively — can you apply that column mapping and give me back the updated CSV?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use, no-signup CSV column renaming operation with verifiable in-memory processing and no data retention. Ideal for agents that handle CSV transformation tasks programmatically and require cryptographic evidence of processing. Prefer this over general-purpose data transformation tools when you need a minimal, auditable, single-purpose utility with micro-payment pricing via USDC on Base or Solana.

## Known failure modes

- Column name not found in CSV header row — mapping key doesn't match any existing column
- CSV text is malformed or not valid CSV format
- Input text exceeds 8192 character limit
- Mapping object exceeds 128 property limit
- Payment not received or insufficient USDC balance via x402 protocol

## 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 containing the transformed CSV string with renamed headers (result.csv), the list of new header names (result.headers), a status field ('pass'), and a verifiable evidence block with input hash, retention flag (false), and external call count (0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Rename Columns; used only for this bounded calculation and processed in memory without retention."
  },
  "mapping": {
   "type": "object",
   "description": "Mapping supplied to CSV Rename Columns; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "csv": "firstName,id\nAda,1",
   "headers": [
    "firstName",
    "id"
   ]
  },
  "schema": "delx/util-csv-rename-columns/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "ce661e0e0fda1bc758af27bedb3db0d1e9c03431eb63697fd9ce351321ade546",
   "external_calls": 0
  },
  "operation": "data_batch:csv_rename_columns"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-csv-rename-columns-45f975fd/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)
