# Delx Commerce — Timestamp Bucket Alignment

> Delx Commerce — Timestamp Bucket Alignment 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).

Aligns a list of ISO-8601 UTC timestamps to fixed-width time buckets given a specified interval in seconds

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/timestamp-align?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-timestamp-bucket-alignment-8157f9c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AoYJYxWd6zjrD81eWGZEi

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-timestamp-bucket-alignment-8157f9c8 -d '<json body>'
```

Example prompt: Can you align these timestamps — 2026-08-06T10:01:32Z, 2026-08-06T10:03:45Z, 2026-08-06T10:07:10Z — to the nearest 60-second bucket?

## When to prefer this

Choose this endpoint when you need a quick, stateless, pay-per-call computation to floor or bucket-align a batch of timestamps to uniform intervals — especially in agent workflows where no signup or persistent session is desired and USDC micropayment via x402 is acceptable. Prefer it over writing custom rounding logic when you want a verifiable, consistent result with a defined schema output.

## Known failure modes

- Invalid or malformed ISO-8601 timestamps cause rejection or zero valid_count
- Missing interval_seconds parameter results in an error response
- Non-positive or zero interval_seconds is rejected
- Very large arrays of timestamps may be truncated (truncated: true in response)
- Payment failure via x402 prevents the call from being processed

## 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 'delx/util-timestamp-align/v1', an array of bucket-aligned ISO-8601 UTC timestamps corresponding to each input, the interval_seconds used, the count of valid timestamps processed, and a boolean 'truncated' flag indicating whether any inputs were dropped.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "timestamps": {
   "type": "array",
   "description": "ISO-8601 timestamps to bucket-align in UTC."
  },
  "interval_seconds": {
   "type": "number",
   "description": "Bucket width in seconds."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-timestamp-align/v1",
  "aligned": [
   "2026-08-06T10:00:00Z",
   "2026-08-06T10:00:00Z"
  ],
  "truncated": false,
  "valid_count": 2,
  "interval_seconds": 60
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-timestamp-bucket-alignment-8157f9c8/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)
