# WritersLogic Fiscal Period Mapper

> WritersLogic Fiscal Period Mapper is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/fiscal-period?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-fiscal-period-mapper-cf4f59e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cYeDy2WcmMZZuQcynTiGH

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 writerslogic-fiscal-period-mapper-cf4f59e3 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-fiscal-period-mapper-cf4f59e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
