# Target Replenishment Quantity – Before and After Comparison

> Target Replenishment Quantity – Before and After Comparison 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-12).

Computes and compares target replenishment quantity before and after a change in target units and inventory position, returning a structured delta analysis.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-replenishment-compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/target-replenishment-quantity-before-and-after-comparison-f86c9b73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bLoHFS8TUGoQNUB0Y4TJk

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 target-replenishment-quantity-before-and-after-comparison-f86c9b73 -d '<json body>'
```

Example prompt: Compare my target replenishment quantity before and after a change: before, my target units were 200 and inventory position was 120; after, target units are 220 and inventory position is 132 — show me the difference.

## When to prefer this

Choose this endpoint when you need a quick, local calculation comparing how a change in target units or inventory position affects the required replenishment quantity — ideal for scenario modeling and change impact analysis without needing live inventory system access, platform integration, or order execution capabilities.

## Known failure modes

- Missing required fields (target_units or inventory_position) in either before or after object returns a validation error
- Values outside allowed bounds (target_units > 1,000,000,000,000 or inventory_position outside ±1,000,000,000,000) are rejected
- Malformed JSON body returns a 400-level error
- Payment not included or insufficient USDC results in a 402 Payment Required response

## How this service works

Target replenishment quantity - Before and after comparison: Before and after comparison for Target replenishment quantity. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded before and after comparison deliverable.

## Output

Returns a structured before-and-after comparison object showing the calculated target replenishment quantity for both the 'before' and 'after' scenarios (derived from target_units minus inventory_position), plus the delta between them, enabling quick assessment of how a change in target units or inventory position affects the required replenishment order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "target_units": 220.00000000000003,
    "inventory_position": 132
   },
   "required": [
    "target_units",
    "inventory_position"
   ],
   "properties": {
    "target_units": {
     "type": "number",
     "default": 200,
     "maximum": 1000000000000,
     "minimum": 0
    },
    "inventory_position": {
     "type": "number",
     "default": 120,
     "maximum": 1000000000000,
     "minimum": -1000000000000
    }
   },
   "additionalProperties": false
  },
  "before": {
   "type": "object",
   "default": {
    "target_units": 200,
    "inventory_position": 120
   },
   "required": [
    "target_units",
    "inventory_position"
   ],
   "properties": {
    "target_units": {
     "type": "number",
     "default": 200,
     "maximum": 1000000000000,
     "minimum": 0
    },
    "inventory_position": {
     "type": "number",
     "default": 120,
     "maximum": 1000000000000,
     "minimum": -1000000000000
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/target-replenishment-quantity-before-and-after-comparison-f86c9b73/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)
