# Shipment Costs Adjacent Row Changes

> Shipment Costs Adjacent Row Changes is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Computes row-to-row (period-over-period) changes in shipment cost or weight data across an ordered sequence of up to 200 shipment records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-shipment-costs-period-change?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shipment-costs-adjacent-row-changes-7e4a0a44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-VQHs6ZGgeJqwTYnZkDMM

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 shipment-costs-adjacent-row-changes-7e4a0a44 -d '<json body>'
```

Example prompt: Calculate the adjacent row changes in shipping_cost for these 4 shipment records: row-1 carrier group-a date 2026-10-01 weight 10 cost 100, row-2 carrier group-b date 2026-10-02 weight 20 cost 150, row-3 carrier group-a date 2026-10-03 weight 15 cost 130, row-4 carrier group-b date 2026-10-04 weight 30 cost 200.

## When to prefer this

Choose this endpoint when you have an ordered sequence of shipment records (up to 200) and need fast, local period-over-period delta calculations on weight or shipping cost fields — no external API calls, forecasting, or enrichment needed. Ideal for lightweight logistics analytics, sequential cost auditing, or building trend reports from structured shipment data.

## Known failure modes

- Fewer than 1 row submitted returns an error or empty result
- More than 200 rows submitted exceeds the maxItems limit
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Missing required fields (row_id, carrier, date, weight_kg, shipping_cost) cause rejection
- Non-numeric values in weight_kg or shipping_cost where number is expected
- Field enum value other than 'weight_kg' or 'shipping_cost' causes validation error

## How this service works

Shipment costs - Adjacent row changes: Adjacent row changes for Shipment costs. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded adjacent row changes deliverable.

## Output

Returns computed adjacent row change values for the selected numeric field (weight_kg or shipping_cost) across the submitted sequence of shipment records — showing the delta between each row and its predecessor, processed locally without external enrichment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "carrier",
     "date",
     "weight_kg",
     "shipping_cost"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "carrier": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "weight_kg": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "shipping_cost": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "carrier": "group-a",
     "weight_kg": 10,
     "shipping_cost": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "carrier": "group-b",
     "weight_kg": 20,
     "shipping_cost": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "carrier": "group-a",
     "weight_kg": 15,
     "shipping_cost": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "carrier": "group-b",
     "weight_kg": 30,
     "shipping_cost": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "weight_kg",
    "shipping_cost"
   ],
   "type": "string",
   "default": "weight_kg"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shipment-costs-adjacent-row-changes-7e4a0a44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
