# Gross Profit Sequential Input-Change Attribution Calculator

> Gross Profit 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-11-01).

Decomposes the change in gross profit between two periods by sequentially swapping each input (revenue, cost of sales) from baseline to final values, quantifying each input's incremental contribution in declaration order.

## Facts

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

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

Example prompt: My baseline period had revenue of $10,000 and cost of sales of $6,000, and the final period had revenue of $11,000 and cost of sales of $6,600 — can you do a sequential input-change attribution on my gross profit to show how much each input contributed to the change?

## When to prefer this

Choose this endpoint when you need to understand which specific inputs (revenue vs. cost of sales) drove a change in gross profit between two periods, and you want results expressed as a sequential waterfall where each input is changed one at a time in field-declaration order. It is ideal for building bridge/waterfall charts, preparing variance commentary, or board-level explanations. Prefer it over a simple delta calculation when stakeholders need to see the isolated contribution of each driver. Note that results are order-dependent by design.

## Known failure modes

- Missing required fields (revenue or cost_of_sales in before/after objects) returns a validation error
- Values exceeding ±1,000,000,000,000 or cost_of_sales below 0 are rejected
- Malformed JSON body returns a parse error
- Payment of 0.01 USDC not provided or rejected results in 402 Payment Required
- Identical before and after values return zero attribution for all steps

## How this service works

Gross profit - Sequential input-change attribution: Change each input from baseline to final in declared field order, reporting each incremental effect; order dependent. Metric: Gross profit. 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

Returns a JSON object containing: the gross profit formula, the declared field order used for sequential attribution, an ordered list of attribution steps each showing which input was changed and its incremental effect on gross profit, the units of measurement, and a limitations note about order-dependency of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "revenue": 11000,
    "cost_of_sales": 6600.000000000001
   },
   "required": [
    "revenue",
    "cost_of_sales"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    },
    "cost_of_sales": {
     "type": "number",
     "default": 6000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  },
  "before": {
   "type": "object",
   "default": {
    "revenue": 10000,
    "cost_of_sales": 6000
   },
   "required": [
    "revenue",
    "cost_of_sales"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    },
    "cost_of_sales": {
     "type": "number",
     "default": 6000,
     "maximum": 1000000000000,
     "minimum": 0,
     "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-profit-sequential-input-change-attribution-calculator-aff76f55/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)
