# Gross Margin Return on Inventory (GMROI) Threshold Classification

> Gross Margin Return on Inventory (GMROI) Threshold Classification 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-19).

Classifies GMROI values as above, below, or within a user-defined threshold range, using supplied gross profit and average inventory cost figures.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-inventory-margin-return-threshold?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gross-margin-return-on-inventory-gmroi-threshold-classification-2217bf6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LNJnrLA15vhu7l2u0pnpZ

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 gross-margin-return-on-inventory-gmroi-threshold-classification-2217bf6f -d '<json body>'
```

Example prompt: I have 4 rows of retail data — gross profits of $5000, $5500, $5000, $5500 and average inventory costs of $2500, $2750, $2500, $2750 — can you classify each one as above, below, or within a GMROI threshold range of 1.5 to 2.5?

## When to prefer this

Choose this endpoint when you need a fast, local GMROI computation with threshold-based classification on batches of retail inventory records (up to 200 rows), without requiring live inventory system access, platform fee lookup, or order execution. Ideal for offline scenario analysis, benchmarking against internal targets, and filtering product lines by margin efficiency.

## Known failure modes

- average_inventory_cost of zero or negative triggers validation error (exclusiveMinimum enforced)
- fewer than 2 rows submitted returns an error
- more than 200 rows exceeds the maxItems limit
- missing required fields gross_profit or average_inventory_cost causes rejection
- lower threshold greater than upper threshold may produce unexpected classification logic

## How this service works

Gross margin return on inventory - Threshold classification: Threshold classification for Gross margin return on inventory. 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 threshold classification deliverable.

## Output

A bounded threshold classification deliverable for each submitted row, indicating whether the computed GMROI (gross profit divided by average inventory cost) falls below the lower threshold, within the range, or above the upper threshold. Returns one classification per input row.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "gross_profit",
     "average_inventory_cost"
    ],
    "properties": {
     "gross_profit": {
      "type": "number",
      "default": 5000,
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "average_inventory_cost": {
      "type": "number",
      "default": 2500,
      "maximum": 1000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "gross_profit": 5000,
     "average_inventory_cost": 2500
    },
    {
     "gross_profit": 5500,
     "average_inventory_cost": 2750
    },
    {
     "gross_profit": 5000,
     "average_inventory_cost": 2500
    },
    {
     "gross_profit": 5500,
     "average_inventory_cost": 2750
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "lower": {
   "type": "number",
   "default": 0,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "upper": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-margin-return-on-inventory-gmroi-threshold-classification-2217bf6f/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)
