New Introducing inventory in LightInventory in Light Read the announcementRead more

List accounting periods

GET
https://api.light.inc/v1/accounting-periods

Returns a cursor-paginated list of the company's accounting periods, sorted by start date ascending unless the request sorts otherwise. To find the period holding a date D, filter on startDate:lte:D,endDate:gte:D. On a fiscal year's last day this also returns the year-end adjustment period, so add type:eq:DEFAULT for regular periods only. A date before the company's first regular period returns nothing, and is governed by that first period: postings dated before it follow its status and locks. A posting is blocked for a company entity when the period is CLOSED, or when the period's task for the document's class is COMPLETED or has a completion for that company entity. Bills (AP) and card transactions (CT) lock with LOCK_AP, sales invoices (AR) with LOCK_AR, and journal entries (JE) with LOCK_JE. Vendor credit notes, customer credits, bank payments, deferred entries, FX revaluations and year closing entries have no lock task: only a CLOSED period blocks them. A rule that needs the period closed, such as a VAT filing, checks status, since all three locks can be complete while the period is OPEN. A task's completions lists only the company entities the caller can see.

Permission: accounting-periods:read

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Query parameters

  • sort string

    Sort string in the format field:direction. To provide multiple sort fields, separate them with commas.

    Available directions: asc, desc.

    Available fields: startDate.

  • filter string

    Filter string in the format field:operator:value. To provide multiple filters, separate them with commas.

    Available operators: eq, ne, in, not_in, gt, gte, lt, lte.

    • For in and not_in operators, provide multiple values separated by the pipe character (|).

    Available fields: endDate, startDate, status, type.

  • limit integer · int32

    Maximum number of items to return. Default is 50, maximum is 200.

  • cursor string

    The cursor position to start returning results from. Omit it, or provide 0, for the initial request. For subsequent requests, use nextCursor from the previous response to navigate. Cursor values are opaque and should not be constructed manually. This endpoint paginates by cursor only and has no offset parameter.

Response

  • records array of object

    List of records for the current page

    • id string · uuid

      Unique identifier for the accounting period

    • companyId string · uuid

      ID of the company

    • label string

      Display name of the period, such as October 2026. Null when not set

    • type string

      DEFAULT for a regular period (a month, quarter or year, as the company's period settings say). YEAR_END_ADJUSTMENT for the period dated the fiscal year's last day, which only journal entries post into

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of DEFAULT YEAR_END_ADJUSTMENT

    • startDate string · date

      First day of the period

    • endDate string · date

      Last day of the period, inclusive

    • status string

      CLOSED blocks every posting assigned to the period: the regular period holding the posting's date, or the year-end adjustment period for journal entries marked for year-end adjustment. A bill dated on the fiscal year's last day uses the final regular period, not the adjustment period. OPEN allows postings the period's tasks do not lock

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of CLOSED OPEN

    • tasks array of object

      Close tasks of the period. The year-end adjustment period has none

      • id string · uuid

        Unique identifier for the task

      • accountingPeriodId string · uuid

        ID of the accounting period the task belongs to

      • type string

        What the task does. LOCK_AP locks bills and card transactions, LOCK_AR sales invoices, LOCK_JE journal entries. INTERCOMPANY_DOCUMENTS signs off intercompany documents, FX_REVALUATION revalues foreign currency balances

        ⚠️ This enum is not exhaustive; new values may be added in the future.

        One of FX_REVALUATION INTERCOMPANY_DOCUMENTS LOCK_AP LOCK_AR LOCK_JE

      • status string

        PENDING before the task is completed for any company entity. IN_PROGRESS once it is completed for some company entities, after an undo (possibly with no completions left), or, for FX_REVALUATION, before the period end date. COMPLETED when it is done for every active company entity (not inactive or archived). Read the status from this field, not from completions, which lists only the company entities the caller can see

        ⚠️ This enum is not exhaustive; new values may be added in the future.

        One of COMPLETED IN_PROGRESS PENDING

      • completions array of object

        Company entities the task is done for, among those the caller can see

        • companyEntityId string · uuid

          ID of the company entity the task is done for

        • completedBy string · uuid

          ID of the principal that completed the task

        • completedAt string · date-time

          Timestamp when the task was completed for the company entity

      • createdAt string · date-time

        Timestamp when the task was created

      • updatedAt string · date-time

        Timestamp when the task was last updated

    • createdAt string · date-time

      Timestamp when the period was created

    • updatedAt string · date-time

      Timestamp when the period was last updated

  • hasMore boolean

    Boolean flag indicating if there are more records available

  • nextCursor string

    Cursor for fetching the next page

  • prevCursor string

    Cursor for fetching the previous page