Check whether date is inside locked or unlocked accounting period

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}

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

Query parameters

  • organizationId integer

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • periodDetails object
      Hide periodDetails attributes Show periodDetails attributes object
      • id integer
      • fiscalYear integer(int32) Required
      • startDate string Required
      • endDate string Required
      • vatRule object Required
        Hide vatRule attributes Show vatRule attributes object
        • id integer
        • 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
      • ntdrRate1AccountsIds array[integer]
      • ntdrRate_2 string
      • ntdrRate2AccountsIds array[integer]
      • flatRateAccounts array[object]
        Hide flatRateAccounts attributes Show flatRateAccounts attributes object
        • id integer
        • flatRate string
        • flatRateChartAccountsIds array[integer]
      • status string

        Values are OPEN, CLOSED, or INACTIVE.

      • isLocked boolean
      • budgetExist boolean
      • lockedUntil string Required
    • 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": "string",
    "endDate": "string",
    "vatRule": {
      "id": 42,
      "name": {
        "en": "string",
        "fr": "string",
        "de": "string",
        "it": "string"
      },
      "rule": "NONE"
    },
    "ntdrRate_1": "string",
    "ntdrRate1AccountsIds": [
      42
    ],
    "ntdrRate_2": "string",
    "ntdrRate2AccountsIds": [
      42
    ],
    "flatRateAccounts": [
      {
        "id": 42,
        "flatRate": "string",
        "flatRateChartAccountsIds": [
          42
        ]
      }
    ],
    "status": "OPEN",
    "isLocked": true,
    "budgetExist": true,
    "lockedUntil": "string"
  },
  "locked": true
}