# Target Replenishment Quantity – Target Gap Calculation

> Target Replenishment Quantity – Target Gap 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-18).

Calculates the gap between target replenishment units and current inventory position to determine how much stock needs to be ordered.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-replenishment-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/target-replenishment-quantity-target-gap-calculation-cfc6a1b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TFssOqyLCVF2YOgO9lCLX

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-target-gap-calculation-cfc6a1b1 -d '<json body>'
```

Example prompt: I have a target of 200 units and my current inventory position is 120 units — can you calculate the replenishment gap I need to close?

## When to prefer this

Use this endpoint when you need a fast, local computation of the replenishment gap between a target stock level and current inventory position for retail planning or scenario analysis. It is ideal for lightweight, offline-style gap calculations where no live inventory system, account access, or order execution is needed. Prefer it over full inventory management APIs when you only need a single bounded calculation at minimal cost ($0.01 USDC).

## Known failure modes

- Missing required fields (target_units or inventory_position) returns a validation error
- Values outside allowed numeric range (target_units > 1,000,000,000,000 or inventory_position outside ±1,000,000,000,000) are rejected
- Non-numeric inputs for numeric fields cause schema validation failures
- Payment failure (insufficient USDC balance or x402 protocol error) blocks the request

## How this service works

Target replenishment quantity - Target gap calculation: Target gap 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 target gap calculation deliverable.

## Output

Returns a bounded target gap calculation representing the difference between the specified target units and current inventory position, indicating the quantity needed for replenishment. Output is a local calculation based solely on supplied retail figures with no live inventory or platform data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "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-target-gap-calculation-cfc6a1b1/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)
