Modify batch of accounting periods
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
accountingPeriods
-
budgetExist boolean
-
endDate string
-
fiscalYear integer(int32)
-
flatRateAccounts array[object]
-
id integer
-
isLocked boolean
-
lockedUntil string
-
ntdrRate1AccountsIds array[integer]
-
ntdrRate2AccountsIds array[integer]
-
ntdrRate_1 string
-
ntdrRate_2 string
-
startDate string
-
status string
Values are
OPEN
,CLOSED
, orINACTIVE
. -
vatRule object
Additional properties are allowed.
POST /api-v1/accounting-period/batch
curl \
-X POST http://10.10.10.132/api-v1/accounting-period/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"budgetExist":true,"endDate":"string","fiscalYear":42,"flatRateAccounts":[{"flatRate":"string","flatRateChartAccountsIds":[42],"id":42}],"id":42,"isLocked":true,"lockedUntil":"string","ntdrRate1AccountsIds":[42],"ntdrRate2AccountsIds":[42],"ntdrRate_1":"string","ntdrRate_2":"string","startDate":"string","status":"OPEN","vatRule":{"id":42,"name":{"de":"string","en":"string","fr":"string","it":"string"},"rule":"NONE"}}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"budgetExist": true,
"endDate": "string",
"fiscalYear": 42,
"flatRateAccounts": [
{
"flatRate": "string",
"flatRateChartAccountsIds": [
42
],
"id": 42
}
],
"id": 42,
"isLocked": true,
"lockedUntil": "string",
"ntdrRate1AccountsIds": [
42
],
"ntdrRate2AccountsIds": [
42
],
"ntdrRate_1": "string",
"ntdrRate_2": "string",
"startDate": "string",
"status": "OPEN",
"vatRule": {
"id": 42,
"name": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"rule": "NONE"
}
}
]
Response examples (200)
{
"items": [
{
"error": true,
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"freshData": {},
"freshRow": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"severeError": true
}
]
}