# Gross Margin Sequential Input-Change Attribution Calculator

> Gross Margin Sequential Input-Change Attribution Calculator 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-23).

Computes a sequential (waterfall) attribution of gross margin changes by stepping through each input (revenue, gross profit) from baseline to final values in declared field order, isolating the incremental effect of each change.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-gross-margin-waterfall?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gross-margin-sequential-input-change-attribution-calculator-d1dfb6b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B_esG-IBCcv-TcwUk0wJv

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-sequential-input-change-attribution-calculator-d1dfb6b1 -d '<json body>'
```

Example prompt: Run a sequential gross margin attribution report comparing baseline revenue of $10,000 and gross profit of $2,000 against final revenue of $11,000 and gross profit of $2,200 — I want to see how each input change contributed step by step to the overall margin shift.

## When to prefer this

Choose this endpoint when you need an order-dependent, sequential (waterfall/bridge) decomposition of gross margin changes between two periods — specifically isolating the incremental effect of changing revenue first, then gross profit, in declared field order. Prefer this over a parallel or simultaneous attribution when the sequential pathway of change matters for reporting or presentation, such as board-level bridge charts or variance memos. It works exclusively on user-supplied figures and does not require live market data.

## Known failure modes

- Missing required fields (revenue or gross_profit in before/after objects) returns validation error
- Revenue values of zero or negative rejected due to exclusiveMinimum constraint
- Gross profit values exceeding ±$1,000,000,000,000 or revenue exceeding $1,000,000,000,000 rejected
- Payment of 0.01 USDC not completed or x402 auth missing returns 402 Payment Required
- Malformed JSON body returns 400 error

## How this service works

Gross margin - Sequential input-change attribution: Change each input from baseline to final in declared field order, reporting each incremental effect; order dependent. Metric: Gross margin. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded sequential input-change attribution report.

## Output

A JSON report containing the formula used, units, and a step-by-step sequential attribution of gross margin changes — each input (revenue, then gross profit in declared field order) is changed from its baseline to final value one at a time, with the incremental gross margin effect of each step reported along with overall limitations of the order-dependent analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "revenue": 11000,
    "gross_profit": 2200
   },
   "required": [
    "gross_profit",
    "revenue"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period",
     "exclusiveMinimum": 0
    },
    "gross_profit": {
     "type": "number",
     "default": 2000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  },
  "before": {
   "type": "object",
   "default": {
    "revenue": 10000,
    "gross_profit": 2000
   },
   "required": [
    "gross_profit",
    "revenue"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period",
     "exclusiveMinimum": 0
    },
    "gross_profit": {
     "type": "number",
     "default": 2000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-margin-sequential-input-change-attribution-calculator-d1dfb6b1/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)
