Check whether date is inside locked or unlocked accounting period
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Path parameters
-
date
Query parameters
-
organizationId integer
organizationId
GET
/api-v1/accounting-period/date-lock-status/{date}
curl \
-X GET http://wyzio.app/api-v1/accounting-period/date-lock-status/{date} \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string"
Response examples (200)
{
"locked": true,
"periodDetails": {
"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"
}
}
}