# Delx Commerce Card Mask

> Delx Commerce Card Mask 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).

Masks a credit/debit card number, returning only the last 4 digits with the rest replaced by asterisks

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/card-mask?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-card-mask-bcc62784
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XPcVSylbf1lP9ssNwa3dZ

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-card-mask-bcc62784 -d '<json body>'
```

Example prompt: Can you mask this card number so only the last 4 digits are visible? The number is 4111111111111111.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use card masking utility with no signup or subscription required, especially in agent workflows that handle payment card data and need PCI-friendly display formatting. Ideal when you need deterministic, verifiable output at minimal cost ($0.001 USDC per call) without provisioning your own masking logic.

## Known failure modes

- Invalid or non-numeric card number input returns an error
- Malformed request body causes a 400 response
- Payment not received via x402 protocol results in 402 Payment Required
- Card number too short to produce a valid last-4 result

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the last 4 digits of the card number (`last4`) and a fully masked string (`masked`) where all digits except the last 4 are replaced with asterisks, plus a schema identifier `delx/util-card-mask/v1`.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "last4": "1111",
  "masked": "************1111",
  "schema": "delx/util-card-mask/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-card-mask-bcc62784/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)
