---
title: "Create a fiscal year"
method: POST
path: "/api/external/firm/v1/companies/{company_id}/fiscal_years"
tags: ["Fiscal years"]
---

# Create a fiscal year

`POST /api/external/firm/v1/companies/{company_id}/fiscal_years`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/firm/v1/companies/{company_id}/fiscal_years`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `fiscal_years:all`

Create a fiscal year. Fiscal years must be consecutive and cannot overlap.

> ℹ️
> This endpoint requires the following scope: `fiscal_years:all`

## Path parameters

- `company_id` integer, required

## Request body

- object
  - `start` string, date, required: The date at which the fiscal year starts (ISO 8601). Fiscal years must be consecutive and cannot overlap.
  - `finish` string, date, required: The date at which the fiscal year ends (ISO 8601)

## Response `201`

Returns the created fiscal year

- object
  - `id` integer, required
  - `start` string, date, required: The date at which the fiscal year starts.
  - `finish` string, date, required: The date at which the fiscal year ends.
  - `status` 'open' | 'reopen' | 'closed' | 'frozen', required: The status of the fiscal year.

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

---

[API](https://skmtc.dev/pennylane/apis/referentials.md) - [All operations](https://skmtc.dev/pennylane/apis/referentials/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/referentials/revisions/256ecc544f85?raw)
