# Periods

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

{% content-ref url="get-property-building-sets" %}
[get-property-building-sets](https://apimoderan.gitbook.io/moderan-api/costs-api/get-property-building-sets)
{% 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 %}
