Get date lock status

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
GET /api-v1/accounting-period/date-lock-status/{date}

Returns whether the specified date falls within a locked or unlocked accounting period.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

Path parameters

  • date string Required

    Date to check

Query parameters

  • organizationId integer(int64)

    Manageable organization ID. If not specified, the authenticated user's organization is used.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • periodDetails object
      Hide periodDetails attributes Show periodDetails attributes object
      • id integer(int64)
      • fiscalYear integer(int32) Required
      • startDate string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • endDate string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • vatRule object Required
        Hide vatRule attributes Show vatRule attributes object
        • id integer(int64)
        • name object
          Hide name attributes Show name attributes object
          • en string
          • fr string
          • de string
          • it string
        • rule string

          Values are NONE, AGREED_SERVICE, RECEIVED_COMPENSATION, NTDR_AGREED_SERVICE, NTDR_RECEIVED_COMPENSATION, FLAT_RATE_RECEIVED_COMPENSATION, FLAT_RATE_AGREED_SERVICE, or SIMPLE_TAX_RATE.

      • ntdrRate_1 string

        Numeric value represented as string

      • ntdrRate1AccountsIds array[integer(int64)]
      • ntdrRate_2 string

        Numeric value represented as string

      • ntdrRate2AccountsIds array[integer(int64)]
      • flatRateAccounts array[object]
        Hide flatRateAccounts attributes Show flatRateAccounts attributes object
        • id integer(int64)
        • flatRate string
        • flatRateChartAccountsIds array[integer(int64)]
      • status string

        Values are OPEN, CLOSED, or INACTIVE.

      • isLocked boolean
      • budgetExist boolean
      • lockedUntil string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

    • locked boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/accounting-period/date-lock-status/{date}
curl \
 --request GET 'https://wyzio.app/api-v1/accounting-period/date-lock-status/{date}'
Response examples (200)
{
  "periodDetails": {
    "id": 42,
    "fiscalYear": 42,
    "startDate": "2026-01-01T00:00:00.000Z",
    "endDate": "2026-01-01T00:00:00.000Z",
    "vatRule": {
      "id": 42,
      "name": {
        "en": "string",
        "fr": "string",
        "de": "string",
        "it": "string"
      },
      "rule": "NONE"
    },
    "ntdrRate_1": "100.55",
    "ntdrRate1AccountsIds": [
      42
    ],
    "ntdrRate_2": "100.55",
    "ntdrRate2AccountsIds": [
      42
    ],
    "flatRateAccounts": [
      {
        "id": 42,
        "flatRate": "string",
        "flatRateChartAccountsIds": [
          42
        ]
      }
    ],
    "status": "OPEN",
    "isLocked": true,
    "budgetExist": true,
    "lockedUntil": "2026-01-01T00:00:00.000Z"
  },
  "locked": true
}