# Delx Commerce — String Ends-With Check

> Delx Commerce — String Ends-With Check 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).

Checks whether a given text string ends with a specified suffix, returning a boolean result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/ends-with?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-string-ends-with-check-2a3c7b07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hsIb_a5cDIJ61glV_erZf

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-string-ends-with-check-2a3c7b07 -d '<json body>'
```

Example prompt: Can you check whether the string 'data/output/results.json' ends with '.json'?

## When to prefer this

Use this endpoint when an AI agent needs a deterministic, pay-per-result string suffix check without managing API keys or subscriptions — ideal for lightweight utility checks in automated pipelines where cost predictability (exactly $0.001 USDC per call) and verifiable delivery matter.

## Known failure modes

- Missing 'text' or 'suffix' field returns a validation error
- Empty string inputs may produce unexpected boolean results
- Payment failure via x402 prevents the call from completing
- Network timeout on the Base/Solana payment settlement

## 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 a boolean 'result' field (true/false indicating whether the text ends with the given suffix), the schema identifier 'delx/util-ends-with/v1', and the suffix that was tested.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": true,
  "schema": "delx/util-ends-with/v1",
  "suffix": ".json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-string-ends-with-check-2a3c7b07/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)
