# Umsätze erfassen

`PUT https://{tenant}.stamp.eu/rest/controlling/revenues`

List upsert: every entry creates or overwrites its month, `amount_cents: null` deletes it.
Answers with the stored months of the request.

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `revenues` | object[] | ja |
| `revenues[].year_month` | string | ja |
| `revenues[].amount_cents` | integer \| null | ja |

## Antworten

### 200: Array of `ControllingRevenueResource`

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `data` | object[] | ja |
| `data[].year_month` | string | ja |
| `data[].amount_cents` | integer | ja |
| `data[].currency` | string | ja |

### 401: Unauthenticated

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422: Validation error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Errors overview. |
| `errors` | object | ja | A detailed description of each field that failed validation. |
