{"partialResults":false,"resources":[{"accepts":[{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x7eC21Ee3AA308D2cbB8c65ef0E89af2a30101656","scheme":"exact"}],"description":"Date Math: Subscription and contract date math: current billing period, next renewal, upcoming renewals, cancel-by date for a notice period, free-trial start, and day-based proration of a price. Month-end anchors stay at month end (Jan 31, Feb 28, Mar 31). Use for SaaS billing, renewals, cancellation deadlines and refunds.","extensions":{"bazaar":{"info":{"input":{"body":{"amount":30,"as_of":"2026-03-10","interval":"month","notice_days":7,"start":"2026-01-31"},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"as_of":"2026-03-10","billing_start":"2026-01-31","cancel_by":"2026-03-24","cancel_by_passed":false,"current_period":{"days":31,"days_elapsed":10,"days_remaining":21,"end":"2026-03-30","number":2,"start":"2026-02-28"},"interval":"month","interval_count":1,"next_renewal":"2026-03-31","next_renewal_weekday":"Tuesday","note":"Renewals are measured from the first billing date, so month-end anchors stay at month end (Jan 31 -\u003e Feb 28 -\u003e Mar 31). Proration is by whole days as of the start of as_of.","proration":{"amount":30,"daily_rate":0.967742,"ratio_unused":0.677419,"unused":20.32,"used":9.68},"start":"2026-01-31","status":"active","upcoming_renewals":["2026-03-31"]},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"amount":{"description":"Price of one billing period, for proration","minimum":0,"type":"number"},"as_of":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"count":{"default":3,"description":"Upcoming renewals to list","maximum":24,"minimum":1,"type":"integer"},"interval":{"default":"month","enum":["day","week","month","year"],"type":"string"},"interval_count":{"default":1,"description":"e.g. 3 with month = quarterly","maximum":365,"minimum":1,"type":"integer"},"notice_days":{"description":"Cancellation notice period before renewal","maximum":365,"minimum":0,"type":"integer"},"start":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"trial_days":{"description":"Free trial length; billing starts after it","maximum":730,"minimum":0,"type":"integer"}},"required":["start"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"as_of":{"type":"string"},"billing_start":{"type":"string"},"cancel_by":{"description":"Last day to cancel before the next renewal, given notice_days","type":["string","null"]},"cancel_by_passed":{"type":["boolean","null"]},"current_period":{"properties":{"days":{"type":"integer"},"days_elapsed":{"type":"integer"},"days_remaining":{"type":"integer"},"end":{"description":"Last day of the period (inclusive)","type":"string"},"number":{"type":"integer"},"start":{"type":"string"}},"required":["number","start","end","days","days_elapsed","days_remaining"],"type":["object","null"]},"interval":{"type":"string"},"interval_count":{"type":"integer"},"next_renewal":{"type":"string"},"next_renewal_weekday":{"type":"string"},"note":{"type":"string"},"proration":{"properties":{"amount":{"type":"number"},"daily_rate":{"type":"number"},"ratio_unused":{"type":"number"},"unused":{"type":"number"},"used":{"type":"number"}},"required":["amount","daily_rate","used","unused","ratio_unused"],"type":["object","null"]},"start":{"type":"string"},"status":{"enum":["not_started","trial","active"],"type":"string"},"upcoming_renewals":{"items":{"type":"string"},"type":"array"}},"required":["start","billing_start","interval","interval_count","as_of","status","current_period","next_renewal","next_renewal_weekday","cancel_by","cancel_by_passed","upcoming_renewals","proration","note"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"iconUrl":"https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1794226386/bazaar-icons/53a3e11863560f54.png","lastUpdated":"2026-11-17T16:21:15.303Z","quality":{"l30DaysTotalCalls":3,"l30DaysUniquePayers":2,"lastCalledAt":"2026-11-17T16:21:14.998Z"},"resource":"https://date-math.datemath.workers.dev/v1/subscription","serviceName":"Date Math","tags":["subscription billing dates","renewal date","billing cycle","trial end date","proration"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"cktm535otbaa4aa"}}
