> For the complete documentation index, see [llms.txt](https://apimoderan.gitbook.io/moderan-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apimoderan.gitbook.io/moderan-api/costs-api/get-periods-for-a-cost-set.md).

# Periods

To get the **COST\_SET\_ID** see:

{% content-ref url="/pages/-MX1Ez4Bl31WGcr6jkt0" %}
[Get Property-Building sets](/moderan-api/costs-api/get-property-building-sets.md)
{% endcontent-ref %}

To get the periods, use following request

## Get all Cost Periods for a Cost set

<mark style="color:blue;">`GET`</mark> `https://www.moderan.net/api/domains/DOMAIN_ID/properties/0/sets/COST_SET_ID/costperiods`&#x20;

This endpoint allows you to **get all cost periods for a specific cost set** from Moderan\
\
The id field received will be used in the future and we will call it **PERIOD\_ID**

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 Example response" %}

```json
[
    {
        "id": 4798,
        "parentId": null,
        "building": null,
        "description": "This is november period",
        "startDate": "2020-11-01",
        "endDate": "2020-11-30",
        "hasLaterPeriods": false,
        "mainLocked": false,
        "locked": false,
        "automaticMeterLinking": false,
        "tenants": [],
        "createdDate": "2021-01-26T15:06:07.000+00:00"
    }
]
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apimoderan.gitbook.io/moderan-api/costs-api/get-periods-for-a-cost-set.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
