{"uid":"cap_Gr0kfW4cYC21FMlPy5AUP","slug":"subscription-billing-credits-two-measure-correlation-01c90ac5","name":"Subscription Billing Credits Two-Measure Correlation","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-ar-analytics-billing-credits-correlation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cZAyIN-uVPFdrZE_AJkQd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a two-measure Pearson/rank correlation between invoiced_amount and credited_amount across subscription billing credit records, returning a bounded local analytics report.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Detect credit-to-invoice scaling pattern","prompt":"I have 80 billing records for my SaaS subscriptions with invoiced and credited amounts across two providers — can you compute whether credits are correlated with invoice size so I can spot if we're over-crediting large accounts?"},{"title":"Quarterly billing audit for finance team","prompt":"Our finance team needs to know if subscription credits issued in Q4 track proportionally with what we billed — can you run a two-measure correlation on these 120 records with dates, provider labels, and both amount columns?"},{"title":"Compare credit behavior across providers","prompt":"I want to check if the relationship between invoiced and credited amounts differs by provider in our billing system — here are 40 rows split between group-a and group-b, can you run the correlation analysis?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:09:14.008Z","isFirstParty":false,"canonicalSlug":"subscription-billing-credits-two-measure-correlation-01c90ac5"}