> For the complete documentation index, see [llms.txt](https://restapi.wyzio.com/llms.txt)

# Batch update accounting periods

> POST /api-v1/accounting-period/batch
> 
> Updates multiple accounting periods. Returns 200 on success, or 400 if any entry fails validation.



## Servers
- Generated server url: https://wyzio.app (Generated server url)



## Parameters
### Headers

- **WEAL-TOKEN** ()
  API token (can be retrieved from account settings)

- **TARGET-ORGANIZATION-ID** ()
  ID of organization, for which the operation must be performed




### Body: application/json (array[object])

- **id** (integer)
  Entity ID. If negative value, a new entity will be created

- **fiscalYear** (integer(int32))

- **startDate** (string(date-time))

- **endDate** (string(date-time))

- **vatRule** (object)

- **ntdrRate_1** (string)

- **ntdrRate1AccountsIds** (string)

- **ntdrRate_2** (string)

- **ntdrRate2AccountsIds** (string)

- **flatRateAccounts** (array[object])

- **lockedUntil** (string(date-time))



## Responses
### 200
OK

#### Body: application/json (object)
- **items** (array[object])


### 400
400 Bad Request

### 401
401 Unauthorized

### 403
403 Access Denied

### 404
404 Not Found

### 500
500 Internal Server Error


[Powered by Bump.sh](https://bump.sh)
