# Subscription Billing Credits Two-Measure Correlation

> Subscription Billing Credits Two-Measure Correlation 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).

Computes a two-measure Pearson/rank correlation between invoiced_amount and credited_amount across subscription billing credit records, returning a bounded local analytics report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-billing-credits-correlation?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/subscription-billing-credits-two-measure-correlation-01c90ac5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gr0kfW4cYC21FMlPy5AUP

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 subscription-billing-credits-two-measure-correlation-01c90ac5 -d '<json body>'
```

Example prompt: Can you run a two-measure correlation report on my subscription billing credits data to see how strongly credited amounts relate to invoiced amounts? I have about 50 records with fields for row_id, provider, date, invoiced_amount, and credited_amount.

## When to prefer this

Choose this endpoint when you need a fast, lightweight, local statistical correlation between exactly two numeric billing measures (invoiced vs credited amounts) on a small-to-medium dataset (up to 200 rows) without needing forecasting, enrichment, or external data. It is purpose-built for subscription billing credit analytics and is cost-effective at $0.01 USDC per report.

## Known failure modes

- Fewer than 1 row submitted returns a validation error
- More than 200 rows submitted exceeds the maxItems limit and is rejected
- Missing required fields (row_id, provider, date, invoiced_amount, credited_amount) cause schema validation failure
- Null values in both measure columns for all rows may result in an undefined or degenerate correlation
- Malformed date strings not matching YYYY-MM-DD pattern are rejected
- Amounts outside the ±1,000,000,000,000 bounds are rejected

## How this service works

Subscription billing credits - Two-measure correlation: Two-measure correlation for Subscription billing credits. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded two-measure correlation report.

## Output

A bounded two-measure correlation report containing the correlation coefficient between invoiced_amount and credited_amount across the supplied records, along with supporting descriptive statistics. The report is local (no external enrichment or forecasting) and covers up to 200 input rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "provider",
     "date",
     "invoiced_amount",
     "credited_amount"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "provider": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "credited_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "invoiced_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "provider": "group-a",
     "credited_amount": 1,
     "invoiced_amount": 10
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "provider": "group-b",
     "credited_amount": 2,
     "invoiced_amount": 20
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "provider": "group-a",
     "credited_amount": 3,
     "invoiced_amount": 15
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "provider": "group-b",
     "credited_amount": 4,
     "invoiced_amount": 30
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/subscription-billing-credits-two-measure-correlation-01c90ac5/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)
