Subscription Renewal Cohort
Group subscription records by renewal month and distinguish active, paused and expiring access through a stated month.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /subscription-renewal-cohort/v1/check with an x402 V2 client.
Worked example
Request
{
"through_month": "2027-03",
"subscriptions": [
{
"id": "a",
"renewal_month": "2027-02",
"status": "active"
},
{
"id": "b",
"renewal_month": "2027-02",
"status": "expires"
},
{
"id": "c",
"renewal_month": "2027-04",
"status": "paused"
}
]
}Result
{
"months": [
{
"month": "2027-02",
"renewals": [
"a"
],
"expiring": [
"b"
],
"paused": []
}
],
"later": [
"c"
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter