{"uid":"cap_cYeDy2WcmMZZuQcynTiGH","slug":"writerslogic-fiscal-period-mapper-cf4f59e3","name":"WritersLogic Fiscal Period Mapper","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/fiscal-period?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"enum":["month-aligned","52-53-week"],"type":"string"},"items":{"type":"array","items":{"type":"object","required":["date"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"claimedPeriod":{"type":"integer","maximum":12,"minimum":1},"claimedQuarter":{"type":"integer","maximum":4,"minimum":1},"claimedFiscalYear":{"type":"integer","maximum":3000,"minimum":1000}}},"maxItems":100,"minItems":1},"endRule":{"enum":["last","closest"],"type":"string","description":"52-53-week: last endWeekday in endMonth, or the endWeekday closest to endMonth's last day."},"pattern":{"enum":["4-4-5","4-5-4","5-4-4"],"type":"string","description":"52-53-week: weeks per period within each quarter."},"endMonth":{"type":"integer","maximum":12,"minimum":1,"description":"52-53-week: month near whose end the year ends."},"yearLabel":{"enum":["start","end"],"type":"string","description":"start: the fiscal year is named for the calendar year it begins in. end: for the calendar year it ends in (US federal FY2027 begins 2026-10-01)."},"endWeekday":{"type":"integer","maximum":6,"minimum":0,"description":"52-53-week: weekday the year ends on, 0=Sunday."},"startMonth":{"type":"integer","maximum":12,"minimum":1,"description":"month-aligned: month in which the fiscal year starts, on day 1."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mm3cBM3NuiN6AZMZRV_1G","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Maps up to 100 dates to fiscal year, quarter, period, and week numbers for a caller-defined month-aligned or 52/53-week fiscal calendar.","exampleAgentPrompt":"Map these three dates — 2024-01-15, 2024-04-01, and 2024-11-30 — to their fiscal quarter and period using a 4-4-5 week pattern where the fiscal year ends on the last Saturday of January, labeled by the year the fiscal year ends in.","exampleUseCases":[{"title":"Retail 4-4-5 fiscal period lookup","prompt":"I need to know which fiscal quarter and period these sale dates fall into: 2025-02-01, 2025-03-15, and 2025-05-10. We use a 52/53-week retail calendar with a 4-4-5 pattern ending on the last Saturday of January, and fiscal years are labeled by the year they end in."},{"title":"Month-aligned fiscal year validation","prompt":"Can you check whether 2024-10-15 really belongs to fiscal year 2025, quarter 1, period 1? Our fiscal year starts on October 1st and is labeled by the year it ends in."},{"title":"53-week year detection for planning","prompt":"Tell me which of these dates land in a 53-week fiscal year: 2023-01-28, 2024-01-27, 2025-02-01. We use a 4-5-4 pattern ending on the Saturday closest to the end of January, fiscal year labeled by its ending calendar year."}],"resultDescription":"For each submitted date, the endpoint returns the fiscal year number, fiscal quarter (1–4), fiscal period (1–12 or 1–13), fiscal week number, and whether the fiscal year is a 53-week year. If claimed values (fiscal year, quarter, period) were provided, it also returns a validation result indicating whether the assertion is correct.","failureModes":["Missing required yearLabel field causes rejection — caller must specify 'start' or 'end'","52-53-week calendar requires endWeekday, endMonth, endRule, and pattern — omitting any causes an error","Dates outside a reasonable range or malformed (not YYYY-MM-DD) return validation errors","More than 100 dates in a single request exceeds the maxItems limit and is rejected","Ambiguous calendar type (neither 'month-aligned' nor '52-53-week') results in a schema validation error","Payment failure via x402 protocol returns 402 with no data"],"whenToPreferThis":"Choose this endpoint when an agent needs to programmatically map calendar dates to fiscal periods for any custom fiscal calendar — either a simple month-aligned year or a retail-style 52/53-week year. It is especially valuable for financial reporting automation, retail operations, or auditing workflows where dates must be validated against asserted fiscal positions. It is not appropriate when you already know the company's fiscal calendar parameters cannot be expressed as a month-aligned or 52/53-week structure, or when you need a pre-loaded company-specific calendar.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:14.417Z","isFirstParty":false,"canonicalSlug":"writerslogic-fiscal-period-mapper-cf4f59e3"}