Get list of accounting periods

GET /api-v1/accounting-period

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Query parameters

  • direction string

    Sorting direction

    Values are ASC or DESC. Default value is ASC.

  • pageNumber integer(int32)

    Page Number

    Default value is 1.

  • sizePerPage integer(int32)

    Size per page

    Default value is 60.

  • sortingField string

    Field to sort by

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • endDate string(date-time)
    • fiscalYear integer(int32)
    • id integer
    • isLocked boolean
    • lockedUntil string(date-time)
    • startDate string(date-time)
    • status string

      Values are OPEN, CLOSED, or INACTIVE.

    • vatRule object
      Hide vatRule attributes Show vatRule attributes object
      • de string
      • en string
      • fr string
      • it string
    • vatRuleId integer
  • 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
curl \
 --request GET 'https://wyzio.app/api-v1/accounting-period' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
[
  {
    "endDate": "2025-05-04T09:42:00Z",
    "fiscalYear": 42,
    "id": 42,
    "isLocked": true,
    "lockedUntil": "2025-05-04T09:42:00Z",
    "startDate": "2025-05-04T09:42:00Z",
    "status": "OPEN",
    "vatRule": {
      "de": "string",
      "en": "string",
      "fr": "string",
      "it": "string"
    },
    "vatRuleId": 42
  }
]