# Target Replenishment Quantity – Batch Calculation

> Target Replenishment Quantity – Batch Calculation 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).

Calculates how many units need to be ordered to reach a target inventory level for a batch of SKUs, using supplied retail figures only.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-replenishment-batch?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/target-replenishment-quantity-batch-calculation-bfbed6af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EH-OHQGVhjNBFye7CUP-L

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-batch-calculation-bfbed6af -d '<json body>'
```

Example prompt: Can you calculate how many units I need to order for each of my products to hit their targets? I have two SKUs: one with a target of 200 units and current inventory of 120, and another targeting 220 units with 132 on hand.

## When to prefer this

Choose this endpoint when you need to compute reorder quantities for multiple SKUs in a single call using known target and current inventory figures, without needing live inventory lookups, order execution, or platform fee data. Ideal for local scenario analysis, planning spreadsheets, or agent workflows where retail replenishment math needs to be automated in bulk.

## Known failure modes

- Rows array empty or missing — validation error
- Row missing required fields target_units or inventory_position — validation error
- Values outside allowed range (negative target, extreme numbers) — validation error
- More than 200 rows submitted — batch size limit exceeded
- Malformed JSON body — parse error

## How this service works

Target replenishment quantity - Batch calculation: Batch calculation 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 batch calculation deliverable.

## Output

A batch of computed replenishment quantities — one per input row — indicating how many units must be ordered to bring inventory position up to the target level, based purely on the supplied figures (no live inventory or platform data).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "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
   },
   "default": [
    {
     "target_units": 200,
     "inventory_position": 120
    },
    {
     "target_units": 220.00000000000003,
     "inventory_position": 132
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/target-replenishment-quantity-batch-calculation-bfbed6af/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)
