> 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-cost-rates-for-a-period.md).

# Get Cost Rates for a period

To get **PERIOD\_ID** see

{% content-ref url="/pages/-MX1F49nxdYapOsjtEfy" %}
[Periods](/moderan-api/costs-api/get-periods-for-a-cost-set.md)
{% endcontent-ref %}

## Get Cost Rate calculation for a specific Period

<mark style="color:blue;">`GET`</mark> `https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/periods/PERIOD_ID/rates`

This endpoint allows you to **get Cost Rate calculation for a specific period** from Moderan<br>

#### Path Parameters

| Name                                         | Type   | Description                       |
| -------------------------------------------- | ------ | --------------------------------- |
| DOMAIN\_ID<mark style="color:red;">\*</mark> | string | The domain ID of client           |
| PERIOD\_ID<mark style="color:red;">\*</mark> | string | The period ID for the Cost period |

{% tabs %}
{% tab title="200: OK" %}

```
[
  {
    "id": 15532,
    "costType": {
      "name": "Water",
      "id": 2368
    },
    "subCostType": {
      "name": "Water - Cold",
      "id": 2616,
      "metaString": "Cold"
    },
    "unit": "m3",
    "cost": 0,
    "usage": 75,
    "subCostRatesComponent": 0,
    "rate": 3.45,
    "calculatedRate": 3.45,
    "manualRate": null,
    "manualDisabled": false,
    "generalRateModel": {
      "id": null,
      "costType": {
        "name": "Water",
        "id": 2368
      },
      "subCostType": {
        "name": "General",
        "id": 0
      },
      "unit": null,
      "cost": 310.5,
      "usage": 90,
      "subCostRatesComponent": 3.45,
      "rate": 4.378343558282209,
      "calculatedRate": 4.378343558282209,
      "manualRate": null,
      "manualDisabled": false,
      "generalRateModel": null,
      "createdBy": null,
      "modifiedBy": null,
      "createdDate": null,
      "modifiedDate": null
    },
    "createdBy": null,
    "modifiedBy": null,
    "createdDate": null,
    "modifiedDate": null
  },
  {
    "id": null,
    "costType": {
      "name": "Water",
      "id": 2368
    },
    "subCostType": {
      "name": "General",
      "id": 0
    },
    "unit": null,
    "cost": 310.5,
    "usage": 90,
    "subCostRatesComponent": 3.45,
    "rate": 4.378343558282209,
    "calculatedRate": 4.378343558282209,
    "manualRate": null,
    "manualDisabled": false,
    "generalRateModel": null,
    "createdBy": null,
    "modifiedBy": null,
    "createdDate": null,
    "modifiedDate": null
  },
  {
    "id": 15525,
    "costType": {
      "name": "Electricity",
      "id": 2369
    },
    "subCostType": {
      "name": "Electricity",
      "id": 2369,
      "metaString": "Electricity"
    },
    "unit": "kWh",
    "cost": 1440,
    "usage": 8000,
    "subCostRatesComponent": 0.18,
    "rate": 0.18,
    "calculatedRate": 0.18,
    "manualRate": null,
    "manualDisabled": false,
    "generalRateModel": {
      "id": null,
      "costType": {
        "name": "Electricity",
        "id": 2369
      },
      "subCostType": {
        "name": "General",
        "id": 0
      },
      "unit": null,
      "cost": 0,
      "usage": 8000,
      "subCostRatesComponent": 0,
      "rate": null,
      "calculatedRate": null,
      "manualRate": null,
      "manualDisabled": false,
      "generalRateModel": null,
      "createdBy": null,
      "modifiedBy": null,
      "createdDate": null,
      "modifiedDate": null
    },
    "createdBy": null,
    "modifiedBy": null,
    "createdDate": null,
    "modifiedDate": null
  },
  
  {
    "id": 15531,
    "costType": {
      "name": "Water",
      "id": 2368
    },
    "subCostType": {
      "name": "Water - Warm",
      "id": 2617,
      "metaString": "Warm"
    },
    "unit": "m3",
    "cost": 0,
    "usage": 15,
    "subCostRatesComponent": 0,
    "rate": 15.09,
    "calculatedRate": 15.09,
    "manualRate": null,
    "manualDisabled": false,
    "generalRateModel": {
      "id": null,
      "costType": {
        "name": "Water",
        "id": 2368
      },
      "subCostType": {
        "name": "General",
        "id": 0
      },
      "unit": null,
      "cost": 310.5,
      "usage": 90,
      "subCostRatesComponent": 3.45,
      "rate": 4.378343558282209,
      "calculatedRate": 4.378343558282209,
      "manualRate": null,
      "manualDisabled": false,
      "generalRateModel": null,
      "createdBy": null,
      "modifiedBy": null,
      "createdDate": null,
      "modifiedDate": null
    },
    "createdBy": null,
    "modifiedBy": null,
    "createdDate": null,
    "modifiedDate": null
  }
]
```

{% endtab %}
{% endtabs %}
