# optIntoZReportMidpointDate

> Date Z-reports that start from now on by the midpoint of their period, instead of the end. Already generated reports keep their date. This cannot be undone.

Required permission: OrganizationAccountingWrite

Source: https://docs.gastrogate.io/docs/api/mutations/optIntoZReportMidpointDate

```graphql
optIntoZReportMidpointDate(
  organizationId: ID!
): Organization
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `organizationId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

[`Organization`](https://docs.gastrogate.io/docs/api/types/Organization.md)

## Example

```graphql
mutation OptIntoZReportMidpointDate($organizationId: ID!) {
  optIntoZReportMidpointDate(organizationId: $organizationId) {
    id
    fortnoxAccountingImportEnabled
    hasFortnoxAccountingImportAccess
    hasFortnoxAccountingImportCredentials
    accountantEmail
    createdAt
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { optIntoZReportMidpointDate(...) { __typename } }"}'
```
