Updates multiple accounting periods. Returns 200 on success, or 400 if any entry fails validation.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/accounting-period/batch
curl \
--request POST 'https://wyzio.app/api-v1/accounting-period/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"fiscalYear":2026,"startDate":"2026-01-01T00:00:00.000Z","endDate":"2026-12-31T00:00:00.000Z","vatRule":{"id":1},"ntdrRate_1":0.0,"ntdrRate1AccountsIds":"string","ntdrRate_2":0.0,"ntdrRate2AccountsIds":"string","flatRateAccounts":[{"id":42,"flatRate":"string","flatRateChartAccountsIds":[42]}],"lockedUntil":"2026-12-31T00:00:00.000Z"}]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"fiscalYear": 2026,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-12-31T00:00:00.000Z",
"vatRule": {
"id": 1
},
"ntdrRate_1": 0.0,
"ntdrRate1AccountsIds": "string",
"ntdrRate_2": 0.0,
"ntdrRate2AccountsIds": "string",
"flatRateAccounts": [
{
"id": 42,
"flatRate": "string",
"flatRateChartAccountsIds": [
42
]
}
],
"lockedUntil": "2026-12-31T00:00:00.000Z"
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}