---
title: "POST /financialYear/id/{id}/generatePeriods"
method: POST
path: "/financialYear/id/{id}/generatePeriods"
tags: ["financialYear"]
---

# POST /financialYear/id/{id}/generatePeriods

`POST /financialYear/id/{id}/generatePeriods`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/financialYear/id/{id}/generatePeriods`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/financialYear/id/:id/generatePeriods/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

generatePeriods response

- object
  - `result` FinancialYear
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `name` string, required
    - `periods` Period[]
      - `id` string
      - `version` string
      - `createdDate` integer
      - `financialYearId` string, required
      - `lastModifiedDate` integer
      - `name` string, required
      - `open` boolean
      - `periodNumber` integer, required
      - `validFrom` integer
      - `validTo` integer
    - `status` 'CLOSED' | 'CURRENT' | 'PLANNED' | 'PRELIMINARY_CLOSED', required
    - `validFrom` integer
    - `validTo` integer

## Other responses

- `default`: error response

## Changes

- **2022-12-03** `cc274ef79dfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/financialYear/id/:id/generatePeriods/post.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
