# Bills

## Gets all bills for specified period

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

#### Path Parameters

| Name                                         | Type   | Description           |
| -------------------------------------------- | ------ | --------------------- |
| DOMAIN\_ID<mark style="color:red;">\*</mark> | number | Domain ID of customer |
| PERIOD\_ID<mark style="color:red;">\*</mark> | number | Period ID             |

## Creates a bill inside a period

<mark style="color:green;">`POST`</mark> `https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/sets/0/periods/PERIOD_ID/bills`

#### Path Parameters

| Name       | Type   | Description    |
| ---------- | ------ | -------------- |
| DOMAIN\_ID | String | ID of customer |
| PERIOD\_ID | String | ID of period   |

## Updates a bill

<mark style="color:orange;">`PUT`</mark> `https://www.moderan.net/api/domains/DOMAIN_ID/propertysets/0/sets/0/periods/PERIOD_ID/bills/BILL_ID`

#### Path Parameters

| Name       | Type   | Description                 |
| ---------- | ------ | --------------------------- |
| DOMAIN\_ID | String | ID of customer              |
| BILL\_ID   | String | ID of bill you are updating |
| PERIOD\_ID | String | ID of period                |

To get **PERIOD\_ID** see:

{% content-ref url="get-periods-for-a-cost-set" %}
[get-periods-for-a-cost-set](https://apimoderan.gitbook.io/moderan-api/costs-api/get-periods-for-a-cost-set)
{% endcontent-ref %}

To get cost type id see:

{% embed url="<https://app.gitbook.com/o/1nDCmaZs67nx0u6Qzejv/s/-MX1E-GLQRZx7_0bt7Jl/~/changes/30/costs-api/cost-types#cost-types-for-bills>" %}
